npm i @alexlit/config-stylelint -D
// .stylelintrc.js
module.exports = {
extends: [
'@alexlit/config-stylelint',
/* optional */
'@alexlit/config-stylelint/plugins/optional/no-indistinguishable-colors',
'@alexlit/config-stylelint/plugins/optional/use-logical-spec',
],
ignoreFiles: [
...require('@alexlit/config-stylelint/.stylelintrc').ignoreFiles,
],
};
-
Check rules
npx stylelint-find-new-rules
-
Check rules that are in conflict with Prettier
npx stylelint-config-prettier-check