@origin-1/eslint-config 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/rules.js +205 -221
  2. package/package.json +5 -5
package/lib/rules.js CHANGED
@@ -29,61 +29,61 @@ function jsts(jsEntry, tsEntry) {
29
29
  exports.RULES = {
30
30
  [exports.UNIQUE]: {
31
31
  'array-callback-return': 'off',
32
- 'constructor-super': 'error',
33
- 'for-direction': 'error',
34
- 'getter-return': 'error',
35
- 'no-async-promise-executor': 'error',
32
+ 'constructor-super': ['error'],
33
+ 'for-direction': ['error'],
34
+ 'getter-return': ['error'],
35
+ 'no-async-promise-executor': ['error'],
36
36
  'no-await-in-loop': 'off',
37
- 'no-class-assign': 'error',
38
- 'no-compare-neg-zero': 'error',
37
+ 'no-class-assign': ['error'],
38
+ 'no-compare-neg-zero': ['error'],
39
39
  'no-cond-assign': 'off',
40
- 'no-const-assign': 'error',
41
- 'no-constant-binary-expression': 'error',
42
- 'no-constant-condition': 'error',
40
+ 'no-const-assign': ['error'],
41
+ 'no-constant-binary-expression': ['error'],
42
+ 'no-constant-condition': ['error'],
43
43
  'no-constructor-return': 'off',
44
44
  'no-control-regex': 'off',
45
- 'no-debugger': 'error',
46
- 'no-dupe-args': 'error',
47
- 'no-dupe-else-if': 'error',
48
- 'no-dupe-keys': 'error',
49
- 'no-duplicate-case': 'error',
50
- 'no-duplicate-imports': jsts('error', 'off'),
51
- 'no-empty-character-class': 'error',
52
- 'no-empty-pattern': 'error',
53
- 'no-ex-assign': 'error',
54
- 'no-fallthrough': 'error',
55
- 'no-func-assign': 'error',
56
- 'no-import-assign': 'error',
57
- 'no-inner-declarations': beforeJSOrElse(2015, 'error', 'off'),
58
- 'no-invalid-regexp': 'error',
59
- 'no-irregular-whitespace': 'error',
60
- 'no-misleading-character-class': 'error',
61
- 'no-new-native-nonconstructor': 'error',
45
+ 'no-debugger': ['error'],
46
+ 'no-dupe-args': ['error'],
47
+ 'no-dupe-else-if': ['error'],
48
+ 'no-dupe-keys': ['error'],
49
+ 'no-duplicate-case': ['error'],
50
+ 'no-duplicate-imports': jsts(['error'], 'off'),
51
+ 'no-empty-character-class': ['error'],
52
+ 'no-empty-pattern': ['error'],
53
+ 'no-ex-assign': ['error'],
54
+ 'no-fallthrough': ['error'],
55
+ 'no-func-assign': ['error'],
56
+ 'no-import-assign': ['error'],
57
+ 'no-inner-declarations': beforeJSOrElse(2015, ['error'], 'off'),
58
+ 'no-invalid-regexp': ['error'],
59
+ 'no-irregular-whitespace': ['error'],
60
+ 'no-misleading-character-class': ['error'],
61
+ 'no-new-native-nonconstructor': ['error'],
62
62
  'no-new-symbol': 'off',
63
- 'no-obj-calls': 'error',
64
- 'no-promise-executor-return': 'error',
63
+ 'no-obj-calls': ['error'],
64
+ 'no-promise-executor-return': ['error'],
65
65
  'no-prototype-builtins': 'off',
66
- 'no-self-assign': 'error',
66
+ 'no-self-assign': ['error'],
67
67
  'no-self-compare': 'off',
68
- 'no-setter-return': 'error',
68
+ 'no-setter-return': ['error'],
69
69
  'no-sparse-arrays': 'off',
70
70
  'no-template-curly-in-string': 'off',
71
- 'no-this-before-super': 'error',
72
- 'no-undef': jsts('error', 'off'),
71
+ 'no-this-before-super': ['error'],
72
+ 'no-undef': jsts(['error'], 'off'),
73
73
  'no-unexpected-multiline': 'off',
74
74
  'no-unmodified-loop-condition': 'off',
75
- 'no-unreachable': 'error',
76
- 'no-unreachable-loop': 'error',
77
- 'no-unsafe-finally': 'error',
78
- 'no-unsafe-negation': 'error',
79
- 'no-unsafe-optional-chaining': 'error',
80
- 'no-unused-private-class-members': 'error',
81
- 'no-useless-backreference': 'error',
75
+ 'no-unreachable': ['error'],
76
+ 'no-unreachable-loop': ['error'],
77
+ 'no-unsafe-finally': ['error'],
78
+ 'no-unsafe-negation': ['error'],
79
+ 'no-unsafe-optional-chaining': ['error'],
80
+ 'no-unused-private-class-members': ['error'],
81
+ 'no-useless-backreference': ['error'],
82
82
  'require-atomic-updates': 'off',
83
83
  'use-isnan': ['error', { enforceForSwitchCase: true }],
84
- 'valid-typeof': 'error',
84
+ 'valid-typeof': ['error'],
85
85
  'accessor-pairs': ['error', { enforceForClassMembers: true }],
86
- 'arrow-body-style': 'error',
86
+ 'arrow-body-style': ['error'],
87
87
  'block-scoped-var': 'off',
88
88
  'camelcase': 'off',
89
89
  'capitalized-comments': 'off',
@@ -113,97 +113,97 @@ exports.RULES = {
113
113
  'max-statements': 'off',
114
114
  'multiline-comment-style': 'off',
115
115
  'new-cap': ['error', { capIsNew: false }],
116
- 'no-alert': 'error',
116
+ 'no-alert': ['error'],
117
117
  'no-bitwise': 'off',
118
- 'no-caller': 'error',
119
- 'no-case-declarations': 'error',
118
+ 'no-caller': ['error'],
119
+ 'no-case-declarations': ['error'],
120
120
  'no-confusing-arrow': 'off',
121
121
  'no-console': 'off',
122
122
  'no-continue': 'off',
123
- 'no-delete-var': 'error',
124
- 'no-div-regex': 'error',
125
- 'no-else-return': 'error',
123
+ 'no-delete-var': ['error'],
124
+ 'no-div-regex': ['error'],
125
+ 'no-else-return': ['error'],
126
126
  'no-empty': ['error', { allowEmptyCatch: true }],
127
- 'no-empty-static-block': 'error',
127
+ 'no-empty-static-block': ['error'],
128
128
  'no-eq-null': 'off',
129
129
  'no-eval': 'off',
130
- 'no-extend-native': 'error',
131
- 'no-extra-bind': 'error',
132
- 'no-extra-boolean-cast': 'error',
133
- 'no-extra-label': 'error',
134
- 'no-floating-decimal': 'error',
135
- 'no-global-assign': 'error',
130
+ 'no-extend-native': ['error'],
131
+ 'no-extra-bind': ['error'],
132
+ 'no-extra-boolean-cast': ['error'],
133
+ 'no-extra-label': ['error'],
134
+ 'no-floating-decimal': ['error'],
135
+ 'no-global-assign': ['error'],
136
136
  'no-implicit-coercion': 'off',
137
137
  'no-implicit-globals': 'off',
138
138
  'no-inline-comments': 'off',
139
- 'no-iterator': 'error',
140
- 'no-label-var': 'error',
139
+ 'no-iterator': ['error'],
140
+ 'no-label-var': ['error'],
141
141
  'no-labels': ['error', { allowLoop: true, allowSwitch: true }],
142
- 'no-lone-blocks': beforeJSOrElse(2015, 'error', 'off'),
142
+ 'no-lone-blocks': beforeJSOrElse(2015, ['error'], 'off'),
143
143
  'no-lonely-if': 'off',
144
144
  'no-mixed-operators': 'off',
145
145
  'no-multi-assign': 'off',
146
- 'no-multi-str': 'error',
146
+ 'no-multi-str': ['error'],
147
147
  'no-negated-condition': 'off',
148
148
  'no-nested-ternary': 'off',
149
149
  'no-new': 'off',
150
150
  'no-new-func': 'off',
151
- 'no-new-object': 'error',
152
- 'no-new-wrappers': 'error',
153
- 'no-nonoctal-decimal-escape': 'error',
154
- 'no-octal': 'error',
155
- 'no-octal-escape': 'error',
151
+ 'no-new-object': ['error'],
152
+ 'no-new-wrappers': ['error'],
153
+ 'no-nonoctal-decimal-escape': ['error'],
154
+ 'no-octal': ['error'],
155
+ 'no-octal-escape': ['error'],
156
156
  'no-param-reassign': 'off',
157
157
  'no-plusplus': 'off',
158
- 'no-proto': 'error',
158
+ 'no-proto': ['error'],
159
159
  'no-regex-spaces': 'off',
160
160
  'no-restricted-exports': 'off',
161
- 'no-restricted-globals': 'error',
161
+ 'no-restricted-globals': ['error'],
162
162
  'no-restricted-properties': 'off',
163
- 'no-restricted-syntax': 'error',
163
+ 'no-restricted-syntax': ['error'],
164
164
  'no-return-assign': ['error', 'always'],
165
- 'no-return-await': 'error',
166
- 'no-script-url': 'error',
167
- 'no-sequences': 'error',
168
- 'no-shadow-restricted-names': 'error',
165
+ 'no-return-await': ['error'],
166
+ 'no-script-url': ['error'],
167
+ 'no-sequences': ['error'],
168
+ 'no-shadow-restricted-names': ['error'],
169
169
  'no-ternary': 'off',
170
- 'no-undef-init': 'error',
170
+ 'no-undef-init': ['error'],
171
171
  'no-undefined': 'off',
172
172
  'no-underscore-dangle': 'off',
173
- 'no-unneeded-ternary': 'error',
174
- 'no-unused-labels': 'error',
175
- 'no-useless-call': 'error',
176
- 'no-useless-catch': 'error',
177
- 'no-useless-computed-key': 'error',
178
- 'no-useless-concat': 'error',
179
- 'no-useless-escape': 'error',
180
- 'no-useless-rename': 'error',
181
- 'no-useless-return': 'error',
182
- 'no-var': beforeJSOrElse(2015, 'off', 'error'),
173
+ 'no-unneeded-ternary': ['error'],
174
+ 'no-unused-labels': ['error'],
175
+ 'no-useless-call': ['error'],
176
+ 'no-useless-catch': ['error'],
177
+ 'no-useless-computed-key': ['error'],
178
+ 'no-useless-concat': ['error'],
179
+ 'no-useless-escape': ['error'],
180
+ 'no-useless-rename': ['error'],
181
+ 'no-useless-return': ['error'],
182
+ 'no-var': beforeJSOrElse(2015, 'off', ['error']),
183
183
  'no-void': 'off',
184
184
  'no-warning-comments': 'off',
185
- 'no-with': 'error',
185
+ 'no-with': ['error'],
186
186
  'object-shorthand': beforeJSOrElse(2015, 'off', ['error', 'always', { avoidQuotes: true }]),
187
187
  'one-var': ['error', 'never'],
188
- 'one-var-declaration-per-line': 'error',
189
- 'operator-assignment': 'error',
190
- 'prefer-arrow-callback': beforeJSOrElse(2015, 'off', 'error'),
188
+ 'one-var-declaration-per-line': ['error'],
189
+ 'operator-assignment': ['error'],
190
+ 'prefer-arrow-callback': beforeJSOrElse(2015, 'off', ['error']),
191
191
  'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
192
- 'prefer-destructuring': beforeJSOrElse(2015, 'off', 'error'),
193
- 'prefer-exponentiation-operator': jsts(beforeOrElse(2016, 'off', 'error'), 'off'),
192
+ 'prefer-destructuring': beforeJSOrElse(2015, 'off', ['error']),
193
+ 'prefer-exponentiation-operator': jsts(beforeOrElse(2016, 'off', ['error']), 'off'),
194
194
  'prefer-named-capture-group': 'off',
195
- 'prefer-numeric-literals': 'error',
196
- 'prefer-object-has-own': 'error',
195
+ 'prefer-numeric-literals': ['error'],
196
+ 'prefer-object-has-own': ['error'],
197
197
  'prefer-object-spread': 'off',
198
198
  'prefer-promise-reject-errors': 'off',
199
199
  'prefer-regex-literals': 'off',
200
- 'prefer-rest-params': beforeJSOrElse(2015, 'off', 'error'),
201
- 'prefer-spread': beforeJSOrElse(2015, 'off', 'error'),
202
- 'prefer-template': beforeJSOrElse(2015, 'off', 'error'),
200
+ 'prefer-rest-params': beforeJSOrElse(2015, 'off', ['error']),
201
+ 'prefer-spread': beforeJSOrElse(2015, 'off', ['error']),
202
+ 'prefer-template': beforeJSOrElse(2015, 'off', ['error']),
203
203
  'quote-props': 'off',
204
- 'radix': 'error',
204
+ 'radix': ['error'],
205
205
  'require-unicode-regexp': 'off',
206
- 'require-yield': 'error',
206
+ 'require-yield': ['error'],
207
207
  'sort-imports': ['error', { ignoreDeclarationSort: true }],
208
208
  'sort-keys': 'off',
209
209
  'sort-vars': 'off',
@@ -215,103 +215,85 @@ exports.RULES = {
215
215
  'strict': jsts(['error', 'global'], 'off'),
216
216
  'symbol-description': 'off',
217
217
  'vars-on-top': 'off',
218
- 'yoda': 'error',
219
- 'array-bracket-newline': ['error', 'consistent'],
220
- 'array-bracket-spacing': 'error',
218
+ 'yoda': ['error'],
219
+ 'array-bracket-newline': 'off',
220
+ 'array-bracket-spacing': ['error'],
221
221
  'array-element-newline': 'off',
222
222
  'arrow-parens': ['error', 'as-needed'],
223
- 'arrow-spacing': 'error',
224
- 'block-spacing': 'error',
223
+ 'arrow-spacing': ['error'],
224
+ 'block-spacing': ['error'],
225
225
  'comma-style': ['error', 'last', { exceptions: { ArrayExpression: true } }],
226
- 'computed-property-spacing': 'error',
226
+ 'computed-property-spacing': ['error'],
227
227
  'dot-location': ['error', 'property'],
228
- 'eol-last': 'error',
228
+ 'eol-last': ['error'],
229
229
  'function-call-argument-newline': ['error', 'consistent'],
230
230
  'function-paren-newline': ['error', 'consistent'],
231
231
  'generator-star-spacing': ['error', 'both'],
232
232
  'implicit-arrow-linebreak': 'off',
233
- 'indent': [
234
- 'error',
235
- 4,
236
- {
237
- CallExpression: { arguments: 'first' },
238
- FunctionDeclaration: { parameters: 'first' },
239
- FunctionExpression: { parameters: 'first' },
240
- MemberExpression: 0,
241
- VariableDeclarator: 0,
242
- ignoredNodes: [
243
- 'ArrowFunctionExpression',
244
- 'CallExpression[typeParameters]',
245
- 'ClassDeclaration[superClass]',
246
- 'ConditionalExpression>:matches(.consequent,.alternate)',
247
- 'ImportDeclaration',
248
- 'TemplateLiteral',
249
- ],
250
- },
251
- ],
252
- 'jsx-quotes': 'error',
233
+ 'jsx-quotes': ['error'],
253
234
  'key-spacing': 'off',
254
235
  'line-comment-position': 'off',
255
- 'linebreak-style': 'error',
236
+ 'linebreak-style': ['error'],
256
237
  'lines-around-comment': jsts(['error', { allowBlockStart: true, allowObjectStart: true }], 'off'),
257
238
  'max-len': ['error', { code: 100 }],
258
- 'max-statements-per-line': 'error',
239
+ 'max-statements-per-line': ['error'],
259
240
  'multiline-ternary': 'off',
260
- 'new-parens': 'error',
241
+ 'new-parens': ['error'],
261
242
  'newline-per-chained-call': 'off',
262
243
  'no-mixed-spaces-and-tabs': 'off',
263
244
  'no-multi-spaces': 'off',
264
245
  'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 0 }],
265
- 'no-tabs': 'error',
266
- 'no-trailing-spaces': 'error',
267
- 'no-whitespace-before-property': 'error',
246
+ 'no-tabs': ['error'],
247
+ 'no-trailing-spaces': ['error'],
248
+ 'no-whitespace-before-property': ['error'],
268
249
  'nonblock-statement-body-position': 'off',
269
250
  'object-curly-newline': 'off',
270
251
  'object-property-newline': ['error', { allowMultiplePropertiesPerLine: true }],
271
252
  'operator-linebreak': ['error', 'after'],
272
253
  'padded-blocks': ['error', 'never'],
273
- 'rest-spread-spacing': 'error',
274
- 'semi-spacing': 'error',
275
- 'semi-style': 'error',
276
- 'space-in-parens': 'error',
277
- 'space-unary-ops': 'error',
254
+ 'rest-spread-spacing': ['error'],
255
+ 'semi-spacing': ['error'],
256
+ 'semi-style': ['error'],
257
+ 'space-in-parens': ['error'],
258
+ 'space-unary-ops': ['error'],
278
259
  'switch-colon-spacing': ['error', { after: true, before: false }],
279
- 'template-curly-spacing': 'error',
260
+ 'template-curly-spacing': ['error'],
280
261
  'template-tag-spacing': ['error', 'always'],
281
- 'unicode-bom': 'error',
262
+ 'unicode-bom': ['error'],
282
263
  'wrap-iife': 'off',
283
264
  'wrap-regex': 'off',
284
265
  'yield-star-spacing': ['error', 'both'],
285
266
  },
286
267
  [exports.HYBRID]: {
287
- 'no-dupe-class-members': 'error',
288
- 'no-loss-of-precision': 'error',
268
+ 'no-dupe-class-members': ['error'],
269
+ 'no-loss-of-precision': ['error'],
289
270
  'no-unused-vars': beforeJSOrElse(2019, ['error', { ignoreRestSiblings: true, vars: 'local' }], ['error', { caughtErrors: 'all', ignoreRestSiblings: true, vars: 'local' }]),
290
271
  'no-use-before-define': 'off',
291
272
  'default-param-last': 'off',
292
- 'dot-notation': 'error',
273
+ 'dot-notation': ['error'],
293
274
  'init-declarations': 'off',
294
- 'no-array-constructor': 'error',
275
+ 'no-array-constructor': ['error'],
295
276
  'no-empty-function': 'off',
296
- 'no-extra-semi': 'error',
277
+ 'no-extra-semi': ['error'],
297
278
  'no-implied-eval': 'off',
298
279
  'no-invalid-this': 'off',
299
- 'no-loop-func': 'error',
280
+ 'no-loop-func': ['error'],
300
281
  'no-magic-numbers': 'off',
301
282
  'no-redeclare': jsts(['error', { builtinGlobals: true }], 'off'),
302
283
  'no-restricted-imports': 'off',
303
284
  'no-shadow': 'off',
304
- 'no-throw-literal': 'error',
305
- 'no-unused-expressions': 'error',
306
- 'no-useless-constructor': 'error',
307
- 'require-await': 'error',
308
- 'brace-style': ['error', 'allman'],
285
+ 'no-throw-literal': ['error'],
286
+ 'no-unused-expressions': ['error'],
287
+ 'no-useless-constructor': ['error'],
288
+ 'require-await': ['error'],
289
+ 'brace-style': 'off',
309
290
  'comma-dangle': ['error', 'always-multiline'],
310
- 'comma-spacing': 'error',
291
+ 'comma-spacing': ['error'],
311
292
  'func-call-spacing': 'off',
312
- 'keyword-spacing': 'error',
293
+ 'indent': 'off',
294
+ 'keyword-spacing': ['error'],
313
295
  'lines-between-class-members': 'off',
314
- 'no-extra-parens': 'error',
296
+ 'no-extra-parens': ['error'],
315
297
  'object-curly-spacing': ['error', 'always'],
316
298
  'padding-line-between-statements': [
317
299
  'error',
@@ -329,145 +311,147 @@ exports.RULES = {
329
311
  { blankLine: 'any', prev: 'import', next: 'import' },
330
312
  ],
331
313
  'quotes': ['error', 'single'],
332
- 'semi': 'error',
333
- 'space-before-blocks': 'error',
314
+ 'semi': ['error'],
315
+ 'space-before-blocks': ['error'],
334
316
  'space-before-function-paren': 'off',
335
- 'space-infix-ops': jsts('error', 'off'),
317
+ 'space-infix-ops': jsts(['error'], 'off'),
336
318
  },
337
319
  '@typescript-eslint/eslint-plugin': {
338
320
  [exports.FOR_LANG]: 'ts',
339
- 'await-thenable': 'error',
321
+ 'await-thenable': ['error'],
340
322
  'ban-ts-comment': 'off',
341
323
  'class-literal-property-style': ['error', 'getters'],
342
324
  'explicit-function-return-type': ['error', { allowTypedFunctionExpressions: false }],
343
- 'explicit-member-accessibility': 'error',
344
- 'explicit-module-boundary-types': 'error',
345
- 'no-confusing-non-null-assertion': 'error',
325
+ 'explicit-member-accessibility': ['error'],
326
+ 'explicit-module-boundary-types': ['error'],
327
+ 'no-confusing-non-null-assertion': ['error'],
346
328
  'no-confusing-void-expression': 'off',
347
329
  'no-duplicate-enum-values': 'off',
348
- 'no-extra-non-null-assertion': 'error',
349
- 'no-floating-promises': 'error',
350
- 'no-for-in-array': 'error',
330
+ 'no-extra-non-null-assertion': ['error'],
331
+ 'no-floating-promises': ['error'],
332
+ 'no-for-in-array': ['error'],
351
333
  'no-invalid-void-type': 'off',
352
- 'no-misused-new': 'error',
353
- 'no-misused-promises': 'error',
354
- 'no-non-null-asserted-nullish-coalescing': 'error',
355
- 'no-non-null-asserted-optional-chain': 'error',
334
+ 'no-misused-new': ['error'],
335
+ 'no-misused-promises': ['error'],
336
+ 'no-non-null-asserted-nullish-coalescing': ['error'],
337
+ 'no-non-null-asserted-optional-chain': ['error'],
356
338
  'no-non-null-assertion': 'off',
357
- 'no-require-imports': 'error',
358
- 'no-unsafe-argument': 'error',
359
- 'no-unsafe-assignment': 'error',
339
+ 'no-require-imports': ['error'],
340
+ 'no-unsafe-argument': ['error'],
341
+ 'no-unsafe-assignment': ['error'],
360
342
  'no-unsafe-call': 'off',
361
343
  'no-unsafe-declaration-merging': 'off',
362
- 'no-unsafe-member-access': 'error',
363
- 'no-unsafe-return': 'error',
364
- 'no-var-requires': 'error',
344
+ 'no-unsafe-member-access': ['error'],
345
+ 'no-unsafe-return': ['error'],
346
+ 'no-var-requires': ['error'],
365
347
  'parameter-properties': ['error', { prefer: 'parameter-property' }],
366
- 'prefer-reduce-type-parameter': 'error',
367
- 'prefer-ts-expect-error': 'error',
348
+ 'prefer-reduce-type-parameter': ['error'],
349
+ 'prefer-ts-expect-error': ['error'],
368
350
  'require-array-sort-compare': 'off',
369
351
  'restrict-plus-operands': 'off',
370
352
  'restrict-template-expressions': 'off',
371
- 'return-await': 'error',
353
+ 'return-await': ['error'],
372
354
  'unbound-method': 'off',
373
- 'adjacent-overload-signatures': 'error',
374
- 'array-type': 'error',
375
- 'ban-tslint-comment': 'error',
355
+ 'adjacent-overload-signatures': ['error'],
356
+ 'array-type': ['error'],
357
+ 'ban-tslint-comment': ['error'],
376
358
  'ban-types': 'off',
377
- 'consistent-generic-constructors': 'error',
378
- 'consistent-indexed-object-style': 'error',
379
- 'consistent-type-assertions': 'error',
359
+ 'consistent-generic-constructors': ['error'],
360
+ 'consistent-indexed-object-style': ['error'],
361
+ 'consistent-type-assertions': ['error'],
380
362
  'consistent-type-definitions': ['error', 'interface'],
381
- 'consistent-type-exports': 'error',
382
- 'consistent-type-imports': beforeOrElse('3.8.0', ['error', { prefer: 'no-type-imports' }], 'error'),
383
- 'member-ordering': 'error',
363
+ 'consistent-type-exports': ['error'],
364
+ 'consistent-type-imports': beforeOrElse('3.8.0', ['error', { prefer: 'no-type-imports' }], ['error']),
365
+ 'member-ordering': ['error'],
384
366
  'method-signature-style': 'off',
385
367
  'naming-convention': 'off',
386
- 'no-base-to-string': 'error',
368
+ 'no-base-to-string': ['error'],
387
369
  'no-dynamic-delete': 'off',
388
370
  'no-empty-interface': ['error', { allowSingleExtends: true }],
389
371
  'no-explicit-any': 'off',
390
372
  'no-extraneous-class': ['error', { allowConstructorOnly: true }],
391
- 'no-inferrable-types': 'error',
373
+ 'no-inferrable-types': ['error'],
392
374
  'no-meaningless-void-operator': ['error', { checkNever: true }],
393
375
  'no-namespace': 'off',
394
- 'no-redundant-type-constituents': 'error',
376
+ 'no-redundant-type-constituents': ['error'],
395
377
  'no-this-alias': 'off',
396
378
  'no-type-alias': 'off',
397
- 'no-unnecessary-boolean-literal-compare': 'error',
398
- 'no-unnecessary-condition': 'error',
399
- 'no-unnecessary-qualifier': 'error',
400
- 'no-unnecessary-type-arguments': 'error',
401
- 'no-unnecessary-type-assertion': 'error',
402
- 'no-unnecessary-type-constraint': 'error',
403
- 'no-useless-empty-export': 'error',
404
- 'non-nullable-type-assertion-style': 'error',
405
- 'prefer-as-const': 'error',
379
+ 'no-unnecessary-boolean-literal-compare': ['error'],
380
+ 'no-unnecessary-condition': ['error'],
381
+ 'no-unnecessary-qualifier': ['error'],
382
+ 'no-unnecessary-type-arguments': ['error'],
383
+ 'no-unnecessary-type-assertion': ['error'],
384
+ 'no-unnecessary-type-constraint': ['error'],
385
+ 'no-useless-empty-export': ['error'],
386
+ 'non-nullable-type-assertion-style': ['error'],
387
+ 'prefer-as-const': ['error'],
406
388
  'prefer-enum-initializers': 'off',
407
- 'prefer-for-of': 'error',
389
+ 'prefer-for-of': ['error'],
408
390
  'prefer-function-type': 'off',
409
391
  'prefer-includes': 'off',
410
392
  'prefer-literal-enum-member': 'off',
411
393
  'prefer-namespace-keyword': 'off',
412
- 'prefer-nullish-coalescing': 'error',
413
- 'prefer-optional-chain': 'error',
414
- 'prefer-readonly': 'error',
394
+ 'prefer-nullish-coalescing': ['error'],
395
+ 'prefer-optional-chain': ['error'],
396
+ 'prefer-readonly': ['error'],
415
397
  'prefer-readonly-parameter-types': 'off',
416
- 'prefer-regexp-exec': 'error',
417
- 'prefer-return-this-type': 'error',
418
- 'prefer-string-starts-ends-with': 'error',
398
+ 'prefer-regexp-exec': ['error'],
399
+ 'prefer-return-this-type': ['error'],
400
+ 'prefer-string-starts-ends-with': ['error'],
419
401
  'promise-function-async': ['error', { allowAny: true }],
420
402
  'sort-type-constituents': 'off',
421
403
  'strict-boolean-expressions': 'off',
422
- 'switch-exhaustiveness-check': 'error',
404
+ 'switch-exhaustiveness-check': ['error'],
423
405
  'triple-slash-reference': ['error', { lib: 'never' }],
424
- 'typedef': 'error',
406
+ 'typedef': ['error'],
425
407
  'unified-signatures': ['error', { ignoreDifferentlyNamedParameters: true }],
426
408
  'member-delimiter-style': ['error', { singleline: { requireLast: true } }],
427
- 'type-annotation-spacing': 'error',
409
+ 'type-annotation-spacing': ['error'],
428
410
  },
429
411
  '@origin-1/eslint-plugin': {
412
+ 'bracket-layout': 'error',
413
+ 'indent': 'error',
430
414
  'nice-space-before-function-paren': 'error',
431
415
  'no-spaces-in-call-expression': 'error',
432
416
  'property-colon-spacing': 'error',
433
417
  },
434
418
  'eslint-plugin-n': {
435
419
  'no-callback-literal': 'off',
436
- 'no-deprecated-api': 'error',
437
- 'no-exports-assign': 'error',
420
+ 'no-deprecated-api': ['error'],
421
+ 'no-exports-assign': ['error'],
438
422
  'no-extraneous-import': 'off',
439
423
  'no-extraneous-require': 'off',
440
424
  'no-missing-import': 'off',
441
425
  'no-missing-require': 'off',
442
- 'no-unpublished-bin': 'error',
443
- 'no-unpublished-import': 'error',
444
- 'no-unpublished-require': 'error',
426
+ 'no-unpublished-bin': ['error'],
427
+ 'no-unpublished-import': ['error'],
428
+ 'no-unpublished-require': ['error'],
445
429
  'no-unsupported-features/es-builtins': 'off',
446
430
  'no-unsupported-features/es-syntax': 'off',
447
431
  'no-unsupported-features/node-builtins': 'off',
448
- 'process-exit-as-throw': 'error',
432
+ 'process-exit-as-throw': ['error'],
449
433
  'shebang': 'off',
450
434
  'callback-return': 'off',
451
435
  'exports-style': 'off',
452
436
  'file-extension-in-import': 'off',
453
437
  'global-require': 'off',
454
- 'handle-callback-err': 'error',
455
- 'no-mixed-requires': 'error',
456
- 'no-new-require': 'error',
457
- 'no-path-concat': 'error',
438
+ 'handle-callback-err': ['error'],
439
+ 'no-mixed-requires': ['error'],
440
+ 'no-new-require': ['error'],
441
+ 'no-path-concat': ['error'],
458
442
  'no-process-env': 'off',
459
443
  'no-process-exit': 'off',
460
444
  'no-restricted-import': 'off',
461
445
  'no-restricted-require': 'off',
462
446
  'no-sync': 'off',
463
- 'prefer-global/buffer': 'error',
464
- 'prefer-global/console': 'error',
465
- 'prefer-global/process': 'error',
466
- 'prefer-global/text-decoder': 'error',
467
- 'prefer-global/text-encoder': 'error',
468
- 'prefer-global/url': 'error',
469
- 'prefer-global/url-search-params': 'error',
470
- 'prefer-promises/dns': beforeJSOrElse(2015, 'off', 'error'),
471
- 'prefer-promises/fs': beforeJSOrElse(2015, 'off', 'error'),
447
+ 'prefer-global/buffer': ['error'],
448
+ 'prefer-global/console': ['error'],
449
+ 'prefer-global/process': ['error'],
450
+ 'prefer-global/text-decoder': ['error'],
451
+ 'prefer-global/text-encoder': ['error'],
452
+ 'prefer-global/url': ['error'],
453
+ 'prefer-global/url-search-params': ['error'],
454
+ 'prefer-promises/dns': beforeJSOrElse(2015, 'off', ['error']),
455
+ 'prefer-promises/fs': beforeJSOrElse(2015, 'off', ['error']),
472
456
  },
473
457
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origin-1/eslint-config",
3
- "version": "0.9.2",
3
+ "version": "0.10.0",
4
4
  "description": "ESLint configuration generator with Origin₁ presets",
5
5
  "homepage": "https://github.com/origin-1/eslint-config#readme",
6
6
  "license": "ISC",
@@ -11,10 +11,10 @@
11
11
  "semver": "7"
12
12
  },
13
13
  "peerDependencies": {
14
- "@origin-1/eslint-plugin": ">=0.8",
15
- "@typescript-eslint/eslint-plugin": "^5.45",
16
- "@typescript-eslint/parser": "^5.45",
17
- "eslint": "^8.28.0",
14
+ "@origin-1/eslint-plugin": ">=0.10",
15
+ "@typescript-eslint/eslint-plugin": "^5.46",
16
+ "@typescript-eslint/parser": "^5.46",
17
+ "eslint": "^8.28",
18
18
  "eslint-plugin-n": "15"
19
19
  },
20
20
  "engines": {