npm install stylelint stylelint-config-recommended-vue --save-dev ``` ## 2. 在项目中引入"stylelint-config-recommended-vue" 在项目的根目录下新建一个名为".stylelintrc"的文件,并在该文件中引入"stylelint-config-recommended-vue"。 ```json { "extends": "stylelint-config-recommended-vue" } `...
npm install --save-dev postcss-html stylelint-config-recommended-vue 📖Usage Set yourstylelintconfig to: {"extends":"stylelint-config-recommended-vue"} Note: This config enables rules for only.vuefiles. If you don't want the rules to be overridden (If you want to enable only the parser...
Stylelintv14.0.0 and above It cannot be used with Stylelint v13 and below. To see the rules that this config uses, please read theconfig itself. 💿 Installation npm install --save-dev postcss-html stylelint-config-recommended-vue
When postcss-scss is not installed and one uses the scss config, the result will be silent skipping of all scss blocks as they cannot be parsed. This results in linting always succeeding for all such files, which is unwanted. I'm not sure if there's some way to raise a more appropriat...