@hughescr/eslint-config-default 5.0.2 → 5.0.3
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.
- package/index.mjs +9 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -192,10 +192,13 @@ const recommendedRules = {
|
|
|
192
192
|
'no-useless-rename': 'warn',
|
|
193
193
|
'object-shorthand': 'warn',
|
|
194
194
|
|
|
195
|
-
'unicorn/no-null':
|
|
196
|
-
'unicorn/prevent-abbreviations':
|
|
197
|
-
'unicorn/filename-case':
|
|
198
|
-
'unicorn/catch-error-name':
|
|
195
|
+
'unicorn/no-null': 'off',
|
|
196
|
+
'unicorn/prevent-abbreviations': 'off',
|
|
197
|
+
'unicorn/filename-case': ['warn', { cases: { kebabCase: true, pascalCase: true } }],
|
|
198
|
+
'unicorn/catch-error-name': ['warn', { ignore: [/^e$/, /^err$/, /^error$/] }],
|
|
199
|
+
'unicorn/no-useless-error-capture-stack-trace': 'off',
|
|
200
|
+
'unicorn/no-useless-undefined': 'off',
|
|
201
|
+
'unicorn/prefer-at': 'off',
|
|
199
202
|
|
|
200
203
|
'import-x/no-duplicates': ['warn', { 'prefer-inline': true }],
|
|
201
204
|
'import-x/no-self-import': 'error',
|
|
@@ -216,6 +219,7 @@ const recommendedRules = {
|
|
|
216
219
|
'sonarjs/cognitive-complexity': ['warn', 15],
|
|
217
220
|
'sonarjs/no-collapsible-if': 'warn',
|
|
218
221
|
'sonarjs/prefer-immediate-return': 'warn',
|
|
222
|
+
'sonarjs/no-undefined-argument': 'off',
|
|
219
223
|
'sonarjs/no-unused-vars': 'off',
|
|
220
224
|
};
|
|
221
225
|
|
|
@@ -314,7 +318,7 @@ const typescriptExtensionRules = {
|
|
|
314
318
|
const typescriptOverrides = {
|
|
315
319
|
files: typescriptFiles,
|
|
316
320
|
rules: {
|
|
317
|
-
'@typescript-eslint/consistent-type-imports': ['warn', { prefer: 'type-imports', fixStyle: '
|
|
321
|
+
'@typescript-eslint/consistent-type-imports': ['warn', { prefer: 'type-imports', fixStyle: 'inline-type-imports' }],
|
|
318
322
|
'@typescript-eslint/switch-exhaustiveness-check': 'warn',
|
|
319
323
|
'@typescript-eslint/return-await': ['warn', 'in-try-catch'],
|
|
320
324
|
'@typescript-eslint/no-unnecessary-condition': ['warn', { allowConstantLoopConditions: true }],
|