This repository contains the STYLELINT configuration for projects at Edenspiekermann.
Install this package, and save it as a devDependency:
yarn add @edenspiekermann/stylelint-config --dev
Then have your project's .stylelintrc
file extend the ruleset.
{
"extends": ["@edenspiekermann/stylelint-config"]
}
Using "extends": ["@edenspiekermann/stylelint-config"]
is a short hand for "extends": ["@edenspiekermann/stylelint-config/rules/core"]
. The core rules use extend the stylelint-config-standard configuration. It contains all rulesets for a frameworkless / vanilla css validation. On top of that its possible to extend these rules with some more specific configurations (see the following).
Add this configuration if you want to use stylelint with the rules of BEM.
{
"extends": [
"@edenspiekermann/stylelint-config",
"@edenspiekermann/stylelint-config/rules/bem"
]
}
Add this configuration if you want to use stylelint with the rules of SASS.
{
"extends": [
"@edenspiekermann/stylelint-config",
"@edenspiekermann/stylelint-config/rules/sass"
]
}
Add this configuration if you want to use stylelint with the rules of styled components.
{
"extends": [
"@edenspiekermann/stylelint-config",
"@edenspiekermann/stylelint-config/rules/styled-components"
]
}
Add this configuration if you want to use stylelint with the rules of tailwind.
{
"extends": [
"@edenspiekermann/stylelint-config",
"@edenspiekermann/stylelint-config/rules/tailwind"
]
}
The MIT License (MIT). Please see License File for more information.