-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
82 lines (82 loc) · 1.93 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
{
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"babel",
"import",
"react",
"compat",
"promise",
"prettier",
"@typescript-eslint"
],
"env": {
"node": false,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"jsx": true
},
"settings": {
"react": {
"pragma": "React",
"version": "16.8"
},
"import/resolver": {
"node": {
"paths": ["."],
"extensions": [".js", ".ts", ".tsx"]
}
}
},
"rules": {
"curly": [2, "all"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": 0,
"no-underscore-dangle": 0,
"comma-dangle": ["error", "never"],
"no-use-before-define": "error",
"no-console": "error",
"no-plusplus": 0,
"no-minusminus": 0,
"no-unused-expressions": 0,
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"object-curly-newline": 0,
"function-paren-newline": 0,
"no-return-await": 0,
"max-params": ["error", 5],
"max-depth": ["error", 3],
"promise/always-return": "error",
"promise/catch-or-return": "error",
"promise/param-names": "error",
"promise/no-return-wrap": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true }
],
"prettier/prettier": ["error"],
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}