更新 stylelint 相关依赖和配置

This commit is contained in:
hooray 2021-10-23 15:21:14 +08:00
parent 7978a86d09
commit ec4ac08055
4 changed files with 135 additions and 646 deletions

View File

@ -1,7 +1,14 @@
{ {
"extends": [ "extends": [
"stylelint-config-standard", "stylelint-config-standard",
"stylelint-config-recommended-scss" "stylelint-config-recommended-scss",
"stylelint-config-recommended-vue"
],
"overrides": [
{
"files": ["**/*.scss"],
"customSyntax": "postcss-scss"
}
], ],
"plugins": [ "plugins": [
"stylelint-scss" "stylelint-scss"

View File

@ -2,5 +2,6 @@
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true, "source.fixAll.eslint": true,
"source.fixAll.stylelint": true "source.fixAll.stylelint": true
} },
"stylelint.validate": ["css", "scss", "vue"]
} }

View File

@ -41,9 +41,13 @@
"husky": "^7.0.4", "husky": "^7.0.4",
"lint-staged": "^11.2.3", "lint-staged": "^11.2.3",
"plop": "^2.7.6", "plop": "^2.7.6",
"postcss-scss": "^4.0.1",
"sass": "^1.43.3", "sass": "^1.43.3",
"stylelint": "^13.13.1", "stylelint": "^14.0.0",
"stylelint-config-html": "^0.0.2",
"stylelint-config-recommended": "^6.0.0",
"stylelint-config-recommended-scss": "^4.3.0", "stylelint-config-recommended-scss": "^4.3.0",
"stylelint-config-recommended-vue": "^0.0.5",
"stylelint-config-standard": "^22.0.0", "stylelint-config-standard": "^22.0.0",
"stylelint-scss": "^3.21.0", "stylelint-scss": "^3.21.0",
"svgo": "^2.7.0", "svgo": "^2.7.0",

File diff suppressed because it is too large Load Diff