Last active
January 31, 2026 14:50
-
-
Save rbika/9b133e9c88431bad55f8d5e56daa1f59 to your computer and use it in GitHub Desktop.
ESLint config - Nextjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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