Files
OmniRoute/eslint.config.mjs
diegosouzapw b72292eeea fix(ci): downgrade ESLint 10→9, fix test imports .js→.ts, add open-sse to eslint ignores
- Downgrade eslint 10.0.0 → 9.x (incompatible with eslint-config-next)
- Update 30+ test file imports from .js to .ts (accountSelector, combo, etc.)
- Add open-sse/** to ESLint ignores (no TS parser configured for it)
- All CI steps now pass: lint , build , unit tests (368/0) 
2026-02-17 09:09:06 -03:00

31 lines
557 B
JavaScript

import nextVitals from "eslint-config-next/core-web-vitals";
/** @type {import("eslint").Linter.Config[]} */
const eslintConfig = [
...nextVitals,
// FASE-02: Security rules
{
rules: {
"no-eval": "error",
"no-implied-eval": "error",
"no-new-func": "error",
},
},
// Global ignores
{
ignores: [
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
"tests/**",
"scripts/**",
"bin/**",
"node_modules/**",
"open-sse/**",
],
},
];
export default eslintConfig;