Demartini’s shareable configuration for
stylelint
.
Install this config
as a devDependencies
:
# npm
npm install @demartini/stylelint-config --save-dev
# Yarn
yarn add @demartini/stylelint-config --dev
After installing it, a .stylelintrc.json
file will be created automatically in the project's root folder with the following configuration:
{
"extends": ["@demartini/stylelint-config/css"]
}
This package provides configuration for CSS and SCSS, you can choose which one you want to extend:
{
"extends": ["@demartini/stylelint-config/css"]
}
{
"extends": ["@demartini/stylelint-config/scss"]
}
The defined rules can be modified by adding other configurations, plugins or custom rules:
{
"extends": ["@demartini/stylelint-config/css", "some-other-config-you-use"],
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": ["extends", "ignores"]
}
]
}
}
Read the stylelint docs for more information.
If you are interested in helping contribute, please take a look at our contribution guidelines and open an issue or pull request.
See CHANGELOG for a human-readable history of changes.
Distributed under the MIT License. See LICENSE for more information.