@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 +1 -1
- package/src/index.cjs +7 -1
- package/src/server.cjs +0 -1
package/package.json
CHANGED
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
|
-
'
|
|
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