@edenspiekermann/stylelint-config
v1.0.2
Published
A shareable stylelint config for ESPI projects
Downloads
31
Readme
Edenspiekermann STYLELINT Configuration
This repository contains the STYLELINT configuration for projects at Edenspiekermann.
Installation
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"]
}
Core rules
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).
BEM
Add this configuration if you want to use stylelint with the rules of BEM.
{
"extends": [
"@edenspiekermann/stylelint-config",
"@edenspiekermann/stylelint-config/rules/bem"
]
}
SASS
Add this configuration if you want to use stylelint with the rules of SASS.
{
"extends": [
"@edenspiekermann/stylelint-config",
"@edenspiekermann/stylelint-config/rules/sass"
]
}
Styled components
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"
]
}
Tailwind
Add this configuration if you want to use stylelint with the rules of tailwind.
{
"extends": [
"@edenspiekermann/stylelint-config",
"@edenspiekermann/stylelint-config/rules/tailwind"
]
}
License
The MIT License (MIT). Please see License File for more information.