2019.11.29 • Published 6 years ago
@inc/sasslint-config v2019.11.29
sasslint-config
Recommended Sass Lint settings for !NC projects
DEPRECATED
Sass Lint has not been maintained for two years at this time of writing. Therefore, this module has been deprecated in favor of this !NC stylelint config.
Installation
$ npm i sass-lint @inc/sasslint-config -DUsage
Sass Lint configuration
YAML config
options:
config-file: ./node_modules/@inc/sasslint-config/config.jsonJSON config
options: {
"config-file": "./node_modules/@inc/sasslint-config/config.json"
}Command line config
sass-lint --config ./node_modules/@inc/sasslint-config/config.json --verbose --no-exitpackage.json config
{
"name": "your_project",
"scripts": {
...,
"test:sass": "sass-lint --config ./node_modules/@inc/sasslint-config/config.json --verbose --no-exit",
...
}
}If your script was called test:sass you could then run npm run test:sass and your Sass files would be linted.
License
BSD-3-Clause Copyright © 2018-19, Ideas Never Cease