Skip to content

Commit 7dbe036

Browse files
Fix missing @typescript-eslint plugin in JSON config block (#54)
2 parents ac88a40 + 2f8a1f6 commit 7dbe036

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/light-fans-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@technance/code-style": patch
3+
---
4+
5+
Fix missing `@typescript-eslint` plugin in package.json ESLint config

packages/code-style/src/eslint/general.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ export default tseslint.config(
8181
},
8282
plugins: {
8383
jsonc: jsoncPlugin,
84+
/**
85+
* NOTE: Explicitly include the @typescript-eslint plugin in this config block.
86+
* In ESLint v9 (flat config), plugin scopes are isolated — plugins defined in other
87+
* config objects (like the base TypeScript setup) are not automatically inherited.
88+
* This ensures rules referencing "@typescript-eslint/*" don't throw
89+
* "could not find plugin '@typescript-eslint'" errors within the package.json scope.
90+
*/
91+
"@typescript-eslint": tseslint.plugin,
8492
},
8593
rules: {
8694
"@typescript-eslint/naming-convention": "off",

0 commit comments

Comments
 (0)