@culur/stylelint-config
stylelint-config-standard
- The standard shareable config for Stylelint.stylelint-config-standard-scss
- The standard shareable SCSS config for Stylelint.stylelint-config-recommended-vue
- The recommended shareable Vue config for Stylelint.stylelint-config-prettier
- Turns off all rules that are unnecessary or might conflict with prettier.stylelint-config-hudochenkov
- The configurations from the author of stylelint-order
.stylelint-order
- A plugin pack of order related linting rules for stylelint.stylelint-scss
- A collection of SCSS specific linting rules for stylelint.at-rule-no-unknown
) and more.Because Stylelint no longer includes parsers (for scss, vue...) this config will use the overrides property to config the following syntaxes if needed.
postcss-html
- For html, php, vue, svelte, xml
files.postcss-scss
- For scss
files.postcss-sass
- For sass
files.The config is smart enough to detect the environment automatically.
If you've installed sass
or dart-sass
or node-sass
, the config will load the stylelint-scss
plugin and its configurations.
If you've installed tailwindcss
:
at-rule-no-unknown
will ignore all Tailwind CSS's Directives.order/order
(from stylelint-order
) will be modified from stylelint-config-hudochenkov/order
to our custom to make it can work with Tailwind CSS.If you've installed vue
, the config will extends stylelint-config-recommended-vue
.
This config bundles the following packages, you don't need to install them yourself anymore
postcss-html
postcss-sass
postcss-scss
stylelint-config-html
stylelint-config-hudochenkov
stylelint-config-prettier
stylelint-config-standard
stylelint-config-standard-scss
stylelint-config-standard-vue
stylelint-order
stylelint-scss
Add @culur/stylelint-config
dependency to your project.
# Using npm
npm install @culur/stylelint-config --save-dev
# Using yarn
yarn add @culur/stylelint-config --dev
If you've installed @culur/stylelint-config
locally within your project, Just set your stylelint config to:
{
"extends": ["@culur/stylelint-config"]
}
If you've globally installed @culur/stylelint-config
using the -g
flag, then you'll need to use the absolute path to @culur/stylelint-config
in your config e.g.
{
"extends": "/absolute/path/to/@culur/stylelint-config"
}
Some commonly used scripts in package.json
.
{
"scripts": {
"fix:css": "stylelint **/*.{vue,tsx,css,scss} --allow-empty-input --fix",
"test:css": "stylelint **/*.{vue,tsx,css,scss} --allow-empty-input"
}
}
stylelint-order
.