This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
55 lines (55 loc) · 1.63 KB
/
.eslintrc.js
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
module.exports = {
"root": true,
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"extends": "standard",
"rules": {
"import/extensions": [
"error",
"never",
{
"js": "never",
"ts": "never",
"vue": 'never'
}
]
},
"plugins": ['html'],
"overrides": [
{
"files": ["**/*.ts"],
"parser": "typescript-eslint-parser",
"plugins": [
"typescript"
],
"rules": {
"no-undef": "allow",
"camelcase": "never",
"typescript/adjacent-overload-signatures": "error",
"typescript/class-name-casing": "error",
"typescript/explicit-function-return-type": "error",
"typescript/explicit-member-accessibility": "error",
"typescript/interface-name-prefix": "error",
"typescript/member-delimiter-style": "error",
"typescript/member-naming": "error",
"typescript/member-ordering": "error",
"typescript/no-angle-bracket-type-assertion": "error",
"typescript/no-array-constructor": "error",
"typescript/no-explicit-any": "error",
"typescript/no-namespace": "error",
"typescript/no-non-null-assertion": "error",
"typescript/no-parameter-properties": "error",
"typescript/no-triple-slash-reference": "error",
"typescript/no-type-alias": "allow",
"typescript/no-unused-vars": "error",
"typescript/no-use-before-define": "error",
"typescript/no-var-requires": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/type-annotation-spacing": "error"
}
}
]
}