chore: 将 lint 工具从 oxlint 切换为 eslint 并启用多语言支持
更新 package.json 中的 lint 脚本,使用 eslint 替代 oxlint 在 .vscode/settings.json 中启用 eslint 对所有支持语言的校验
This commit is contained in:
parent
ae515cd85e
commit
e171c29d28
44
.vscode/settings.json
vendored
44
.vscode/settings.json
vendored
@ -92,27 +92,27 @@
|
|||||||
|
|
||||||
// Enable eslint for all supported languages
|
// Enable eslint for all supported languages
|
||||||
"eslint.validate": [
|
"eslint.validate": [
|
||||||
// "javascript",
|
"javascript",
|
||||||
// "javascriptreact",
|
"javascriptreact",
|
||||||
// "typescript",
|
"typescript",
|
||||||
// "typescriptreact",
|
"typescriptreact",
|
||||||
"vue"
|
"vue",
|
||||||
// "html",
|
"html",
|
||||||
// "markdown",
|
"markdown",
|
||||||
// "json",
|
"json",
|
||||||
// "json5",
|
"json5",
|
||||||
// "jsonc",
|
"jsonc",
|
||||||
// "yaml",
|
"yaml",
|
||||||
// "toml",
|
"toml",
|
||||||
// "xml",
|
"xml",
|
||||||
// "gql",
|
"gql",
|
||||||
// "graphql",
|
"graphql",
|
||||||
// "astro",
|
"astro",
|
||||||
// "svelte",
|
"svelte",
|
||||||
// "css",
|
"css",
|
||||||
// "less",
|
"less",
|
||||||
// "scss",
|
"scss",
|
||||||
// "pcss",
|
"pcss",
|
||||||
// "postcss"
|
"postcss"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -72,8 +72,8 @@
|
|||||||
"type-check": "vue-tsc --noEmit",
|
"type-check": "vue-tsc --noEmit",
|
||||||
"openapi-ts-request": "openapi-ts",
|
"openapi-ts-request": "openapi-ts",
|
||||||
"prepare": "git init && husky",
|
"prepare": "git init && husky",
|
||||||
"lint": "oxlint",
|
"lint": "eslint",
|
||||||
"lint:fix": "oxlint --fix"
|
"lint:fix": "eslint --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dcloudio/uni-app": "3.0.0-4060620250520001",
|
"@dcloudio/uni-app": "3.0.0-4060620250520001",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user