-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
41 lines (41 loc) · 1.07 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
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"jest-formatting"
],
"env": {
"es6": true,
"browser": true,
"jest": true
},
"extends": [
"eslint:recommended"
],
"ignorePatterns": ["*.min.js", "*.config.js"],
"overrides": [
{
"files": ["*.js", "*.ts", "*.tsx"],
"rules": {
"no-unused-vars": "error",
"no-trailing-spaces": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 0, "maxBOF": 0}],
"key-spacing": "error",
"semi": "error",
"space-in-parens": "error",
"comma-spacing": "error",
"keyword-spacing": "error",
"arrow-spacing": "error",
"padded-blocks": ["error", "never"],
"quotes": ["error", "single"],
"arrow-body-style": ["error", "as-needed"],
"space-before-blocks": ["error", "always"],
"jest-formatting/padding-around-describe-blocks": "error",
"jest-formatting/padding-around-test-blocks": "error"
}
}
]
}