Jpom/web-vue/.eslintrc.json
2024-04-30 10:21:03 +08:00

36 lines
904 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"root": true,
"env": {
"node": true,
"es2021": true,
"browser": true
},
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser",
"ecmaFeatures": {
"jsx": true // 启用 jsx
}
},
"plugins": ["prettier", "@typescript-eslint"],
"extends": [
"eslint:recommended", // 内置规则
"plugin:vue/vue3-recommended", // 支持 vue sfc
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
"eslint-config-prettier",
"./.eslintrc-auto-import.json",
"./.eslintrc-global-import.json"
],
"rules": {
// 禁止使用 var而应该用 let 或 const
"no-var": "error",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"vue/multi-word-component-names": "off",
// 处理换行
"endOfLine": 0
}
}