This repository has been archived by the owner on Feb 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.json
61 lines (61 loc) · 2.11 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
57
58
59
60
61
{
"env": {
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended", "plugin:security/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion" : 6,
"sourceType": "module"
},
"globals": {
"console": true,
"process": true,
"module": true
},
"plugins": [ "import", "jest", "security" ],
"rules": {
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "error",
"jest/valid-expect": "error",
"indent": [ "error", 4, { "SwitchCase": 1 } ],
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "never" ],
"no-case-declarations": [ "off" ],
"brace-style": [ "error" ],
"no-multi-spaces": ["error" ],
"no-trailing-spaces": [ "error" ],
"no-inline-comments": [ "error" ],
"comma-dangle": [ "error", "only-multiline" ],
"no-console": [ "error" ],
"no-useless-concat": [ "error" ],
"import/order": [ "error" ],
"no-unused-vars": [ "error" ],
"no-useless-constructor": [ "error" ],
"no-dupe-class-members": [ "error" ],
"key-spacing": [ "error" ],
"no-iterator": [ "error" ],
"prefer-template": [ "error" ],
"prefer-const": [ "error" ],
"keyword-spacing": [ "error" ],
"space-before-blocks": [ "error" ],
"padded-blocks": [ "error", "never" ],
"no-multiple-empty-lines": [ "error", { "max": 1, "maxEOF": 1 } ],
"space-in-parens": ["error", "never"],
"no-var": [ "error" ],
"no-new-wrappers": [ "error" ],
"object-shorthand": [ "error" ],
"object-curly-spacing": [ "error", "always", { "objectsInObjects": false, "arraysInObjects": false } ],
"no-else-return": "error",
"quote-props": [ "error", "as-needed"],
"eqeqeq": [ "warn", "always" ],
"arrow-spacing": [ "warn" ],
"comma-spacing": [ "warn" ]
}
}