| 12345678910111213141516171819202122232425262728293031 |
- import { defineConfig, globalIgnores } from "eslint/config";
- import nextVitals from "eslint-config-next/core-web-vitals";
- import nextTs from "eslint-config-next/typescript";
- import prettier from "eslint-config-prettier/flat";
- import unusedImports from "eslint-plugin-unused-imports";
- export default defineConfig([
- ...nextVitals,
- ...nextTs,
- prettier,
- {
- plugins: { "unused-imports": unusedImports },
- rules: {
- "no-console": ["warn", { allow: ["error"] }],
- "unused-imports/no-unused-imports": "warn",
- "@typescript-eslint/no-unused-vars": [
- "warn",
- { argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
- ],
- },
- },
- globalIgnores([
- ".next/**",
- "out/**",
- "build/**",
- "public/**",
- "scripts/**",
- "next-env.d.ts",
- "lib/emojis.ts",
- ]),
- ]);
|