Skip to content

Commit 18acfe1

Browse files
committed
fix(ci): register @typescript-eslint plugin in ESLint flat config
- Install typescript-eslint as direct devDependency - Import and register tseslint.plugin in eslint.config.mjs - Fixes lint CI failure: plugin not found in ESLint 9 flat config
1 parent 92714dc commit 18acfe1

File tree

3 files changed

+186
-167
lines changed

3 files changed

+186
-167
lines changed

eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import nextVitals from "eslint-config-next/core-web-vitals";
2+
import tseslint from "typescript-eslint";
23

34
/** @type {import("eslint").Linter.Config[]} */
45
const eslintConfig = [
@@ -14,6 +15,9 @@ const eslintConfig = [
1415
// Relaxed rules for open-sse and tests (incremental adoption)
1516
{
1617
files: ["open-sse/**/*.ts", "tests/**/*.mjs", "tests/**/*.ts"],
18+
plugins: {
19+
"@typescript-eslint": tseslint.plugin,
20+
},
1721
rules: {
1822
"@typescript-eslint/no-explicit-any": "warn",
1923
"@next/next/no-assign-module-variable": "off",

0 commit comments

Comments
 (0)