1.0.0 • Published 6 years ago

@universityofnottingham/sasslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

NPM

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:

  1. Have sass-lint
    • npm i -D sass-lint
  2. Install this package
    • npm i @universityofnottingham/sasslint-config
  3. Add sasslintConfig to package.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

  1. Create a new local .sass-lint.yml for your project
  2. Remove sasslintConfig from package.json
  3. 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