eslint.config.mjs
Rama main · réplica de lectura del repositorio original.
import js from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
{ ignores: ["**/dist/**", "**/node_modules/**", "**/coverage/**", "**/.next/**"] },
js.configs.recommended,
...tseslint.configs.recommended,
{
// Plain .mjs files are the two Node entrypoints that cannot be TypeScript: the web's custom
// server and the container entrypoint. They get no globals from the TS config, so declare the
// Node ones here — otherwise every `process.env` read is a no-undef error.
files: ["**/*.mjs"],
languageOptions: {
globals: {
process: "readonly",
console: "readonly",
Buffer: "readonly",
URL: "readonly",
fetch: "readonly",
setTimeout: "readonly",
clearTimeout: "readonly",
setInterval: "readonly",
clearInterval: "readonly",
},
},
},
);