Skip to content

Update dependency eslint to v10#28

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/major-eslint-monorepo
Open

Update dependency eslint to v10#28
renovate[bot] wants to merge 1 commit intomainfrom
renovate/major-eslint-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jan 11, 2025

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
eslint (source) ^8^10.0.0 age confidence

Release Notes

eslint/eslint (eslint)

v10.2.0

Compare Source

Features

Bug Fixes

Documentation

  • a2af743 docs: add language to configuration objects (#​20712) (Francesco Trotta)
  • 845f23f docs: Update README (GitHub Actions Bot)
  • 5fbcf59 docs: remove sourceType from ts playground link (#​20477) (Tanuj Kanti)
  • 8702a47 docs: Update README (GitHub Actions Bot)
  • ddeaded docs: Update README (GitHub Actions Bot)
  • 2b44966 docs: add Major Releases section to Manage Releases (#​20269) (Milos Djermanovic)
  • eab65c7 docs: update eslint versions in examples (#​20664) (루밀LuMir)
  • 3e4a299 docs: update ESM Dependencies policies with note for own-usage packages (#​20660) (Milos Djermanovic)

Chores

  • 8120e30 refactor: extract no unmodified loop condition (#​20679) (kuldeep kumar)
  • 46e8469 chore: update dependency markdownlint-cli2 to ^0.22.0 (#​20697) (renovate[bot])
  • 01ed3aa test: add unit tests for unicode utilities (#​20622) (Manish chaudhary)
  • 811f493 ci: remove --legacy-peer-deps from types integration tests (#​20667) (Milos Djermanovic)
  • 6b86fcf chore: update dependency npm-run-all2 to v8 (#​20663) (renovate[bot])
  • 632c4f8 chore: add prettier update commit to .git-blame-ignore-revs (#​20662) (루밀LuMir)
  • b0b0f21 chore: update dependency eslint-plugin-regexp to ^3.1.0 (#​20659) (Milos Djermanovic)
  • 228a2dd chore: update dependency eslint-plugin-eslint-plugin to ^7.3.2 (#​20661) (Milos Djermanovic)
  • 3ab4d7e test: Add tests for eslintrc-style keys (#​20645) (kuldeep kumar)

v10.1.0

Compare Source

Features

  • ff4382b feat: apply fix for no-var in TSModuleBlock (#​20638) (Tanuj Kanti)
  • 0916995 feat: Implement api support for bulk-suppressions (#​20565) (Blake Sager)

Bug Fixes

  • 2b8824e fix: Prevent no-var autofix when a variable is used before declaration (#​20464) (Amaresh S M)
  • e58b4bf fix: update eslint (#​20597) (renovate[bot])

Documentation

  • b7b57fe docs: use correct JSDoc link in require-jsdoc.md (#​20641) (mkemna-clb)
  • 58e4cfc docs: add deprecation notice partial (#​20639) (Milos Djermanovic)
  • 7143dbf docs: update v9 migration guide for @eslint/js usage (#​20540) (fnx)
  • 035fc4f docs: note that globalReturn applies only with sourceType: "script" (#​20630) (Milos Djermanovic)
  • e972c88 docs: merge ESLint option descriptions into type definitions (#​20608) (Francesco Trotta)
  • 7f10d84 docs: Update README (GitHub Actions Bot)
  • aeed007 docs: open playground link in new tab (#​20602) (Tanuj Kanti)
  • a0d1a37 docs: Add AI Usage Policy (#​20510) (Nicholas C. Zakas)

Chores

v10.0.3

Compare Source

v10.0.2

Compare Source

v10.0.1

Compare Source

Bug Fixes

Documentation

  • 5b3dbce docs: add AI acknowledgement section to templates (#​20431) (루밀LuMir)
  • 6f23076 docs: toggle nav in no-JS mode (#​20476) (Tanuj Kanti)
  • b69cfb3 docs: Update README (GitHub Actions Bot)

Chores

v10.0.0

Compare Source

v9.39.4

Compare Source

Bug Fixes

Documentation

Chores

v9.39.3

Compare Source

Bug Fixes

  • 791bf8d fix: restore TypeScript 4.0 compatibility in types (#​20504) (sethamus)

Chores

v9.39.2

Compare Source

v9.39.1

Compare Source

v9.39.0

Compare Source

v9.38.0

Compare Source

Features

  • ce40f74 feat: update complexity rule to only highlight function header (#​20048) (Atul Nair)
  • e37e590 feat: correct no-loss-of-precision false positives with e notation (#​20187) (Francesco Trotta)

Bug Fixes

  • 50c3dfd fix: improve type support for isolated dependencies in pnpm (#​20201) (Francesco Trotta)
  • a1f06a3 fix: correct SourceCode typings (#​20114) (Pixel998)

Documentation

  • 462675a docs: improve web accessibility by hiding non-semantic character (#​20205) (루밀LuMir)
  • c070e65 docs: correct formatting in no-irregular-whitespace rule documentation (#​20203) (루밀LuMir)
  • b39e71a docs: Update README (GitHub Actions Bot)
  • cd39983 docs: move custom-formatters type descriptions to nodejs-api (#​20190) (Percy Ma)

Chores

v9.37.0

Compare Source

Features

  • 39f7fb4 feat: preserve-caught-error should recognize all static "cause" keys (#​20163) (Pixel998)
  • f81eabc feat: support TS syntax in no-restricted-imports (#​19562) (Nitin Kumar)

Bug Fixes

Documentation

  • b950359 docs: fix typos across the docs (#​20182) (루밀LuMir)
  • 42498a2 docs: improve ToC accessibility by hiding non-semantic character (#​20181) (Percy Ma)
  • 29ea092 docs: Update README (GitHub Actions Bot)
  • 5c97a04 docs: show availableUntil in deprecated rule banner (#​20170) (Pixel998)
  • 90a71bf docs: update README files to add badge and instructions (#​20115) (루밀LuMir)
  • 1603ae1 docs: update references from master to main (#​20153) (루밀LuMir)

Chores

  • afe8a13 chore: update @eslint/js dependency to version 9.37.0 (#​20183) (Francesco Trotta)
  • abee4ca chore: package.json update for @​eslint/js release (Jenkins)
  • fc9381f chore: fix typos in comments (#​20175) (overlookmotel)
  • e1574a2 chore: unpin jiti (#​20173) (renovate[bot])
  • e1ac05e refactor: mark ESLint.findConfigFile() as async, add missing docs (#​20157) (Pixel998)
  • 347906d chore: update eslint (#​20149) (renovate[bot])
  • 0cb5897 test: remove tmp dir created for circular fixes in multithread mode test (#​20146) (Milos Djermanovic)
  • bb99566 ci: pin jiti to version 2.5.1 (#​20151) (Pixel998)
  • 177f669 perf: improve worker count calculation for "auto" concurrency (#​20067) (Francesco Trotta)
  • 448b57b chore: Mark deprecated formatting rules as available until v11.0.0 (#​20144) (Milos Djermanovic)

v9.36.0

Compare Source

Features

  • 47afcf6 feat: correct preserve-caught-error edge cases (#​20109) (Francesco Trotta)

Bug Fixes

Documentation

  • b73ab12 docs: update examples to use defineConfig (#​20131) (sethamus)
  • 31d9392 docs: fix typos (#​20118) (Pixel998)
  • c7f861b docs: Update README (GitHub Actions Bot)
  • 6b0c08b docs: Update README (GitHub Actions Bot)
  • 91f97c5 docs: Update README (GitHub Actions Bot)

Chores

  • 12411e8 chore: upgrade @​eslint/js@​9.36.0 (#​20139) (Milos Djermanovic)
  • 488cba6 chore: package.json update for @​eslint/js release (Jenkins)
  • bac82a2 ci: simplify renovate configuration (#​19907) (唯然)
  • c00bb37 ci: bump actions/labeler from 5 to 6 (#​20090) (dependabot[bot])
  • fee751d refactor: use defaultOptions in rules (#​20121) (Pixel998)
  • 1ace67d chore: update example to use defineConfig (#​20111) (루밀LuMir)
  • 4821963 test: add missing loc information to error objects in rule tests (#​20112) (루밀LuMir)
  • b42c42e chore: disallow use of deprecated type property in core rule tests (#​20094) (Milos Djermanovic)
  • 7bb498d test: remove deprecated type property from core rule tests (#​20093) (Pixel998)
  • e10cf2a ci: bump actions/setup-node from 4 to 5 (#​20089) (dependabot[bot])
  • 5cb0ce4 refactor: use meta.defaultOptions in preserve-caught-error (#​20080) (Pixel998)
  • f9f7cb5 chore: package.json update for eslint-config-eslint release (Jenkins)
  • 81764b2 chore: update eslint peer dependency in eslint-config-eslint (#​20079) (Milos Djermanovic)

v9.35.0

Compare Source

Features

  • 42761fa feat: implement suggestions for no-empty-function (#​20057) (jaymarvelz)
  • 102f444 feat: implement suggestions for no-empty-static-block (#​20056) (jaymarvelz)
  • e51ffff feat: add preserve-caught-error rule (#​19913) (Amnish Singh Arora)

Bug Fixes

  • 10e7ae2 fix: update uncloneable options error message (#​20059) (soda-sorcery)
  • bfa4601 fix: ignore empty switch statements with comments in no-empty rule (#​20045) (jaymarvelz)
  • dfd11de fix: add before and after to test case types (#​20049) (Francesco Trotta)
  • dabbe95 fix: correct types for no-restricted-imports rule (#​20034) (Milos Djermanovic)
  • ea789c7 fix: no-loss-of-precision false positive with uppercase exponent (#​20032) (sethamus)

Documentation

  • d265515 docs: improve phrasing - "if" → "even if" from getting-started section (#​20074) (jjangga0214)
  • a355a0e docs: invert comparison logic for example in no-var doc page (#​20064) (OTonGitHub)
  • 5082fc2 docs: Update README (GitHub Actions Bot)
  • 99cfd7e docs: add missing "the" in rule deprecation docs (#​20050) (Josh Goldberg ✨)
  • 6ad8973 docs: update --no-ignore and --ignore-pattern documentation (#​20036) (Francesco Trotta)
  • 8033b19 docs: add documentation for --no-config-lookup (#​20033) (Francesco Trotta)

Chores

v9.34.0

Compare Source

Features

  • 0bb777a feat: multithread linting (#​19794) (Francesco Trotta)
  • 43a5f9e feat: add eslint-plugin-regexp to eslint-config-eslint base config (#​19951) (Pixel998)

Bug Fixes

  • 9b89903 fix: default value of accessor-pairs option in rule.d.ts file (#​20024) (Tanuj Kanti)
  • 6c07420 fix: fix spurious failure in neostandard integration test (#​20023) (Kirk Waiblinger)
  • 676f4ac fix: allow scientific notation with trailing zeros matching exponent (#​20002) (Sweta Tanwar)

Documentation

  • 0b4a590 docs: make rulesdir deprecation clearer (#​20018) (Domenico Gemoli)
  • 327c672 docs: Update README (GitHub Actions Bot)
  • bf26229 docs: Fix typo in core-concepts/index.md (#​20009) (Tobias Hernstig)
  • 2309327 docs: fix typo in the "Configuring Rules" section (#​20001) (ghazi-git)
  • 2b87e21 docs: [no-else-return] clarify sample code. (#​19991) (Yuki Takada (Yukinosuke Takada))
  • c36570c docs: Update README (GitHub Actions Bot)

Chores

v9.33.0

Compare Source

Features

  • e07820e feat: add global object access detection to no-restricted-globals (#​19939) (sethamus)
  • 90b050e feat: support explicit resource management in one-var (#​19941) (Sweta Tanwar)

Bug Fixes

  • 732433c fix: allow any type for meta.docs.recommended in custom rules (#​19995) (Francesco Trotta)
  • e8a6914 fix: Fixed potential bug in check-emfile-handling.js (#​19975) (諏訪原慶斗)

Documentation

  • 34f0723 docs: playground button for TypeScript code example (#​19671) (Tanuj Kanti)
  • dc942a4 docs: Update README (GitHub Actions Bot)
  • 5a4b6f7 docs: Update no-multi-assign.md (#​19979) (Yuki Takada (Yukinosuke Takada))
  • 247e156 docs: add missing let declarations in no-plusplus (#​19980) (Yuki Takada (Yukinosuke Takada))
  • 0d17242 docs: Update README (GitHub Actions Bot)
  • fa20b9d docs: Clarify when to open an issue for a PR (#​19974) (Nicholas C. Zakas)

Build Related

  • 27fa865 build: use ESLint class to generate formatter examples (#​19972) (Milos Djermanovic)

Chores

v9.32.0

Compare Source

Features

Bug Fixes

Documentation

  • 86e7426 docs: Update README (GitHub Actions Bot)

Chores

  • 50de1ce chore: package.json update for @​eslint/js release (Jenkins)
  • 74f01a3 ci: unpin jiti to version ^2.5.1 (#​19970) (루밀LuMir)
  • 2ab1381 ci: pin jiti to version 2.4.2 (#​19964) (Francesco Trotta)
  • b7f7545 test: switch to flat config mode in SourceCode tests (#​19953) (Milos Djermanovic)
  • f5a35e3 test: switch to flat config mode in eslint-fuzzer (#​19960) (Milos Djermanovic)
  • e22af8c refactor: use CustomRuleDefinitionType in JSRuleDefinition (#​19949) (Francesco Trotta)
  • e855717 chore: switch performance tests to hyperfine (#​19919) (Francesco Trotta)
  • 2f73a23 test: switch to flat config mode in ast-utils tests (#​19948) (Milos Djermanovic)
  • c565a53 chore: exclude further_reading_links.json from Prettier formatting (#​19943) (Milos Djermanovic)

v9.31.0

Compare Source

Features

  • 35cf44c feat: output full actual location in rule tester if different (#​19904) (ST-DDT)
  • a6a6325 feat: support explicit resource management in no-loop-func (#​19895) (Milos Djermanovic)
  • 4682cdc feat: support explicit resource management in no-undef-init (#​19894) (Milos Djermanovic)
  • 5848216 feat: support explicit resource management in init-declarations (#​19893) (Milos Djermanovic)
  • bb370b8 feat: support explicit resource management in no-const-assign (#​19892) (Milos Djermanovic)

Bug Fixes

  • 07fac6c fix: retry on EMFILE when writing autofix results (#​19926) (TKDev7)
  • 28cc7ab fix: Remove incorrect RuleContext types (#​19910) (Nicholas C. Zakas)

Documentation

  • 664cb44 docs: Update README (GitHub Actions Bot)
  • 40dbe2a docs: fix mismatch between globalIgnores() code and text (#​19914) (MaoShizhong)
  • 5a0069d docs: Update README (GitHub Actions Bot)
  • fef04b5 docs: Update working on issues info (#​19902) (Nicholas C. Zakas)

Chores

v9.30.1

Compare Source

Bug Fixes


Configuration

📅 Schedule: (in timezone US/Eastern)

  • Branch creation
    • "every weekend"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-eslint-monorepo branch 8 times, most recently from 9419f10 to f3a2808 Compare January 18, 2025 21:53
@renovate renovate bot force-pushed the renovate/major-eslint-monorepo branch 8 times, most recently from ce293cd to 21a6993 Compare January 31, 2025 15:58
@renovate renovate bot force-pushed the renovate/major-eslint-monorepo branch 14 times, most recently from 90d6fcb to bd27db9 Compare February 10, 2025 19:13
@renovate renovate bot force-pushed the renovate/major-eslint-monorepo branch 4 times, most recently from 49fff32 to 09abd3f Compare March 6, 2025 10:27
@renovate renovate bot changed the title Update dependency eslint to v9 chore(deps): update dependency eslint to v9 Mar 6, 2025
@renovate renovate bot force-pushed the renovate/major-eslint-monorepo branch 8 times, most recently from 85732b6 to c0068a1 Compare March 8, 2025 09:08
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
Comment thread frontend-demo/package.json
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/typescript-estree": "^8.13.0",
"eslint": "^8",
"eslint": "^10.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The upgrade to eslint v10 is not accompanied by an update to @typescript-eslint/eslint-plugin, which remains at an incompatible version, 8.46.2.
Severity: CRITICAL

Suggested Fix

Update the @typescript-eslint/eslint-plugin dependency in package.json to a version compatible with ESLint 10, such as ^8.56.0 or later. Then, run your package manager's install command to update the lock file.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: frontend-demo/package.json#L55

Potential issue: The PR upgrades `eslint` to version 10, but the dependency
`@typescript-eslint/eslint-plugin` remains locked at version `8.46.2` in `yarn.lock`.
According to official documentation, support for ESLint 10 was introduced in
`@typescript-eslint/eslint-plugin` version `8.56.0`. The currently locked version is
incompatible, which will cause the `yarn lint-check` command to fail with runtime
errors. This will break the CI/CD pipeline and local development linting workflows.

"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/typescript-estree": "^8.13.0",
"eslint": "^8",
"eslint": "^10.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Upgrading ESLint to v10 without migrating from .eslintrc.js to the required eslint.config.js (flat config) will cause the linting process to fail.
Severity: CRITICAL

Suggested Fix

Migrate the existing .eslintrc.js configuration to the new eslint.config.js flat config format as required by ESLint v10. This may involve using the @eslint/compat package to wrap legacy configurations for compatibility. Additionally, verify that all ESLint plugins and shared configurations, like eslint-config-mitodl, support the flat config format or update them accordingly.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: frontend-demo/package.json#L55

Potential issue: The pull request updates the ESLint version to `^10.0.0` in
`package.json`. However, ESLint v10 completely removes support for the legacy
`.eslintrc.js` configuration format, which is still used by this project. The required
migration to the new `eslint.config.js` (flat config) format has not been performed. As
a result, when the `lint-check` script runs in CI, ESLint v10 will fail to find a valid
configuration file, causing the entire linting process to fail immediately. This failure
occurs before any linting rules or plugins are even processed.

Comment on lines +55 to 58
"eslint": "^10.0.0",
"eslint-config-mitodl": "^2.1.0",
"eslint-config-next": "15.5.12",
"eslint-config-prettier": "^10.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Upgrading to ESLint 10 causes a runtime crash in the linting process due to an incompatibility with eslint-plugin-import, which breaks development workflows like lint-check.
Severity: HIGH

Suggested Fix

To resolve this incompatibility, either downgrade ESLint to version 9.x, or use the @eslint/compat package to wrap the eslint-plugin-import plugin for compatibility with ESLint 10. Alternatively, wait for a new version of eslint-plugin-import that officially supports ESLint 10.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: frontend-demo/package.json#L55-L58

Potential issue: The upgrade of ESLint to version 10.0.0 introduces a runtime
incompatibility with `eslint-plugin-import` (version 2.32.0). The plugin is not
compatible with the structural changes to context objects in ESLint 10. When linting is
executed, such as by running `yarn lint-check`, the process will crash with a
`TypeError` when `eslint-plugin-import` attempts to access properties that no longer
exist. This failure will block all linting operations for the project, impacting the
development workflow and continuous integration checks.

"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/typescript-estree": "^8.13.0",
"eslint": "^8",
"eslint": "^10.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The ESLint v10 upgrade is missing the required migration to the new flat config format (eslint.config.js), which will cause the CI linting step to fail.
Severity: CRITICAL

Suggested Fix

Migrate the existing ESLint configuration from .eslintrc.js to the new flat config format by creating an eslint.config.js file. This involves translating the extends, plugins, rules, and overrides into the new array-based configuration structure required by ESLint v10.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: frontend-demo/package.json#L55

Potential issue: The pull request updates the `eslint` dependency to version 10.0.0.
However, ESLint v10 completely removes support for the legacy `.eslintrc.js`
configuration file format and now requires a flat config file, such as
`eslint.config.js`. Since the project's configuration has not been migrated to this new
format, the `yarn run lint-check` command, which is executed in the CI pipeline, will
fail. The ESLint v10 CLI will error out when it cannot find a valid configuration file,
causing the CI build to fail and blocking merges.

"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/typescript-estree": "^8.13.0",
"eslint": "^8",
"eslint": "^10.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The upgrade to ESLint v10 is incompatible with the project's legacy .eslintrc.js configuration file, which will cause the linting process to fail.
Severity: CRITICAL

Suggested Fix

Before upgrading to ESLint v10, migrate the project's ESLint configuration from the legacy .eslintrc.js format to the new flat config format by creating and configuring an eslint.config.js file. This will ensure compatibility with the new version of ESLint.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: frontend-demo/package.json#L55

Potential issue: The project's dependencies are being updated to ESLint v10 in
`package.json`. However, the project is configured using a legacy `.eslintrc.js` file.
ESLint v10 has completely removed support for this configuration format and now
exclusively requires a flat config file (e.g., `eslint.config.js`). Consequently, any
attempt to run the linting process, such as `yarn lint`, will fail with an error because
ESLint cannot find a valid configuration file. This will break the linting step in the
development and CI/CD pipeline.

"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/typescript-estree": "^8.13.0",
"eslint": "^8",
"eslint": "^10.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The upgrade to ESLint v10 is incompatible with the installed version of @typescript-eslint/eslint-plugin (8.46.2), which will cause linting tasks to fail.
Severity: CRITICAL

Suggested Fix

Update the version constraint for @typescript-eslint/eslint-plugin in package.json to at least ^8.56.0 to ensure compatibility with ESLint v10. Additionally, migrate the legacy .eslintrc.js configuration to the new flat config format (eslint.config.js) as required by ESLint v10.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: frontend-demo/package.json#L55

Potential issue: The upgrade to ESLint v10 is incompatible with the current dependency
setup. The version constraint for `@typescript-eslint/eslint-plugin` is `^8.13.0`, which
resolves to version `8.46.2`. However, support for ESLint v10 was only added in version
`8.56.0` of the plugin. This mismatch will cause linting tasks to fail immediately upon
installation of dependencies. Furthermore, ESLint v10 no longer supports the legacy
`.eslintrc.js` configuration format used in the project, which will also contribute to
the failure.

"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/typescript-estree": "^8.13.0",
"eslint": "^8",
"eslint": "^10.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The upgrade to ESLint v10 is missing the required eslint.config.js flat configuration file, which will cause all linting scripts and the CI build to fail.
Severity: CRITICAL

Suggested Fix

Create a new eslint.config.js file and migrate the existing configuration from .eslintrc.js to the new flat config format required by ESLint v10. Ensure all plugins and extensions are compatible with the new system. The old .eslintrc.js file can then be removed.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: frontend-demo/package.json#L55

Potential issue: The `eslint` dependency was upgraded to version 10, which no longer
supports the `.eslintrc.js` configuration file used by this project. The required
migration to a new `eslint.config.js` (flat config) file was not performed. As a result,
any script that invokes ESLint, such as `yarn lint-check`, will fail because it cannot
find a valid configuration. This will cause the CI pipeline to break, blocking future
code merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants