Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency eslint to v9 #889

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jessehouwing
Copy link
Collaborator

@jessehouwing jessehouwing commented May 7, 2024

This PR contains the following updates:

Package Type Update Change
eslint (source) devDependencies major ^8.57.1 -> ^9.12.0

Release Notes

eslint/eslint (eslint)

v9.12.0

Compare Source

Features

Bug Fixes

Documentation

  • ecbd522 docs: Mention code explorer (#​18978) (Nicholas C. Zakas)
  • 7ea4ecc docs: Clarifying the Use of Meta Objects (#​18697) (Amaresh S M)
  • d3e4b2e docs: Clarify how to exclude .js files (#​18976) (Milos Djermanovic)
  • 57232ff docs: Mention plugin-kit in language docs (#​18973) (Nicholas C. Zakas)
  • b80ed00 docs: Update README (GitHub Actions Bot)
  • cb69ab3 docs: Update README (GitHub Actions Bot)
  • 7fb0d95 docs: Update README (GitHub Actions Bot)
  • 493348a docs: Update README (GitHub Actions Bot)
  • 87a582c docs: fix typo in id-match rule (#​18944) (Jay)

Chores

v9.11.1

Compare Source

Bug Fixes

  • 20fd916 fix: add @eslint/core, @types/estree, & @types/json-schema deps (#​18938) (Nitin Kumar)
  • 2738322 fix: add missing types for require-atomic-updates rule (#​18937) (Kristóf Poduszló)
  • d71ff30 fix: add missing types for object-shorthand rule (#​18935) (Kristóf Poduszló)
  • 561cadc fix: add missing types for no-unsafe-negation rule (#​18932) (Kristóf Poduszló)
  • 8843656 fix: add missing types for no-underscore-dangle rule (#​18931) (Kristóf Poduszló)
  • 92cde5c fix: add missing types for no-shadow rule (#​18930) (Kristóf Poduszló)
  • b3cbe11 fix: add missing types for no-sequences rule (#​18929) (Kristóf Poduszló)
  • 976f77f fix: add missing types for no-unused-expressions rule (#​18933) (Kristóf Poduszló)

Documentation

  • 3eff709 docs: replace deprecated Linter.FlatConfig type with Linter.Config (#​18941) (Carlos Meira)

Chores

v9.11.0

Compare Source

Features

  • ec30c73 feat: add "eslint/universal" to export Linter (#​18883) (唯然)
  • c591da6 feat: Add language to types (#​18917) (Nicholas C. Zakas)
  • 492eb8f feat: limit the name given to ImportSpecifier in id-length (#​18861) (Tanuj Kanti)
  • 19c6856 feat: Add no-useless-constructor suggestion (#​18799) (Jordan Thomson)
  • a48f8c2 feat: add type FormatterFunction, update LoadedFormatter (#​18872) (Francesco Trotta)

Bug Fixes

  • 5e5f39b fix: add missing types for no-restricted-exports rule (#​18914) (Kristóf Poduszló)
  • 8f630eb fix: add missing types for no-param-reassign options (#​18906) (Kristóf Poduszló)
  • d715781 fix: add missing types for no-extra-boolean-cast options (#​18902) (Kristóf Poduszló)
  • 2de5742 fix: add missing types for no-misleading-character-class options (#​18905) (Kristóf Poduszló)
  • c153084 fix: add missing types for no-implicit-coercion options (#​18903) (Kristóf Poduszló)
  • fa11b2e fix: add missing types for no-empty-function options (#​18901) (Kristóf Poduszló)
  • a0deed1 fix: add missing types for camelcase options (#​18897) (Kristóf Poduszló)

Documentation

  • e4e5709 docs: correct prefer-object-has-own type definition comment (#​18924) (Nitin Kumar)
  • 91cbd18 docs: add unicode abbreviations in no-irregular-whitespace rule (#​18894) (Alix Royere)
  • 59cfc0f docs: clarify resultsMeta in LoadedFormatter type (#​18881) (Milos Djermanovic)
  • adcc50d docs: Update README (GitHub Actions Bot)
  • 4edac1a docs: Update README (GitHub Actions Bot)

Build Related

  • 959d360 build: Support updates to previous major versions (#​18871) (Milos Djermanovic)

Chores

v9.10.0

Compare Source

Features

  • 301b90d feat: Add types (#​18854) (Nicholas C. Zakas)
  • bcf0df5 feat: limit namespace import identifier in id-length rule (#​18849) (ChaedongIm)
  • 45c18e1 feat: add requireFlag option to require-unicode-regexp rule (#​18836) (Brett Zamir)
  • 183b459 feat: add error message for duplicate flags in no-invalid-regexp (#​18837) (Tanuj Kanti)
  • c69b406 feat: report duplicate allowed flags in no-invalid-regexp (#​18754) (Tanuj Kanti)

Documentation

  • bee0e7a docs: update README (#​18865) (Milos Djermanovic)
  • 5d80b59 docs: specify that ruleId can be null in custom formatter docs (#​18857) (Milos Djermanovic)
  • 156b1c3 docs: Update README (GitHub Actions Bot)
  • f6fdef9 docs: Update README (GitHub Actions Bot)
  • a20c870 docs: Update README (GitHub Actions Bot)
  • 90e699b docs: Update README (GitHub Actions Bot)

Chores

v9.9.1

Compare Source

Bug Fixes

  • 9bde90c fix: add logic to handle fixTypes in lintText() (#​18736) (Amaresh S M)

Documentation

Chores

v9.9.0

Compare Source

Features

  • 41d0206 feat: Add support for TS config files (#​18134) (Arya Emami)
  • 3a4eaf9 feat: add suggestion to require-await to remove async keyword (#​18716) (Dave)

Documentation

  • 9fe068c docs: how to author plugins with configs that extend other configs (#​18753) (Alec Gibson)
  • 48117b2 docs: add version support page in the side navbar (#​18738) (Amaresh S M)
  • fec2951 docs: add version support page to the dropdown (#​18730) (Amaresh S M)
  • 38a0661 docs: Fix typo (#​18735) (Zaina Al Habash)
  • 3c32a9e docs: Update yarn command for creating ESLint config (#​18739) (Temitope Ogunleye)
  • f9ac978 docs: Update README (GitHub Actions Bot)

Chores

v9.8.0

Compare Source

Features

  • 13d0bd3 feat: Add and use SourceCode#getLoc/getRange (#​18703) (Nicholas C. Zakas)

Bug Fixes

  • ab0ff27 fix: Throw error when invalid flags passed (#​18705) (Nicholas C. Zakas)
  • 70dc803 fix: basePath directory can never be ignored (#​18711) (Milos Djermanovic)

Documentation

Build Related

Chores

v9.7.0

Compare Source

Features

  • 7bd9839 feat: add support for es2025 duplicate named capturing groups (#​18630) (Yosuke Ota)
  • 1381394 feat: add regex option in no-restricted-imports (#​18622) (Nitin Kumar)

Bug Fixes

  • 14e9f81 fix: destructuring in catch clause in no-unused-vars (#​18636) (Francesco Trotta)

Documentation

  • 9f416db docs: Add Powered by Algolia label to the search. (#​18633) (Amaresh S M)
  • c8d26cb docs: Open JS Foundation -> OpenJS Foundation (#​18649) (Milos Djermanovic)
  • 6e79ac7 docs: loadESLint does not support option cwd (#​18641) (Francesco Trotta)

Chores

v9.6.0

Compare Source

Features

  • e2b16e2 feat: Implement feature flags (#​18516) (Nicholas C. Zakas)
  • 8824aa1 feat: add ecmaVersion: 2025, parsing duplicate named capturing groups (#​18596) (Milos Djermanovic)

Bug Fixes

  • 1613e2e fix: Allow escaping characters in config patterns on Windows (#​18628) (Milos Djermanovic)
  • 21d3766 fix: no-unused-vars include caught errors pattern in report message (#​18609) (Kirk Waiblinger)
  • d7a7736 fix: improve no-unused-vars message on unused caught errors (#​18608) (Kirk Waiblinger)
  • f9e95d2 fix: correct locations of invalid /* eslint */ comments (#​18593) (Milos Djermanovic)

Documentation

  • 13dbecd docs: Limit search to just docs (#​18627) (Nicholas C. Zakas)
  • 375227f docs: Update getting-started.md - add pnpm to init eslint config (#​18599) (Kostiantyn Ochenash)
  • 44915bb docs: Update README (GitHub Actions Bot)
  • d50db7b docs: Update vscode-eslint info (#​18595) (Nicholas C. Zakas)

Chores

v9.5.0

Compare Source

Features

  • b2d256c feat: no-sparse-arrays report on "comma" instead of the whole array (#​18579) (fisker Cheung)

Bug Fixes

  • 6880286 fix: treat * as a universal pattern (#​18586) (Milos Djermanovic)
  • 7fbe211 fix: message template for all files ignored (#​18564) (Milos Djermanovic)
  • 469cb36 fix: Don't lint the same file multiple times (#​18552) (Milos Djermanovic)
  • 5cff638 fix: improve message for ignored files without a matching config (#​18404) (Francesco Trotta)

Documentation

  • 455f7fd docs: add section about including .gitignore files (#​18590) (Milos Djermanovic)
  • 721eafe docs: update info about universal files patterns (#​18587) (Francesco Trotta)
  • 8127127 docs: Update README (GitHub Actions Bot)
  • 55c2a66 docs: Update README (GitHub Actions Bot)
  • eb76282 docs: Update README (GitHub Actions Bot)
  • ff6e96e docs: baseConfig and overrideConfig can be arrays (#​18571) (Milos Djermanovic)
  • d2d83e0 docs: Add mention of eslint-transforms to v9 migration guide (#​18566) (Nicholas C. Zakas)
  • 9ce6832 docs: add callout box for unintuitive behavior (#​18567) (Ben McCann)
  • b8db99c docs: Add VS Code info to config migration guide (#​18555) (Nicholas C. Zakas)
  • 518a35c docs: Mention config migrator (#​18561) (Nicholas C. Zakas)
  • eb440fc docs: specifying files with arbitrary or no extension (#​18539) (Francesco Trotta)
  • 38c159e docs: Provide example of reading package.json for plugins meta (#​18530) (Nicholas C. Zakas)
  • d16a659 docs: add link to migration guide for --ext CLI option (#​18537) (Milos Djermanovic)
  • 73408de docs: add link to configuration file docs before examples (#​18535) (Milos Djermanovic)

Chores

v9.4.0

Compare Source

Features

  • 89a4a0a feat: ignore IIFE's in the no-loop-func rule (#​17528) (Nitin Kumar)

Bug Fixes

  • f6534d1 fix: skip processor code blocks that match only universal patterns (#​18507) (Milos Djermanovic)
  • 7226ebd fix: allow implicit undefined return in no-constructor-return (#​18515) (Ali Rezvani)
  • 389744b fix: use @eslint/config-inspector@latest (#​18483) (唯然)
  • 70118a5 fix: func-style false positive with arrow functions and super (#​18473) (Milos Djermanovic)

Documentation

Chores

v9.3.0

Compare Source

Features

  • b32153c feat: add overrides.namedExports to func-style rule (#​18444) (Percy Ma)
  • b67eba4 feat: add restrictedNamedExportsPattern to no-restricted-exports (#​18431) (Akul Srivastava)
  • 069aa68 feat: add option allowEscape to no-misleading-character-class rule (#​18208) (Francesco Trotta)
  • 05ef92d feat: deprecate multiline-comment-style & line-comment-position (#​18435) (唯然)
  • db0b174 feat: add enforceForInnerExpressions option to no-extra-boolean-cast (#​18222) (Kirk Waiblinger)

Bug Fixes

  • 8db0eff fix: Improve config error messages (#​18457) (Nicholas C. Zakas)
  • 5c28d9a fix: don't remove comments between key and value in object-shorthand (#​18442) (Kuba Jastrzębski)
  • 39fb0ee fix: object-shorthand loses type parameters when auto-fixing (#​18438) (dalaoshu)
  • 37eba48 fix: don't crash when fs.readFile returns promise from another realm (#​18416) (Milos Djermanovic)

Documentation

  • ceada8c docs: explain how to use "tsc waiting" label (#​18466) (Francesco Trotta)
  • 62e686c docs: Add troubleshooting info for plugin compatibility (#​18451) (Nicholas C. Zakas)
  • e17e1c0 docs: Update README (GitHub Actions Bot)
  • 2465a1e docs: Update README (GitHub Actions Bot)
  • d23574c docs: Clarify usage of no-unreachable with TypeScript (#​18445) (benj-dobs)
  • 1db9bae docs: Fix typos (#​18443) (Frieder Bluemle)
  • 7065196 docs: Update README (GitHub Actions Bot)
  • 04e7c6e docs: update deprecation notice of no-return-await (#​18433) (Tanuj Kanti)
  • e763512 docs: Link global ignores section in config object property list (#​18430) (MaoShizhong)
  • ac7f718 docs: reflect release of v9 in config migration guide (#​18412) (Peter Briggs)
  • 0de0909 docs: fix grammar in configuration file resolution (#​18419) (Mike McCready)

Chores

v9.2.0

Compare Source

Features

  • 8485d76 feat: no-case-declarations add suggestions (#​18388) (Josh Goldberg ✨)
  • a498f35 feat: update Unicode letter detection in capitalized-comments rule (#​18375) (Francesco Trotta)

Bug Fixes

  • eeec413 fix: do not throw when defining a global named defineSetter (#​18364) (唯然)

Documentation

  • 0f5df50 docs: Update README (GitHub Actions Bot)
  • 1579ce0 docs: update wording regarding indirect eval (#​18394) (Kirk Waiblinger)
  • f12a02c docs: update to eslint v9 in custom-rule-tutorial (#​18383) (唯然)

Chores


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, 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 has been generated by Renovate Bot.

@jessehouwing
Copy link
Collaborator Author

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm notice 
npm notice New minor version of npm available! 10.5.0 -> 10.7.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.7.0>
npm notice Run `npm install -g [email protected]` to update!
npm notice 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @typescript-eslint/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^9.2.0" from the root project
npm ERR!   peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/[email protected]
npm ERR!   node_modules/@eslint-community/eslint-utils
npm ERR!     @eslint-community/eslint-utils@"^4.4.0" from @typescript-eslint/[email protected]
npm ERR!     node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils
npm ERR!       @typescript-eslint/utils@"7.8.0" from @typescript-eslint/[email protected]
npm ERR!       node_modules/@typescript-eslint/eslint-plugin
npm ERR!         dev @typescript-eslint/eslint-plugin@"^7.8.0" from the root project
npm ERR!         1 more (eslint-config-airbnb-typescript)
npm ERR!     @eslint-community/eslint-utils@"^4.4.0" from @typescript-eslint/[email protected]
npm ERR!     node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils
npm ERR!       @typescript-eslint/utils@"7.8.0" from @typescript-eslint/[email protected]
npm ERR!       node_modules/@typescript-eslint/type-utils
npm ERR!         @typescript-eslint/type-utils@"7.8.0" from @typescript-eslint/[email protected]
npm ERR!         node_modules/@typescript-eslint/eslint-plugin
npm ERR!     2 more (@typescript-eslint/utils, eslint)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^8.56.0" from @typescript-eslint/[email protected]
npm ERR! node_modules/@typescript-eslint/eslint-plugin
npm ERR!   dev @typescript-eslint/eslint-plugin@"^7.8.0" from the root project
npm ERR!   peer @typescript-eslint/eslint-plugin@"^7.0.0" from [email protected]
npm ERR!   node_modules/eslint-config-airbnb-typescript
npm ERR!     dev eslint-config-airbnb-typescript@"^18.0.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/eslint
npm ERR!   peer eslint@"^8.56.0" from @typescript-eslint/[email protected]
npm ERR!   node_modules/@typescript-eslint/eslint-plugin
npm ERR!     dev @typescript-eslint/eslint-plugin@"^7.8.0" from the root project
npm ERR!     peer @typescript-eslint/eslint-plugin@"^7.0.0" from [email protected]
npm ERR!     node_modules/eslint-config-airbnb-typescript
npm ERR!       dev eslint-config-airbnb-typescript@"^18.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! C:\npm\cache\_logs\2024-05-07T09_23_01_144Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: C:\npm\cache\_logs\2024-05-07T09_23_01_144Z-debug-0.log

@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch from bef2819 to 5e54aaa Compare May 18, 2024 00:07
@jessehouwing
Copy link
Collaborator Author

jessehouwing commented May 18, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @typescript-eslint/[email protected]
npm error Found: [email protected]
npm error node_modules/eslint
npm error   dev eslint@"^9.12.0" from the root project
npm error   peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/[email protected]
npm error   node_modules/@eslint-community/eslint-utils
npm error     @eslint-community/eslint-utils@"^4.4.0" from @typescript-eslint/[email protected]
npm error     node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils
npm error       @typescript-eslint/utils@"7.18.0" from @typescript-eslint/[email protected]
npm error       node_modules/@typescript-eslint/eslint-plugin
npm error         dev @typescript-eslint/eslint-plugin@"^7.18.0" from the root project
npm error         1 more (eslint-config-airbnb-typescript)
npm error     @eslint-community/eslint-utils@"^4.4.0" from @typescript-eslint/[email protected]
npm error     node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils
npm error       @typescript-eslint/utils@"7.18.0" from @typescript-eslint/[email protected]
npm error       node_modules/@typescript-eslint/type-utils
npm error         @typescript-eslint/type-utils@"7.18.0" from @typescript-eslint/[email protected]
npm error         node_modules/@typescript-eslint/eslint-plugin
npm error     2 more (@typescript-eslint/utils, eslint)
npm error   1 more (eslint-plugin-import)
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^8.56.0" from @typescript-eslint/[email protected]
npm error node_modules/@typescript-eslint/eslint-plugin
npm error   dev @typescript-eslint/eslint-plugin@"^7.18.0" from the root project
npm error   peer @typescript-eslint/eslint-plugin@"^7.0.0" from [email protected]
npm error   node_modules/eslint-config-airbnb-typescript
npm error     dev eslint-config-airbnb-typescript@"^18.0.0" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/eslint
npm error   peer eslint@"^8.56.0" from @typescript-eslint/[email protected]
npm error   node_modules/@typescript-eslint/eslint-plugin
npm error     dev @typescript-eslint/eslint-plugin@"^7.18.0" from the root project
npm error     peer @typescript-eslint/eslint-plugin@"^7.0.0" from [email protected]
npm error     node_modules/eslint-config-airbnb-typescript
npm error       dev eslint-config-airbnb-typescript@"^18.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\npm\cache\_logs\2024-10-05T00_06_00_734Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\npm\cache\_logs\2024-10-05T00_06_00_734Z-debug-0.log

@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch from 5e54aaa to 6866997 Compare May 18, 2024 16:04
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch from 6866997 to 4046b76 Compare June 1, 2024 00:07
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch 3 times, most recently from b8f2828 to 29e8d9b Compare June 15, 2024 00:07
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch from 29e8d9b to 84f4fa7 Compare June 18, 2024 06:04
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch 3 times, most recently from 85b55ab to 252788a Compare July 2, 2024 15:00
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch 2 times, most recently from f220bd7 to b39211d Compare July 13, 2024 00:06
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch from b39211d to d73129f Compare July 17, 2024 06:25
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch from d73129f to 992344b Compare July 27, 2024 00:06
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch 2 times, most recently from 01d4742 to cf28a54 Compare August 12, 2024 15:51
@jessehouwing jessehouwing force-pushed the renovate/major-eslint-monorepo branch 2 times, most recently from 1098072 to 391ced1 Compare September 24, 2024 00:06
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.

1 participant