mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
Merged PRs: - #582 — model prefix stripping option (closes #568) - #581 — npm publish workflow fix (refs #579) Local changes: - Restored stashed i18n, CLI tools, and maintenance banner updates - 926 tests passing
61 lines
1.5 KiB
JavaScript
61 lines
1.5 KiB
JavaScript
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
/** @type {import("eslint").Linter.Config[]} */
|
|
const eslintConfig = [
|
|
...nextVitals,
|
|
// FASE-02: Security rules (strict everywhere)
|
|
{
|
|
rules: {
|
|
"no-eval": "error",
|
|
"no-implied-eval": "error",
|
|
"no-new-func": "error",
|
|
},
|
|
},
|
|
// 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",
|
|
"react-hooks/rules-of-hooks": "off",
|
|
},
|
|
},
|
|
// Global ignores — keep ESLint scoped to source files only
|
|
{
|
|
ignores: [
|
|
// Next.js build output
|
|
".next/**",
|
|
"src/.next/**",
|
|
"out/**",
|
|
"build/**",
|
|
"next-env.d.ts",
|
|
// Scripts and binaries
|
|
"scripts/**",
|
|
"bin/**",
|
|
// Dependencies
|
|
"node_modules/**",
|
|
// VS Code extension and its large test fixtures
|
|
"vscode-extension/**",
|
|
// Electron app
|
|
"electron/**",
|
|
// Docs
|
|
"docs/**",
|
|
// Open-SSE compiled/bundled output
|
|
"open-sse/mcp-server/dist/**",
|
|
// Playwright test output
|
|
"playwright-report/**",
|
|
"test-results/**",
|
|
// Subdirectory .next build output (app/ subdir)
|
|
"app/.next/**",
|
|
// CLI package copy directory
|
|
"clipr/**",
|
|
],
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|