-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
83 lines (83 loc) · 1.89 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"env": {
"browser": true,
"es6": true,
"commonjs": true,
"node": true,
"mocha": true,
"jest": true
},
"settings": {
"react": {
"pragma": "React",
"version": "16.6"
}
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"globalReturn": true,
"generators": false,
"objectLiteralDuplicateProperties": false,
"experimentalObjectRestSpread": true,
"legacyDecorators": true
}
},
"plugins": ["react", "react-hooks", "@typescript-eslint/eslint-plugin"],
"globals": {
"process": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"max-len": ["error", 240],
"no-mixed-operators": "off",
"quote-props": ["error", "as-needed"],
"no-undef": 1,
"no-extra-semi": 1,
"no-trailing-spaces": [
1,
{
"skipBlankLines": true
}
],
"no-unreachable": 1,
"prefer-arrow-callback": "error",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"strict": "off",
"padded-blocks": "off",
"comma-dangle": "off",
"no-param-reassign": "off",
"arrow-body-style": 0,
"no-underscore-dangle": "off",
"no-else-return": "off",
"no-unused-vars": 0,
"require-atomic-updates": 0,
"dot-notation": "off",
"prefer-template": 1,
"indent": [
"error",
2,
{
"ignoredNodes": ["JSXElement"],
"SwitchCase": 1
}
],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"no-console": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/prop-types": 0
}
}