-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
90 lines (90 loc) · 1.98 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"parserOptions": {
"parser": "@typescript-eslint/parser"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".json",
".vue",
".svg?component"
]
},
"typescript": true
}
},
"extends": [
"prettier",
"plugin:vue/vue3-recommended",
"@vue/eslint-config-airbnb-with-typescript",
"@vue/typescript/recommended",
"@vue/prettier"
],
"ignorePatterns": ["vendor/**"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"no-underscore-dangle": "off",
"vue/no-multiple-template-root": "off",
"import/first": "off",
"import/no-named-as-default-member": "off",
"import/prefer-default-export": "off",
"import/no-cycle": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": ["function"],
"format": ["camelCase"],
"leadingUnderscore": "allow"
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/no-unused-vars": [
"warn", // or "error"
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"max-len": [
"error",
{
"code": 140,
"ignoreUrls": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Function": false
}
}
]
},
"overrides": [
{"rules": {"vue/one-component-per-file": "off"}, "files": ["**/*.spec.ts", "**/*.test.ts"]}
]
}