-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
103 lines (103 loc) · 2.63 KB
/
.eslintrc.json
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
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:vue/recommended",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
},
"alias": {
"map": [["@", "./src"]]
}
}
},
"rules": {
"lines-between-class-members": "off",
"no-underscore-dangle": "off",
"no-param-reassign": ["error", { "props": false }],
"no-plusplus": "off",
"no-restricted-globals": "off",
"func-names": "off",
"no-use-before-define": "off", // Conflicts with typescript variation
"@typescript-eslint/no-use-before-define": "error",
"no-shadow": "off", // Conflicts with typescript variation
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"vue/component-tags-order": [
"error",
{
"order": ["template", "script", "style"]
}
],
"vue/singleline-html-element-content-newline": "off",
"vue/html-self-closing": "off",
"vue/max-attributes-per-line": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": ["warn", { "devDependencies": true }],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
},
"overrides": [
{
"files": ["server/**/*"],
"rules": { "no-console": "off", "no-restricted-syntax": "off" }
},
{
"files": ["server/routes/clientRouter.ts"],
"rules": {
"import/newline-after-import": "off",
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["src/main.ts"],
"rules": { "@typescript-eslint/explicit-function-return-type": "off" }
},
{
"files": ["test-utils/**/*", "server/**/*.test.ts"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
},
{
"files": ["**/*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}