-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
103 lines (103 loc) · 3.36 KB
/
.eslintrc
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"env": {
"node": true,
"mocha": true,
"amd": true,
"es6": true,
"shared-node-browser": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures" : {
"impliedStrict": true
}
},
"plugins": ["no-inferred-method-name","sonarjs"],
"extends": ["eslint:recommended"],
"rules": {
"arrow-spacing": ["warn"],
"comma-spacing": ["warn"],
"key-spacing": ["warn"],
"keyword-spacing": ["warn"],
"space-infix-ops": ["warn"],
"object-shorthand": ["warn"],
"space-before-blocks": ["warn"],
"block-spacing": ["warn"],
"brace-style": ["warn"],
"indent": ["warn", "tab", { "SwitchCase": 1 } ],
"linebreak-style": [ "error", "unix" ],
"array-callback-return": [1, { "allowImplicit": true }],
"no-console": 0,
"block-scoped-var": 1,
"comma-dangle": [2, "never"],
"constructor-super": 2,
"quotes": [0, "double"],
"no-unused-vars": [1, {"vars": "all", "args": "none"}],
"handle-callback-err": 1,
"no-mixed-spaces-and-tabs": 2,
"no-undef": 2,
"for-direction": 2,
"func-name-matching": 2,
"guard-for-in": 2,
"prefer-rest-params": 2,
"prefer-spread": 2,
"semi": [1, "always"],
"no-class-assign": 2,
"no-constant-condition": 2,
"no-constructor-return": 2,
"no-control-regex": 2,
"no-delete-var": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-dupe-else-if": 2,
"no-duplicate-imports": 2,
"no-empty": 1,
"no-extra-boolean-cast": 1,
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": 1,
"no-invalid-regexp": 2,
"no-irregular-whitespace": 1,
"no-obj-calls": 2,
"no-new-require": 2,
"no-this-before-super": 2,
"no-prototype-builtins": 2,
"no-restricted-syntax": 1,
"no-return-assign": 1,
"no-setter-return": 2,
"no-useless-computed-key": 1,
"no-async-promise-executor": 1,
"no-multi-spaces": 1,
"no-new-wrappers": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 1,
"no-unexpected-multiline": 1,
"no-unreachable": 1,
"no-unneeded-ternary": 1,
"no-return-await": 2,
"no-else-return": 2,
"no-throw-literal": 1,
"no-template-curly-in-string": 2,
"no-use-before-define": ["error", { "functions": false }],
"no-unmodified-loop-condition": 2,
"use-isnan": 1,
"valid-typeof": 1,
"wrap-regex": 1,
"no-process-exit": 0,
"require-atomic-updates": 0,
"sonarjs/no-all-duplicated-branches": 2,
"sonarjs/no-extra-arguments": 2,
"sonarjs/no-identical-conditions": 2,
"sonarjs/no-identical-expressions": 2,
"sonarjs/no-one-iteration-loop": 2,
"sonarjs/no-use-of-empty-return-value": 2,
"sonarjs/no-useless-catch": 2,
"sonarjs/prefer-single-boolean-return": 2,
"sonarjs/no-redundant-boolean": 2,
"sonarjs/no-inverted-boolean-check": 2,
"sonarjs/no-element-overwrite": 2,
"sonarjs/no-collection-size-mischeck": 2,
"sonarjs/no-same-line-conditional": 2,
"sonarjs/no-unused-collection": 2
}
}