fly-sass-lint
v1.0.0
Published
Sass-lint plugin for Fly.
Downloads
4
Maintainers
Readme
fly-sass-lint
Install
This plugin requires Fly .
npm i -D fly-sass-lint
Usage
By default, fly-sass-lint
will use .sass-lint.yml file in your project directory as sass-lint config.
Async/Await flavored:
export async function lintSass () {
await this
.source('src/**/*.{scss,sass}')
.sasslint()
/* or pass your options to sass-lint
* .sasslint({
* options: {},
* configPath: 'PATH/TO/MY/AWESOME/RULE'
* })
*/
}
Generator function flavored:
exports.lintSass = function* () {
yield this
.source('src/**/*.{scss,sass}')
.sasslint()
/* or pass your options to sass-lint
* .sasslint({
* options: {},
* configPath: 'PATH/TO/MY/AWESOME/RULE'
* })
*/
}
Check out Sass-lint documentation for available options.