@alexlit/config-stylelint
v47.1.2
Published
Stylelint config
Downloads
906
Readme
StyleLint Configuration
Installation
npm i @alexlit/config-stylelint -D
Connection
Default (see plugins enabled by default)
// stylelint.config.js import { createConfig } from '@alexlit/config-stylelint'; export default createConfig();
Custom
// stylelint.config.js import { createConfig } from '@alexlit/config-stylelint'; export default createConfig( { // disable some default plugins 'no-nested-media': false, // enable some optional plugins gamut: true, 'logical-css': true, }, { // add custom rules rules: { 'custom-property-empty-line-before': [ 'always', { except: ['after-comment', 'after-custom-property', 'first-nested'], }, ], }, }, );
Development
Check rules
npx stylelint-find-new-rules