Shareable Stylelint configuration for SCSS syntax Sass files.
Note
See @jgarber/stylelint-config for a shareable Stylelint configuration suitable for CSS files.
npm install --save-dev @jgarber/stylelint-config-scss
Stylelint supports a variety of configuration file formats.
In a file named .stylelintrc
or .stylelintrc.yml
:
---
extends: "@jgarber/stylelint-config-scss"
---
In a file named .stylelintrc
or .stylelintrc.json
:
{
"extends": "@jgarber/stylelint-config-scss"
}
In a JavaScript file using ECMAScript module (ESM) syntax:
// stylelint.config.mjs
export { default } from "@jgarber/stylelint-config.scss";
In a JavaScript file using CommonJS module syntax:
// stylelint.config.cjs
module.exports = {
extends: "@jgarber/stylelint-config-scss"
};
@jgarber/stylelint-config-scss is freely available under the MIT License.