import js from "@eslint/js"; import tseslint from "typescript-eslint"; import globals from "globals"; export default tseslint.config( { languageOptions: { globals: { ...globals.browser, ...globals.node, ...globals.es2021, }, }, }, { ignores: ["**/dist/**", "**/node_modules/**", "**/.next/**", "**/build/**"], }, js.configs.recommended, ...tseslint.configs.recommended, { rules: { "no-unused-vars": "off", "@typescript-eslint/no-unused-vars": [ "warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_", }, ], "no-console": "off", "@typescript-eslint/no-explicit-any": "off", }, }, );