-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
54 lines (52 loc) · 1.31 KB
/
index.js
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
module.exports = {
plugins: [
"flowtype",
"react-hooks"
],
extends: [
"eslint-config-airbnb",
"eslint-plugin-flowtype/dist/configs/recommended"
].map(require.resolve),
rules: {
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"object-curly-newline": [
"error",
{
"ObjectExpression": {
"minProperties": 10,
"multiline": true,
"consistent": true
},
"ObjectPattern": {
"minProperties": 10,
"multiline": true,
"consistent": true
}
}
],
"lines-between-class-members": [
"error",
"always",
{ "exceptAfterSingleLine": true }
],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-one-expression-per-line": "off",
"react/sort-comp": "off",
"react/destructuring-assignment": "off",
"arrow-body-style": ["off"],
// Checks rules of Hooks
"react-hooks/rules-of-hooks": "error",
// Checks effect dependencies
"react-hooks/exhaustive-deps": "warn",
}
}