The base configuration for Sass Lint, to be included in every project using Sass.
Install sass-lint globally:
npm install -g sass-lint
Install sass-lint as a dev dependency:
npm install --save-dev sass-lint
Install this package to use the config:
npm install --save-dev pod-point/sass-lint-config-podpoint-base
Create a .sass-lint.yml
file with the following contents:
options:
config-file: "./node_modules/@pod-point/sass-lint-config-podpoint-base/.sass-lint.yml"
Note that rules can be added or overridden by creating in the following way:
options:
config-file: "./node_modules/@pod-point/sass-lint-config-podpoint-base/.sass-lint.yml"
rules:
indentation:
- 4