1.3.2 • Published 5 years ago
@terminus/stylelint-config-frontend v1.3.2
A collection of SCSS lint rules for Terminus frontend codebases.
Table of Contents
Installation
yarn add stylelint @terminus/stylelint-config-frontend -DSet up
1. Create the file and extend the base ruleset
Create a stylelint config file at the root level named stylelint.config.js and extend the base ruleset:
module.exports = {
extends: '@terminus/stylelint-config-frontend',
}2. Add a linting command to package.json
- The
--projectflag reference should point to the primary apptsconfigfile. - The
--configflag reference should point to the citslintfile.
{
"name": "My Project",
"scripts": {
"lint:scss": "npx stylelint 'your/path/to/styles/**/*.scss'"
}
}