-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
98 lines (98 loc) · 2.21 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
{
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"settings": {
"import/extensions": [".js", ".ts", ".d.ts"],
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".d.ts"]
}
}
},
"env": {
"node": true,
"es6": true,
"browser": true,
"jest": true,
"serviceworker": true
},
"plugins": [
"babel",
"jest",
"@typescript-eslint"
],
"rules": {
"no-tabs": "off",
"no-irregular-whitespace": "warn",
"comma-dangle": "off",
"function-paren-newline": "off",
"no-param-reassign": "off",
"semi": ["error", "never"],
"semi-style": ["error", "first"],
"indent": ["error", "tab", {"SwitchCase": 1}],
"object-curly-spacing": "off",
"padded-blocks": "off",
"spaced-comment": "off",
"radix": "off",
"no-restricted-globals": "off",
"curly": "off",
"lines-between-class-members": "off",
"object-curly-newline": "off",
"consistent-return": "off",
"max-len": ["error", {"code": 120}],
"arrow-parens": ["error", "as-needed"],
"no-async-promise-executor": "off",
"no-confusing-arrow": "off",
"no-nested-ternary": "off",
"no-return-assign": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-floating-decimal": "off",
"prefer-destructuring": "off",
"no-mixed-operators": "off",
"no-return-await": "off",
"no-plusplus": "off",
"no-await-in-loop": "off",
"no-void": "off",
"no-continue": "off",
"camelcase": "off",
"eol-last": "off",
"no-bitwise": "off",
"no-shadow": "off",
"import/first": "off",
"import/order": "off",
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never",
"css": "always",
"scss": "always",
"d.ts": "never"
}
],
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"useJSXTextNode": true,
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true,
"jsx": true
}
},
"globals": {
}
}