/
.eslintrc
49 lines (49 loc) · 1.1 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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier/react"
],
"plugins": ["prettier", "react-hooks"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"globals": {
"fetch": true,
"contextType": true
},
"rules": {
"indent": "off",
"comma-dangle": ["error", "always-multiline"],
"no-console": 0,
"no-underscore-dangle": 0,
"react/jsx-filename-extension": 0,
"import/prefer-default-export": 0,
"react/prop-types": 0,
"react/jsx-wrap-multilines": 0,
"no-useless-concat": 0,
"react/jsx-indent": 0,
"react/jsx-curly-newline": 0,
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 1,
"react/sort-comp": 0,
"max-len": [
"warn",
{
"code": 100,
"tabWidth": 2,
"comments": 100,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
}
}