forked from msys-tintri/text-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
45 lines (44 loc) · 1.12 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
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false
},
"extends": [
"airbnb-base",
"airbnb/rules/react",
"prettier",
"prettier/react"
],
"env": {
"browser": true,
"jest": true
},
"plugins": ["react-hooks"],
"rules": {
"max-len": [
"error",
{ "code": 160, "ignorePattern": "^import\\s.+\\sfrom\\s.+;$" }
],
"prefer-promise-reject-errors": ["off"],
"react/jsx-filename-extension": ["off"],
"react/prop-types": ["warn"],
"no-return-assign": ["off"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"import/prefer-default-export": "off",
"react/destructuring-assignment": [
"error",
"always",
{ "ignoreClassFields": true }
],
"no-restricted-syntax": "off",
"no-plusplus": "off",
"no-param-reassign": [2, { "props": false }],
"import/no-unresolved": [
"error",
{ "ignore": ["^react"] }
]
}
}