Closed physphile closed 3 months ago
My .stylelintrc.yaml:
.stylelintrc.yaml
extends: - stylelint-config-standard - stylelint-config-recess-order - stylelint-use-nesting rules: color-function-notation: modern selector-class-pattern: null csstools/use-nesting: always
The npx stylelint "**/*.css" command always reports Unknown rule csstools/use-nesting problem. How to fix it?
npx stylelint "**/*.css"
Unknown rule csstools/use-nesting
You also need to declare the plugin. A JSON config could look like this:
{ "plugins": [ "stylelint-use-nesting" ], "rules": { "csstools/use-nesting": ["always"] } }
My
.stylelintrc.yaml
:The
npx stylelint "**/*.css"
command always reportsUnknown rule csstools/use-nesting
problem. How to fix it?