-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy path.eslintrc
More file actions
31 lines (31 loc) · 681 Bytes
/
Copy path.eslintrc
File metadata and controls
31 lines (31 loc) · 681 Bytes
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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": [
"react",
"react-hooks"
],
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:prettier/recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018
},
"settings": {
"react": {
"version": "detect"
}
},
"parser": "babel-eslint",
"rules": {
"linebreak-style": ["error", "unix"],
"global-require": 0,
"eslint linebreak-style": [0, "error", "unix"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"max-len": ["error", { "code": 120 }]
}
}