-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
57 lines (57 loc) · 1.57 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
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"rules": {
"react/react-in-jsx-scope": "off",
"no-unused-vars": [
"warn",
{
"ignoreRestSiblings": true
}
],
"explicit-module-boundary-types": 0,
"ban-ts-comment": 0,
"no-empty-function": 0,
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-single"],
"comma-dangle": ["error", "always-multiline"],
"react/no-unescaped-entities": ["error", { "forbid": [">", "}"] }],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"prefer-destructuring": [
"error",
{ "array": true, "object": true },
{ "enforceForRenamedProperties": false }
],
"prefer-template": "error",
"no-useless-rename": "error",
"no-trailing-spaces": "error",
"semi": ["error", "always"],
"eqeqeq": ["error", "always"],
"no-else-return": "error",
"no-extra-bind": "error",
"no-useless-return": "error",
"no-lonely-if": "error",
"new-parens": "error",
"no-multiple-empty-lines": "error",
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"arrow-spacing": "error",
"no-var": "error",
"template-curly-spacing": ["error", "never"],
"space-before-blocks": ["error", "always"],
"no-unused-expressions": 0,
"react/prop-types": 0,
"no-console": "warn",
"react/display-name": 0,
"no-explicit-any": 0
},
"globals": {
"React": "writable"
}
}