Stylelint shareable config
Shared configuration for Stylelint. Follow the instructions below to easily include this configuration in another project without having to duplicate the file!
First thing first, let's make sure you have the necessary pre-requisites.
npx install-peerdeps --dev stylelint-config-tc
stylelint, stylelint-prettier, and prettier are peer dependencies and must be installed.
Add the following to your .stylelintrc.json
file:
{
"extends": "stylelint-config-tc"
}
If you need to override a rule, your .stylelintrc.json
file should look like the example below. All shared rules will be used, but declaration-block-trailing-semicolon
will be turned off.
{
"extends": "stylelint-config-tc",
"rules": {
"declaration-block-trailing-semicolon": null
}
}
Please see the CONTRIBUTING.md file for more information.
Please see the CHANGELOG.md for more information.
Copyright (c) 2018-2023 Thomas Lindner. Licensed under the MIT license.