@infinitetoken/eslint-config 0.1.7 → 0.1.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinitetoken/eslint-config",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Shared ESLint and Prettier configuration for InfiniteToken TypeScript packages",
5
5
  "keywords": [
6
6
  "config",
package/src/index.cjs CHANGED
@@ -28,7 +28,13 @@ module.exports = defineConfig([
28
28
  'simple-import-sort/imports': 'warn',
29
29
  'simple-import-sort/exports': 'warn',
30
30
  'no-console': 'warn',
31
- '@typescript-eslint/no-unused-vars': 'warn',
31
+ // '_'-prefixed unused var/arg/caught-error bindings are a deliberate "I need this position,
32
+ // not this value" signal (most commonly an object-destructure used only to omit a key, e.g.
33
+ // `const { id: _id, ...rest } = obj` — unlike array destructuring, an object key binding can't
34
+ // be elided) and shouldn't warn. Universal fleet-wide: a grep across every repo in the fleet
35
+ // found zero consumers of this bare `.` export, so there's no real "wants the plain warn
36
+ // instead" consumer to preserve by scoping this to individual presets instead.
37
+ '@typescript-eslint/no-unused-vars': ['warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }],
32
38
  '@typescript-eslint/no-require-imports': 'off'
33
39
  }
34
40
  }
package/src/server.cjs CHANGED
@@ -5,7 +5,6 @@ module.exports = defineConfig([
5
5
  ...base,
6
6
  {
7
7
  rules: {
8
- '@typescript-eslint/no-unused-vars': ['warn', { varsIgnorePattern: '^_', argsIgnorePattern: '^_', caughtErrorsIgnorePattern: '^_' }],
9
8
  '@typescript-eslint/no-explicit-any': 'warn'
10
9
  }
11
10
  },