-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
107 lines (107 loc) · 2.55 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"extends": ["airbnb-base", "prettier"],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"jest": true,
"es6": true
},
"globals": {
"cc": true,
"VERSION": true,
"TimeoutID": true,
"object": true,
"__DEV__": true
},
"rules": {
"import/no-extraneous-dependencies": 0,
"import/no-cycle": "warn",
"arrow-parens": 0,
"prefer-destructuring": 0,
"no-async-promise-executor": "warn",
"import/prefer-default-export": 0,
"class-methods-use-this": 0,
"no-console": 0,
// "no-console": ["warn", { "allow": ["error", "warn"] }],
"prefer-template": "off",
"no-plusplus": 0,
"no-underscore-dangle": "off",
"no-nested-ternary": "warn",
"import/no-named-default": 0,
"import/no-webpack-loader-syntax": 0,
"import/extensions": [
"error",
"always",
{
"ts": "never",
"tsx": "never",
"js": "never"
}
],
"import/default": "error",
"no-param-reassign": [
"error",
{
"props": false
}
],
"camelcase": 0,
"no-bitwise": "off",
"arrow-body-style": ["error", "as-needed"],
"no-restricted-globals": "off",
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
]
},
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"warnOnUnsupportedTypeScriptVersion": true
},
"plugins": ["@typescript-eslint"],
"rules": {
"default-case": "off",
"no-dupe-class-members": "off",
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "warn",
"@typescript-eslint/no-namespace": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"warn",
{
"functions": false,
"classes": false,
"variables": false,
"typedefs": false
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "none",
"ignoreRestSiblings": true
}
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "warn",
"import/extensions": 0,
"import/no-unresolved": 0
}
}
],
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": 1
}
}
}