TailAdmin uses the new ESLint flat configuration format (eslint.config.mjs). The configuration integrates Next.js core web vitals rules and TypeScript support. It also defines specific global ignores to prevent ESLint from scanning build artifacts and Next.js environment files.
To maintain the project's linting standards, ensure your environment supports ESLint flat config and the following dependencies: eslint-config-next (for core-web-vitals and typescript configs) and eslint.
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
import { defineConfig, globalIgnores } from "eslint/config";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
globalIgnores([
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
]);
export default eslintConfig;