This repository has been archived by the owner on May 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
96 lines (96 loc) · 3.24 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
{
"env": {
"browser": true,
"node": true,
"es2021": true,
"mocha": true
},
"plugins": ["sonarjs"],
"extends": ["eslint:recommended", "plugin:promise/recommended", "plugin:sonarjs/recommended", "plugin:node/recommended"],
"rules": {
"no-undef-init": "error",
"no-label-var": "error",
"init-declarations": ["error", "always"],
"wrap-iife": ["error", "inside"],
"yoda": "error",
"vars-on-top": "error",
"radix": ["error", "as-needed"],
"prefer-regex-literals": "error",
"prefer-promise-reject-errors": "error",
"no-warning-comments": "error",
"no-void": "error",
"no-useless-return": "error",
"no-useless-concat": "error",
"no-useless-call": "error",
"no-throw-literal": "error",
"no-sequences": "error",
"no-self-compare": "error",
"no-return-assign": "error",
"no-proto": "error",
"no-octal-escape": "error",
"no-nonoctal-decimal-escape": "error",
"no-new-wrappers": "error",
"no-new-func": "error",
"no-new": "error",
"no-multi-str": "error",
"no-multi-spaces": "error",
"no-lone-blocks": "error",
"no-labels": "error",
"no-iterator": "error",
"no-empty-function": "error",
"block-scoped-var": "error",
"prefer-arrow-callback": "error",
"no-implied-eval": "error",
"no-implicit-globals": "error",
"no-floating-decimal": "error",
"no-extra-label": "error",
"no-extra-bind": "error",
"no-extend-native": [
"error",
{
"exceptions": ["Object"]
}
],
"no-eval": "error",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-eq-null": "error",
"no-else-return": "error",
"no-unused-vars": 0,
"no-console": 0,
"no-empty": 0,
"no-redeclare": 0,
"no-useless-escape": 0,
"no-var": "error",
"object-shorthand": ["error", "properties"],
"prefer-template": "error",
"no-div-regex": "error",
"no-constructor-return": "error",
"no-caller": "error",
"max-classes-per-file": "error",
"default-param-last": "error",
"default-case-last": "error",
"default-case": "error",
"array-callback-return": "error",
"no-unsafe-optional-chaining": "error",
"no-unreachable-loop": "error",
"no-template-curly-in-string": "error",
"no-loss-of-precision": "error",
"sonarjs/cognitive-complexity": 0,
"sonarjs/no-nested-template-literals": 0,
"sonarjs/no-collapsible-if": 0,
"sonarjs/no-duplicate-string": 0,
"sonarjs/prefer-immediate-return": 0,
"sonarjs/no-identical-functions": 0,
"sonarjs/prefer-object-literal": 0,
"no-inner-declarations": 0,
"no-process-exit": 0,
"node/no-unpublished-import": 0,
"node/no-unsupported-features/es-syntax": 0,
"node/no-missing-import": 0,
"sonarjs/prefer-single-boolean-return": 0
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false
}
}