| 1 | import js from "@eslint/js"; |
| 2 | import tseslint from "typescript-eslint"; |
| 3 | import next from "eslint-config-next"; |
| 4 | |
| 5 | export default tseslint.config( |
| 6 | { ignores: [".next/**", "node_modules/**", "playwright-report/**"] }, |
| 7 | js.configs.recommended, |
| 8 | ...tseslint.configs.recommended, |
| 9 | ...next, |
| 10 | { |
| 11 | rules: { |
| 12 | "no-console": ["error", { allow: ["warn", "error"] }], |
| 13 | "@typescript-eslint/no-unused-vars": [ |
| 14 | "error", |
| 15 | { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, |
| 16 | ], |
| 17 | "@typescript-eslint/consistent-type-imports": "error", |
| 18 | }, |
| 19 | }, |
| 20 | ); |