eslint.config.mjs
Rama master · réplica de lectura del repositorio original.
import eslint from "@eslint/js";
import nextPlugin from "@next/eslint-plugin-next";
import reactHooks from "eslint-plugin-react-hooks";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
{
ignores: [
".next*/**",
".research/**",
".venv*/**",
".agents/**",
".ai-chat-uploads/**",
".codex-tasks/**",
".runtime/**",
".cache/**",
"coverage/**",
"dist/**",
"out/**",
"tmp/**",
"workspaces/**",
"node_modules/**",
"data/**",
"public/**",
"next-env.d.ts",
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.es2022,
},
},
plugins: {
"@next/next": nextPlugin,
"react-hooks": reactHooks,
},
rules: {
...nextPlugin.configs.recommended.rules,
"@next/next/no-img-element": "warn",
"react-hooks/exhaustive-deps": "warn",
"@typescript-eslint/no-unused-vars": "off",
"no-control-regex": "off",
"no-empty": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-useless-escape": "off",
},
},
);