@wearerequired/stylelint-config
v7.0.0
Published
required coding standard for (S)CSS.
Readme
required (S)CSS Coding Standard
required coding standard for (S)CSS, based on the rules provided by @wordpress/stylelint-config.
Installation
This package is a stylelint shareable configuration. Install it together with its peer dependencies:
npm install --save-dev @wearerequired/stylelint-config stylelint @wordpress/stylelint-config stylelint-scssnpm 7+ installs peer dependencies automatically, so listing them is optional for a working install — but installing them explicitly keeps them pinned in your
package.json(and visible to editors/CI).
Requires stylelint 16 and @wordpress/stylelint-config 23 or newer.
Migrating from v6: stylelint 16 moved its stylistic (formatting) rules into
@stylistic/stylelint-plugin. This config keeps enforcing formatting by extending@wordpress/stylelint-config/stylistic, so those rules now carry the@stylistic/prefix. Updatestylelintto^16.8.2,@wordpress/stylelint-configto^23and addstylelint-scss(^6.4.0).
Usage
To opt-in to the default configuration, extend your own project's stylelint.config.js file:
module.exports = {
extends: [ '@wearerequired/stylelint-config' ],
};SCSS Preset
In addition to the default preset, there is also a SCSS preset. This preset extends both @wearerequired/stylelint-config and stylelint-config-recommended-scss.
module.exports = {
extends: [ '@wearerequired/stylelint-config/scss' ],
};
