1.0.0 • Published 1 year ago
@la-ots/stylelint-config v1.0.0
@la-ots/stylelint-config
Standard rules for CSS and SASS using Stylelint implemented as a common configuration.
Installation
npm install --save-dev @la-ots/stylelint-config
Configure settings
Create .stylelintrc.js
file with the following content:
module.exports = {
extends: "@la-ots/stylelint-config",
rules: {
// add any overrides if required
}
};
Using with Prettier
If you're using this plugin with Prettier, add "prettier" at the end of your extends list:
module.exports = {
extends: ["@la-ots/stylelint-config", "stylelint-config-prettier"],
rules: {
// add any overrides if required
},
};
Running linters
Add the following scripts to your package.json
:
{
"scripts": {
"lint:css": "stylelint **/*.{css,scss}",
"lint:css:fix": "stylelint **/*.{css,scss} --fix"
}
}
Execute scripts:
npm run lint:css
1.0.0
1 year ago
1.0.0-beta.1
1 year ago