@cto.af/eslint-config 6.2.2 → 6.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rules/ts.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cto.af/eslint-config",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "hildjj's lint rules",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/rules/ts.js CHANGED
@@ -279,7 +279,7 @@ export const rules = {
279
279
  ],
280
280
  '@typescript-eslint/no-use-before-define': 'error',
281
281
  '@typescript-eslint/no-useless-constructor': 'error',
282
- '@typescript-eslint/no-useless-default-assignment': 'error',
282
+ '@typescript-eslint/no-useless-default-assignment': 'off', // I prefer both belt and suspenders
283
283
  '@typescript-eslint/no-useless-empty-export': 'error',
284
284
  '@typescript-eslint/no-wrapper-object-types': 'error', // Turn off in cbor projects
285
285
  '@typescript-eslint/non-nullable-type-assertion-style': 'off', // Can't config
@@ -311,7 +311,7 @@ export const rules = {
311
311
  '@typescript-eslint/restrict-template-expressions': 'off', // Can't config
312
312
  '@typescript-eslint/return-await': 'error',
313
313
  '@typescript-eslint/strict-boolean-expressions': 'off', // Can't config
314
- '@typescript-eslint/strict-void-return': 'error',
314
+ '@typescript-eslint/strict-void-return': 'off', // Can't configure to except event handlers
315
315
  '@typescript-eslint/switch-exhaustiveness-check': 'off', // Can't config
316
316
  '@typescript-eslint/triple-slash-reference': 'error',
317
317
  // Deprecated