Fix ESLint 10 compatibility in eslint.config.mjs#28
Fix ESLint 10 compatibility in eslint.config.mjs#28NiveditJain merged 5 commits intodependabot/npm_and_yarn/eslint-10.0.2from
Conversation
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.2 to 10.0.2. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.2...v10.0.2) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
adec602 to
c782653
Compare
…parser for JS/MTS/CTS files Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com>
|
@copilot resolve conflicts. |
… rebased base branch Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com>
Conflicts resolved in commit |
|
@copilot there are still conflicts. resolve these. |
…eer deps) Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com>
Fixed in commit |
|
@copilot why CI is not here? is it not triggered? |
CI isn't triggered on this PR because the workflow in on:
push:
branches: [main]
pull_request:
branches: [main]This PR (#28) targets |
accef02
into
dependabot/npm_and_yarn/eslint-10.0.2
* Bump eslint from 9.39.2 to 10.0.2 Bumps [eslint](https://github.com/eslint/eslint) from 9.39.2 to 10.0.2. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.2...v10.0.2) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix ESLint 10 compatibility in eslint.config.mjs (#28) * Bump eslint from 9.39.2 to 10.0.2 Bumps [eslint](https://github.com/eslint/eslint) from 9.39.2 to 10.0.2. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.2...v10.0.2) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Initial plan * Fix ESLint 10 compatibility: set explicit React version and override parser for JS/MTS/CTS files Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com> * Resolve conflicts: update package.json and package-lock.json to match rebased base branch Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com> * Fix package-lock.json to exactly match rebased base branch (restore peer deps) Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: NiveditJain <40313233+NiveditJain@users.noreply.github.com>
Description
Two ESLint 10 compatibility issues are fixed in
eslint.config.mjs:settings: { react: { version: "19" } }to preventeslint-plugin-reactfrom auto-detecting the React version via the now-removedcontext.getFilename()APIeslint-config-nextuses the Babel parser bundled innext/dist/compiled/babel/eslint-parserfor.js/.mjs/.mts/.ctsfiles; that parser's scope manager lacksaddGlobals()required by ESLint 10. Overrides those files to use@typescript-eslint/parser(already a transitive dep, supports ESLint^8 || ^9 || ^10)Note:
.ts/.tsxfiles were already handled byeslint-config-next's built-in TypeScript config which uses@typescript-eslint/parser.Also updates
package.jsonandpackage-lock.jsonto align with the rebased base branch, picking up dependency bumps (lucide-react 0.575.0, tailwindcss 4.2.1, and related packages) that had been merged intomainsince the original branch was created. The lockfile is kept byte-for-byte identical to the base branch by usingnpm ci(instead ofnpm install) to avoid stripping peer dependency entries (@testing-library/domand related packages).Note on CI: The CI workflow is scoped to
pull_request: branches: [main]only. Since this is a stacked PR targetingdependabot/npm_and_yarn/eslint-10.0.2(notmain), CI will not trigger on this PR — it will run once the base branch is merged intomain.Type of Change
Checklist
npm run lintpassesnpx tsc --noEmitpassesnpm run test:runpassesnpm run buildsucceeds💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.