-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.json
41 lines (41 loc) · 1.57 KB
/
.eslintrc.json
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
{
"extends": [
"react-app",
"react-app/jest"
],
"ignorePatterns": [".plasmo", "node_modules"],
"globals": {
"chrome": true
},
"rules": {
"indent": ["error", 4],
"no-trailing-spaces": 0,
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, "always"],
"object-curly-spacing": [1, "always"],
"padded-blocks": 0,
"comma-dangle": [1, {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}],
"arrow-spacing": ["error", { "before": true, "after": true }],
"comma-spacing": ["error", { "before": false, "after": true }],
"keyword-spacing": ["error", { "after": true }],
"space-infix-ops": ["error", { "int32Hint": false }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"eol-last": 0,
"no-multiple-empty-lines": [1, { "max": 1 }],
"@typescript-eslint/no-unused-vars": "error",
"padding-line-between-statements": ["warn",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "*", "next": "block" },
{ "blankLine": "always", "prev": "block", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "block-like" },
{ "blankLine": "always", "prev": "block-like", "next": "*" }
],
"react-hooks/exhaustive-deps": "off"
}
}