-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
45 lines (45 loc) · 1.38 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
{
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"react-hooks"
],
"globals": {
"beforeEach": true,
"describe": true,
"expect": true,
"it": true,
"jest": true
},
"env": {
"browser": true,
"es6": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"@typescript-eslint/camelcase": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {
"allowExpressions": true,
"allowHigherOrderFunctions": true
}],
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreParameters": true }],
"@typescript-eslint/no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": true }],
"@typescript-eslint/prefer-optional-chain": "error",
"import/extensions": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"indent": 0,
"max-len": ["error", { "code": 120, "ignoreTemplateLiterals": true }],
"no-param-reassign": [2, { "props": false }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
"no-restricted-imports": ["error", "lodash", "recompose"]
},
"overrides": []
}