Skip to content

Instantly share code, notes, and snippets.

@rbika
Last active January 31, 2026 14:50
Show Gist options
  • Select an option

  • Save rbika/9b133e9c88431bad55f8d5e56daa1f59 to your computer and use it in GitHub Desktop.

Select an option

Save rbika/9b133e9c88431bad55f8d5e56daa1f59 to your computer and use it in GitHub Desktop.
ESLint config - Nextjs
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";
const eslintConfig = defineConfig([
...nextVitals,
...nextTs,
// Override default ignores of eslint-config-next.
globalIgnores([
// Default ignores of eslint-config-next:
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
]),
prettier
]);
export default eslintConfig;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment