|
1 | 1 | { |
2 | 2 | "parser": "@typescript-eslint/parser", |
3 | | - "plugins": [ |
4 | | - "@typescript-eslint", |
5 | | - "sonarjs", |
6 | | - "security", |
7 | | - "github" |
8 | | - ], |
| 3 | + "plugins": ["@typescript-eslint", "sonarjs", "security", "github"], |
9 | 4 | "extends": [ |
10 | 5 | "eslint:recommended", |
11 | 6 | "plugin:@typescript-eslint/recommended", |
|
21 | 16 | "eol-last": ["error", "always"], |
22 | 17 | "@typescript-eslint/no-explicit-any": 0, |
23 | 18 | "require-await": "error", |
24 | | - "@typescript-eslint/explicit-module-boundary-types": ["error", {"allowArgumentsExplicitlyTypedAsAny": true}], |
| 19 | + "@typescript-eslint/explicit-module-boundary-types": [ |
| 20 | + "error", |
| 21 | + { "allowArgumentsExplicitlyTypedAsAny": true } |
| 22 | + ], |
25 | 23 | "sonarjs/no-small-switch": "off", |
26 | 24 | "no-underscore-dangle": "error", |
27 | 25 | "no-process-exit": "error", |
28 | 26 | "no-warning-comments": "error", |
29 | 27 | "no-loop-func": "error", |
30 | | - "curly": ["error"], |
31 | 28 | "no-multi-spaces": "error", |
32 | 29 | "consistent-return": 0, |
33 | | - "consistent-this": [ |
34 | | - 0, |
35 | | - "self" |
36 | | - ], |
| 30 | + "consistent-this": [0, "self"], |
37 | 31 | "func-style": 0, |
38 | 32 | "max-nested-callbacks": ["error", 3], |
39 | 33 | "camelcase": 0, |
|
65 | 59 | "no-throw-literal": 2, |
66 | 60 | "no-void": 2, |
67 | 61 | "radix": 2, |
68 | | - "wrap-iife": [ |
69 | | - 2, |
70 | | - "outside" |
71 | | - ], |
| 62 | + "wrap-iife": [2, "outside"], |
72 | 63 | "no-shadow": 0, |
73 | | - "no-use-before-define": [ |
74 | | - 2, |
75 | | - "nofunc" |
76 | | - ], |
| 64 | + "no-use-before-define": [2, "nofunc"], |
77 | 65 | "no-path-concat": 2, |
78 | 66 | "valid-jsdoc": [ |
79 | 67 | 0, |
|
85 | 73 | ], |
86 | 74 | "no-spaced-func": 2, |
87 | 75 | "semi-spacing": 2, |
88 | | - "quotes": [ |
89 | | - 2, |
90 | | - "single" |
91 | | - ], |
| 76 | + "quotes": [2, "single"], |
92 | 77 | "key-spacing": [ |
93 | 78 | 2, |
94 | 79 | { |
95 | 80 | "beforeColon": false, |
96 | 81 | "afterColon": true |
97 | 82 | } |
98 | 83 | ], |
99 | | - "indent": [ |
100 | | - 2, |
101 | | - 2 |
102 | | - ], |
103 | 84 | "no-lonely-if": 2, |
104 | 85 | "no-floating-decimal": 2, |
105 | 86 | "brace-style": [ |
|
109 | 90 | "allowSingleLine": true |
110 | 91 | } |
111 | 92 | ], |
112 | | - "comma-style": [ |
113 | | - 2, |
114 | | - "last" |
115 | | - ], |
| 93 | + "comma-style": [2, "last"], |
116 | 94 | "no-multiple-empty-lines": [ |
117 | 95 | 2, |
118 | 96 | { |
119 | 97 | "max": 1 |
120 | 98 | } |
121 | 99 | ], |
122 | 100 | "no-nested-ternary": 2, |
123 | | - "operator-assignment": [ |
124 | | - 2, |
125 | | - "always" |
126 | | - ], |
127 | | - "padded-blocks": [ |
128 | | - 2, |
129 | | - "never" |
130 | | - ], |
131 | | - "quote-props": [ |
132 | | - 2, |
133 | | - "as-needed" |
134 | | - ], |
| 101 | + "operator-assignment": [2, "always"], |
| 102 | + "padded-blocks": [2, "never"], |
| 103 | + "quote-props": [2, "as-needed"], |
135 | 104 | "keyword-spacing": [ |
136 | 105 | 2, |
137 | 106 | { |
|
140 | 109 | "overrides": {} |
141 | 110 | } |
142 | 111 | ], |
143 | | - "space-before-blocks": [ |
144 | | - 2, |
145 | | - "always" |
146 | | - ], |
147 | | - "array-bracket-spacing": [ |
148 | | - 2, |
149 | | - "never" |
150 | | - ], |
151 | | - "computed-property-spacing": [ |
152 | | - 2, |
153 | | - "never" |
154 | | - ], |
155 | | - "space-in-parens": [ |
156 | | - 2, |
157 | | - "never" |
158 | | - ], |
| 112 | + "space-before-blocks": [2, "always"], |
| 113 | + "array-bracket-spacing": [2, "never"], |
| 114 | + "computed-property-spacing": [2, "never"], |
| 115 | + "space-in-parens": [2, "never"], |
159 | 116 | "space-unary-ops": [ |
160 | 117 | 2, |
161 | 118 | { |
|
167 | 124 | "wrap-regex": 2, |
168 | 125 | //"linebreak-style": ["error", "unix"], |
169 | 126 | "linebreak-style": 0, |
170 | | - "semi": [ |
171 | | - 2, |
172 | | - "always" |
173 | | - ], |
174 | 127 | "arrow-spacing": [ |
175 | 128 | 2, |
176 | 129 | { |
|
182 | 135 | "no-const-assign": 2, |
183 | 136 | "no-this-before-super": 2, |
184 | 137 | "no-var": 2, |
185 | | - "object-shorthand": [ |
186 | | - 2, |
187 | | - "always" |
188 | | - ], |
| 138 | + "object-shorthand": [2, "always"], |
189 | 139 | "prefer-arrow-callback": 2, |
190 | 140 | "prefer-const": 2, |
191 | 141 | "prefer-spread": 2, |
|
0 commit comments