mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
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
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import nextVitals from "eslint-config-next/core-web-vitals";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
/** @type {import("eslint").Linter.Config[]} */
|
||||
const eslintConfig = [
|
||||
@@ -14,6 +15,9 @@ const eslintConfig = [
|
||||
// Relaxed rules for open-sse and tests (incremental adoption)
|
||||
{
|
||||
files: ["open-sse/**/*.ts", "tests/**/*.mjs", "tests/**/*.ts"],
|
||||
plugins: {
|
||||
"@typescript-eslint": tseslint.plugin,
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@next/next/no-assign-module-variable": "off",
|
||||
|
||||
Reference in New Issue
Block a user