1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 20:10:22 +08:00

chore: eslint 替换为 @antfu/eslint-config,集成 lint-staged 和 simple-git-hooks

This commit is contained in:
zclzone
2024-06-06 17:26:55 +08:00
parent 004ef366f2
commit 98f9d5893a
8 changed files with 5261 additions and 2679 deletions

44
.vscode/settings.json vendored
View File

@@ -1,25 +1,27 @@
{
"files.eol": "\n",
"files.associations": {
"*.env.*": "dotenv",
"*.svg": "html",
"*.css": "scss"
// Enable the ESlint flat config support
// (remove this if your ESLint extension above v3.0.5)
"eslint.experimental.useFlatConfig": true,
"prettier.enable": false,
"editor.formatOnSave": false,
// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},
"editor.formatOnSave": false,
"[html][css][less][scss][sass][yaml][yml][jsonc][json]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact", "vue"],
"eslint.options": {
"overrideConfigFile": "package.json"
}
// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc"
]
}