@universityofnottingham/sasslint-config
v1.0.0
Published
UoN standard sass-lint configuration
Downloads
2
Readme
University of Nottingham standard sass-lint
configuration
to prevent the same
.sass-lint.yml
being present on every project with any SCSS in.
Usage
In an npm
enabled project:
- Have
sass-lint
npm i -D sass-lint
- Install this package
npm i @universityofnottingham/sasslint-config
- Add
sasslintConfig
topackage.json
referring 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.yml
for your project - Remove
sasslintConfig
frompackage.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 overrides