@lcooper/stylelint-config-scss
v1.1.1
Published
Shareable stylelint config for SCSS
Downloads
4
Maintainers
Readme
@lcooper/stylelint-config-scss
A standalone, sharable stylelint config for linting scss
files. Enables the stylelint-scss
and stylelint-order
plugins.
Installation
For this package to function properly, stylelint
must be installed as well:
npm install --save-dev stylelint @lcooper/stylelint-config-scss
If using npm
5 or greater, this can be acomplished using:
npx install-peerdeps --dev @lcooper/stylelint-config-scss
Usage
Add the stylelint
field to your package.json
file:
"stylelint": {
"extends": "@lcooper/stylelint-config-scss"
}
Or create a stylelint config file type of your choice in the root folder of your project:
.stylelintrc
{
"extends": "@lcooper/stylelint-config-scss"
}
.stylelintrc.js
module.exports = {
extends: '@lcooper/stylelint-config-scss'
};
Check out the stylelint configuration docs for more details.
Scripts
Add a script to your package.json
file:
"scripts": {
"lint": "stylelint **/*.scss"
}