@gglnx/stylelint-config
v3.0.1
Published
Shared Stylelint configuration
Readme
@gglnx/stylelint-config
This is my personal Stylelint shared configuration. It's based on the stylelint-config-sass-guidelines.
Installation
Install the configuration and all peer dependencies:
npm install --save-dev @gglnx/stylelint-configUsage
Create an .stylelintrc file in your project root:
{
"extends": "@gglnx/stylelint-config"
}Deviations
csstools/use-logical: Use logical props (except for float)selector-max-compound-selectors: Limited to 4 compound selectorsselector-class-pattern: Allows only the BEM naming scheme (.block__element--modifier) and helper and theming classes (.has-*,.u-*,.js-*,.is-*,.t-*)max-nesting-depth: Limits to one nesting level except for pseudo-classes, at-rules and theming classes (.t-*)property-no-unknown: Adds allowance for:exportproperty (CSS modules)order/properties-alphabetical-order: Enforce alphabetical order for all propertiesorder/order: Custom order inside selectors:- SCSS variables
@extendat-rules- Custom properties
- Declarations
- Nested rules beginning with
& - Nested rules for pseudo-classes (like
:hover) - Nested rules for pseudo-elements (
::before/::after) - Other nested rules
- At-rules (like @media, @include or @container)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Distributed under the MIT License. See LICENSE for more information.
