1.0.0 • Published 7 years ago
@universityofnottingham/sasslint-config v1.0.0
University of Nottingham standard sass-lint configuration
to prevent the same
.sass-lint.ymlbeing present on every project with any SCSS in.
Usage
In an npm enabled project:
- Have
sass-lintnpm i -D sass-lint
- Install this package
npm i @universityofnottingham/sasslint-config
- Add
sasslintConfigtopackage.jsonreferring to the config in this package:
{
//...
"sasslintConfig": "./node_modules/@universityofnottingham/sasslint-config/.sass-lint.yml"
//...
}Enjoy your lightweight, UoN standard sass-lint without a separate config file!
Optional overrides / extensions
- Create a new local
.sass-lint.ymlfor your project - Remove
sasslintConfigfrompackage.json - Refer to the config in this package from your local
.sass-lint.yml:
options:
config-file: "./node_modules/@universityofnottingham/sasslint-config/.sass-lint.yml"
#...
rules:
# optional rule overrides1.0.0
7 years ago