mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-14 11:12:17 +03:00
- 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) ✅
31 lines
557 B
JavaScript
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;
|