-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
100 lines (100 loc) · 2.58 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"parser": "babel-eslint",
"plugins": ["react", "react-hooks"],
"parserOptions": {
"ecmaVersion": 9,
"ecmaFeatures": {
"experimentalDecorators": true,
"jsx": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"jest": true,
"es6": true
},
"root": true,
"extends": ["eslint:recommended", "plugin:react/recommended", "airbnb"],
"rules": {
"template-curly-spacing": "off",
"indent": "off",
"linebreak-style": [2, "windows"],
"quotes": [
2,
"single",
{
"allowTemplateLiterals": true
}
],
"semi": [2, "never"],
"comma-dangle": [2, "never"],
"no-cond-assign": [2, "always"],
"no-console": 0,
"react/prop-types": 0,
"max-len": [
2,
{
"code": 150,
"tabWidth": 2,
"ignoreUrls": true,
"comments": 350
}
],
"function-paren-newline": [2, "consistent"],
"standard/no-callback-literal": 0,
"jsx-quotes": [2, "prefer-single"],
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}
],
"react/display-name": "off",
"react/no-unescaped-entities": "off",
"lines-between-class-members": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/no-array-index-key": "off",
"eol-last": "off",
"react/destructuring-assignment": "off",
"no-param-reassign": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"import/prefer-default-export": "off",
"no-return-assign": "off",
"import/no-extraneous-dependencies": "off",
"react/no-unused-state": "off",
"max-classes-per-file": ["error", 2],
"no-trailing-spaces": "off",
"arrow-parens": "off",
"consistent-return": "off",
"no-else-return": "off",
"no-extra-boolean-cast": "off",
"no-lonely-if": "off",
"prefer-const": "off",
"no-plusplus": "off",
"import/no-unresolved": "off",
"object-curly-newline": "off",
"no-confusing-arrow": "off",
"react/jsx-curly-brace-presence": "off",
"no-nested-ternary": "off",
"no-underscore-dangle": "off",
"no-restricted-syntax": "off",
"no-useless-escape": 2,
"no-unused-vars": "off",
"react/no-danger": "off",
"react/state-in-constructor": 0,
"react/jsx-props-no-spreading": 0,
"react/no-deprecated": 1,
"react/prefer-stateless-function": 0,
"import/extensions": 1,
"react-hooks/exhaustive-deps": 0
}
}