forked from lirongtong/miitvip-vue-admin-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
76 lines (76 loc) · 2.49 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"root": true,
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"plugin:vue/vue3-recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"@vue/prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@babel/eslint-parser"
},
"plugins": ["markdown", "jest", "@typescript-eslint", "import"],
"overrides": [
{
"files": ["*.md", "*.md/*.vue", "*.md/*.js", "*.md/*.ts", "*.md/*.base"],
"processor": "markdown/markdown",
"rules": { "no-console": "off", "import/no-unresolved": "off" }
},
{
"files": ["*.ts", "*.tsx"],
"parserOptions": { "project": ["./tsconfig.json", "./tsconfig.node.json", "./rollup.config.ts"] },
"rules": {
"semi": "off",
"quotes": ["error", "single", {
"allowTemplateLiterals": true,
"avoidEscape": true
}],
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/class-name-casing": "off",
"vue/html-closing-bracket-newline": ["error", {
"singleline": "never",
"multiline": "never"
}],
"@typescript-eslint/ban-ts-comment": 0
}
},
{
"files": ["*.vue"],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2021
},
"rules": {
"no-console": "off",
"semi": "off",
"vue/no-reserved-component-names": "off"
}
}
],
"rules": {
"no-console": "off",
"no-debugger": "off",
"no-var": "error",
"semi": "off",
"camelcase": "off",
"import/namespace": [2, { "allowComputed": true }],
"vue/no-v-html": "off",
"no-extra-boolean-cast": "off",
"import/no-named-as-default": "off",
"prettier/prettier": ["error", {
"endOfLine": "auto"
}]
}
}