@inc/sasslint-config

Recommended Sass Lint settings for !NC projects

Usage no npm install needed!

<script type="module">
  import incSasslintConfig from 'https://cdn.skypack.dev/@inc/sasslint-config';
</script>

README

sasslint-config

INC

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 -D

Usage

Sass Lint configuration

YAML config
options:
  config-file: ./node_modules/@inc/sasslint-config/config.json
JSON 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-exit
package.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