@dmitryrechkin/eslint-standard 1.5.3 → 1.5.5

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/eslint.config.mjs +21 -2
  2. package/package.json +1 -1
package/eslint.config.mjs CHANGED
@@ -111,7 +111,26 @@ export default function ({
111
111
  '@stylistic/quotes': 'off', // Handled by prettier (singleQuote: true)
112
112
  semi: 'off', // Handled by prettier (semi: true)
113
113
  '@stylistic/semi': 'off', // Handled by prettier (semi: true)
114
- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
114
+ '@typescript-eslint/no-unused-vars': ['error', {
115
+ argsIgnorePattern: '^_',
116
+ varsIgnorePattern: '^_',
117
+ caughtErrorsIgnorePattern: '^_',
118
+ destructuredArrayIgnorePattern: '^_',
119
+ ignoreRestSiblings: true
120
+ }],
121
+
122
+ // Enhanced local dead code cleanup rules
123
+ '@typescript-eslint/no-useless-constructor': 'error',
124
+ '@typescript-eslint/no-empty-function': 'warn',
125
+ '@typescript-eslint/no-empty-interface': 'warn',
126
+ '@typescript-eslint/class-methods-use-this': 'error', // Alternative to no-useless-this
127
+ '@typescript-eslint/no-invalid-this': 'error',
128
+ 'no-undef-init': 'error',
129
+ 'no-unreachable': 'error',
130
+ 'no-constant-condition': 'error',
131
+ 'no-else-return': 'error',
132
+ 'no-return-assign': 'error',
133
+ 'no-var': 'error',
115
134
  'no-trailing-spaces': 'off', // Handled by prettier
116
135
  '@stylistic/no-trailing-spaces': 'off', // Handled by prettier
117
136
  'eol-last': 'off', // Handled by prettier
@@ -403,7 +422,7 @@ export default function ({
403
422
  'max-depth': ['error', { max: 3 }], // Max 3 levels of block nesting
404
423
  'max-nested-callbacks': ['error', 3], // Max 3 levels of callback nesting
405
424
  'max-lines': ['warn', {
406
- max: 300,
425
+ max: 500,
407
426
  skipBlankLines: true,
408
427
  skipComments: true
409
428
  }],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dmitryrechkin/eslint-standard",
3
3
  "description": "This package provides a shared ESLint configuration which includes TypeScript support and a set of specific linting rules designed to ensure high-quality and consistent code style across projects.",
4
- "version": "1.5.3",
4
+ "version": "1.5.5",
5
5
  "main": "eslint.config.mjs",
6
6
  "exports": {
7
7
  ".": "./eslint.config.mjs"