workflow: add stylelint

This commit is contained in:
xiaoxian521
2021-09-04 12:37:23 +08:00
parent 0063261fd5
commit 173575687d
38 changed files with 3663 additions and 181 deletions

View File

@@ -9,6 +9,7 @@
"preview": "vite preview",
"preview:build": "npm run build && vite preview",
"lint": "eslint --ext .js,.jsx,.vue,.ts,.tsx src",
"lint:stylelint": "stylelint --cache --fix \"**/*.{vue,css,scss,postcss,less}\" --cache --cache-location node_modules/.cache/stylelint/",
"lint-staged": "lint-staged"
},
"husky": {
@@ -81,6 +82,10 @@
"rimraf": "^3.0.2",
"sass": "^1.38.0",
"sass-loader": "^12.1.0",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^22.0.0",
"stylelint-order": "^4.1.0",
"typescript": "^4.4.2",
"vite": "^2.5.3",
"vite-plugin-element-plus": "^0.0.12",