-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
56 lines (56 loc) · 1.81 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:jest/all"
],
"plugins": [
"markdown",
"jest"
],
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"semi": [1, "always"],
"no-unused-vars": ["warn", { "vars": "all", "args": "all", "ignoreRestSiblings": false, "caughtErrors": "all" }],
"no-console": ["error"],
"require-atomic-updates": ["error"],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"block-spacing": ["error", "always"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"space-before-blocks": ["warn", { "functions": "always" }],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["warn", "always"],
"max-len": ["error", { "ignoreComments": true, "ignoreStrings": true }],
"max-depth": ["error", 2],
"space-before-function-paren": ["error", "never"],
"prefer-const": ["error", { "destructuring": "all" }]
},
"overrides": [
{
"files": ["./tests/**/*.js"],
"rules": {
"no-unused-vars": ["warn", { "vars": "all", "args": "all", "ignoreRestSiblings": false }],
"jest/prefer-expect-assertions": ["off"],
"jest/prefer-called-with": ["off"],
"jest/require-to-throw-message": ["warn"]
}
},
{
"files": ["./**/*.md"],
"rules": {
"no-undef": ["off"],
"no-unused-vars": ["off"],
"no-console": ["off"],
"padded-blocks": ["off"],
"max-len": ["off"]
}
}
]
}