{"id":15198479,"url":"https://github.com/jeremy-code/eslint-config-next-flat","last_synced_at":"2025-06-20T18:33:05.947Z","repository":{"id":236413325,"uuid":"792556623","full_name":"jeremy-code/eslint-config-next-flat","owner":"jeremy-code","description":"Intended as a stop-gap solution until Next.js updates their config to support Flat Config.","archived":false,"fork":false,"pushed_at":"2024-04-28T06:05:56.000Z","size":106,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T14:06:24.794Z","etag":null,"topics":["eslint","eslint-config","eslint-flat-config","next","nextjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeremy-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-26T23:27:20.000Z","updated_at":"2024-05-14T07:53:55.000Z","dependencies_parsed_at":"2024-04-27T01:20:27.878Z","dependency_job_id":"848b6bc9-f277-438c-9577-80a8ca06b9d7","html_url":"https://github.com/jeremy-code/eslint-config-next-flat","commit_stats":null,"previous_names":["jeremy-code/eslint-config-next-flat"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jeremy-code/eslint-config-next-flat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Feslint-config-next-flat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Feslint-config-next-flat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Feslint-config-next-flat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Feslint-config-next-flat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremy-code","download_url":"https://codeload.github.com/jeremy-code/eslint-config-next-flat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremy-code%2Feslint-config-next-flat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260996646,"owners_count":23094741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","eslint-config","eslint-flat-config","next","nextjs"],"created_at":"2024-09-28T01:09:11.155Z","updated_at":"2025-06-20T18:33:00.928Z","avatar_url":"https://github.com/jeremy-code.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-config-next-flat\n\n[![GitHub Actions badge][github-actions-badge]][github-actions]\n[![License][license-badge]](LICENSE)\n[![License][npm-version-badge]][npm-package]\n\nFlat config port of the Next.js ESLint config [`eslint-config-next`](https://www.npmjs.com/package/eslint-config-next).\n\n## Installation\n\n```bash\nnpm install -D eslint eslint-config-next-flat   # npm\nyarn add -D eslint eslint-config-next-flat      # yarn\npnpm install -D eslint eslint-config-next-flat  # pnpm\n```\n\nCreate an `eslint.config.js` file in the root of your Next.js project and add the following:\n\n```js\nconst js = require(\"@eslint/js\");\nconst next = require(\"eslint-config-next-flat\");\n\n/** @type {import('eslint').Linter.FlatConfig}[] */\nmodule.exports = [\n  { ignore: [\".next\"] }, // Change if `distDir` in Next.js config is different\n  js.configs.recommended,\n  next,\n];\n```\n\nIf not using TypeScript, add custom Next.js Babel parser from `\"next/dist/compiled/babel/eslint-parser\"`. Otherwise, for TypeScript, use [`typescript-eslint`](https://typescript-eslint.io/getting-started/).\n\n```js\nconst js = require(\"@eslint/js\");\nconst next = require(\"eslint-config-next-flat\");\nconst parser = require(\"next/dist/compiled/babel/eslint-parser\");\n\n/** @type {import('eslint').Linter.FlatConfig}[] */\nmodule.exports = [\n  { ignore: [\".next\"] }, // Change if `distDir` in Next.js config is different\n  js.configs.recommended,\n  next,\n  {\n    files: [\"**/*.js\", \"**/*.jsx\"],\n    languageOptions: {\n      parser,\n      parserOptions: {\n        requireConfigFile: false,\n        sourceType: \"module\",\n        allowImportExportEverywhere: true,\n        babelOptions: {\n          presets: [\"next/babel\"],\n          caller: {\n            supportsTopLevelAwait: true,\n          },\n        },\n      },\n    },\n  },\n];\n```\n\nDepending on your project, you may need to adjust the `files` and `ignore` properties such as:\n\n```js\nconst js = require(\"@eslint/js\");\nconst next = require(\"eslint-config-next-flat\");\n\nmodule.exports = [\n  { ignore: [\".next\"] }, // Change if `distDir` in Next.js config is different\n  js.configs.recommended,\n  {\n    files: [\"src\", \"pages\", \"components\", \"lib\", \"utils\"], // Add your Next.js project directories\n    ...next,\n  },\n];\n```\n\n## License\n\n`next-config-next-flat` is licensed under the [MIT license](LICENSE).\n\n\u003c!-- Badges --\u003e\n\n[github-actions-badge]: https://github.com/jeremy-code/eslint-config-next-flat/actions/workflows/ci.yml/badge.svg\n[github-actions]: https://github.com/jeremy-code/eslint-config-next-flat/actions/workflows/ci.yml\n[license-badge]: https://img.shields.io/github/license/jeremy-code/eslint-config-next-flat\n[npm-version-badge]: https://img.shields.io/npm/v/eslint-config-next-flat\n[npm-package]: https://npmjs.com/package/eslint-config-next-flat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremy-code%2Feslint-config-next-flat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremy-code%2Feslint-config-next-flat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremy-code%2Feslint-config-next-flat/lists"}