-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
67 lines (67 loc) · 2.18 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"google",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"no-unused-vars": "off",
"max-lines": ["error", {"max": 200, "skipBlankLines": true, "skipComments": true}],
"max-len": ["error", {"code": 120}],
"max-lines-per-function": ["warn", {"max": 50, "skipBlankLines": true, "skipComments": true}],
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": true
}
],
"no-console": 1,
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-nesting": 1,
"react/jsx-pascal-case": [2],
"no-invalid-this": "off",
"react/jsx-uses-vars": "error",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/no-unknown-property": "off",
"promise/always-return": "off",
"indent": ["error", 4, {"SwitchCase": 1}],
"linebreak-style": "off",
"no-debugger": 2,
"complexity": 1,
"react-hooks/rules-of-hooks": "error",
"react/boolean-prop-naming": ["error", {"rule": "^(is|has|can|should)[A-Z]([A-Za-z0-9]?)+"}],
"quotes": ["error", "double"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": "off",
"react/no-unescaped-entities": "warn",
"@typescript-eslint/no-use-before-define": "off",
"require-jsdoc": "off"
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["babel", "promise", "react-hooks", "@typescript-eslint", "prettier"],
"settings": {
"react": {
"version": "detect"
}
}
}