-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (40 loc) · 1.25 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
module.exports = {
extends: "airbnb",
plugins: ["react-hooks"],
"rules": {
"linebreak-style": 0,
"lines-around-comment": ["error", {
"allowBlockStart": true,
"beforeBlockComment": true,
"afterBlockComment": true,
"beforeLineComment": true,
"afterLineComment": true
}],
"lines-between-class-members": ["error", "always", {
"exceptAfterSingleLine": true
}],
"max-len": 0,
"newline-before-return": "error",
"newline-after-var": "error",
"no-shadow": ["error", {
"allow": ["i"]
}],
"no-use-before-define": 0,
"object-curly-newline": ["error", {
"consistent": true
}],
"padding-line-between-statements": ["error",
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": ["const", "let"] },
{ "blankLine": "any", "prev": ["const", "let"], "next": ["const", "let"] }
],
"radix": 0,
"space-before-blocks": "error",
"react/jsx-filename-extension": 0,
"react/jsx-one-expression-per-line": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-props-no-spreading": 0,
},
};