mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 05:45:04 +03:00
- ESLint 10 broke with scopeManager.addGlobals error (eslint-config-next plugins only support ≤v9) - Rewrote eslint.config.mjs: removed defineConfig/globalIgnores (ESLint 10-only APIs) - Now using ESLint 9 flat config format with plain array export - Fixed TS lint warnings in compliance/index.js and a11yAudit.js - Added omniroute-reset-password bin entry to package.json - Lint passes cleanly (1 pre-existing React useState-in-effect warning) - All 144 tests pass
30 lines
536 B
JavaScript
30 lines
536 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/**",
|
|
],
|
|
},
|
|
];
|
|
|
|
export default eslintConfig;
|