Repository navigation
fix(deps): update console typescript-and-eslint - #40749
renovate[bot] wants to merge 1 commit into
Conversation
4411139 to
aedcf2d
Compare
158f527 to
6504a84
Compare
| "style-mod": "^4.1.4", | ||
| "ts-node": "^10.9.2", | ||
| "typescript": "^6.0.3", | ||
| "typescript": "^7.0.0", |
There was a problem hiding this comment.
🔴 Console developers and CI get yarn lint running typescript-eslint against an unsupported TypeScript 7.0.2. Lint has no supported setup and may fail or warn on every run. typescript-eslint 8.73.0 declares peer typescript: ">=4.8.4 <6.1.0" in console/yarn.lock. Its parser loads the installed typescript package to parse every .ts/.tsx file. Fix: keep typescript at ^6.0.3 until typescript-eslint supports 7.x, and split it out of the Renovate group. The ESLint plugin bumps can still land. TS 7.0.2 also drops the tsserver bin, which the typescript-eslint-language-service plugin in console/tsconfig.json needs.
Why this was flagged
console/package.json:118 moves typescript from ^6.0.3 to ^7.0.0, and the lockfile resolves this to 7.0.2. In console/yarn.lock, @ typescript-eslint/parser, typescript-estree, project-service, tsconfig-utils, utils and type-utils at 8.73.0 all declare peer typescript: ">=4.8.4 <6.1.0". console/eslint.config.js:52 applies tseslint.configs.recommended, so every TS file is parsed by typescript-estree, which imports the typescript module's JS API. At minimum, typescript-estree prints its unsupported-TypeScript-version warning. At worst, parsing fails if the native package does not expose the JS compiler API that typescript-estree calls. The base, TS 6.0.3, is inside the peer range. Nothing stops this: yarn only reports peer mismatches as warnings, and the PR changes no config to compensate.
Verification: console/package.json:118 changes "typescript": "^6.0.3" to "^7.0.0". console/yarn.lock:12370-12372 resolves that to typescript@ npm:7.0.2. Every typescript-eslint 8.73.0 package in the lockfile still declares peer typescript: ">=4.8.4 <6.1.0". console/eslint.config.js:52 applies tseslint.configs.recommended.
| "typescript@npm:^7.0.0": | ||
| version: 7.0.2 | ||
| resolution: "typescript@npm:7.0.2" | ||
| dependencies: | ||
| "@typescript/typescript-aix-ppc64": "npm:7.0.2" | ||
| "@typescript/typescript-darwin-arm64": "npm:7.0.2" | ||
| "@typescript/typescript-darwin-x64": "npm:7.0.2" | ||
| "@typescript/typescript-freebsd-arm64": "npm:7.0.2" | ||
| "@typescript/typescript-freebsd-x64": "npm:7.0.2" | ||
| "@typescript/typescript-linux-arm": "npm:7.0.2" | ||
| "@typescript/typescript-linux-arm64": "npm:7.0.2" | ||
| "@typescript/typescript-linux-loong64": "npm:7.0.2" | ||
| "@typescript/typescript-linux-mips64el": "npm:7.0.2" | ||
| "@typescript/typescript-linux-ppc64": "npm:7.0.2" | ||
| "@typescript/typescript-linux-riscv64": "npm:7.0.2" | ||
| "@typescript/typescript-linux-s390x": "npm:7.0.2" | ||
| "@typescript/typescript-linux-x64": "npm:7.0.2" | ||
| "@typescript/typescript-netbsd-arm64": "npm:7.0.2" | ||
| "@typescript/typescript-netbsd-x64": "npm:7.0.2" | ||
| "@typescript/typescript-openbsd-arm64": "npm:7.0.2" | ||
| "@typescript/typescript-openbsd-x64": "npm:7.0.2" | ||
| "@typescript/typescript-sunos-x64": "npm:7.0.2" | ||
| "@typescript/typescript-win32-arm64": "npm:7.0.2" | ||
| "@typescript/typescript-win32-x64": "npm:7.0.2" | ||
| dependenciesMeta: | ||
| "@typescript/typescript-aix-ppc64": | ||
| optional: true | ||
| "@typescript/typescript-darwin-arm64": | ||
| optional: true | ||
| "@typescript/typescript-darwin-x64": | ||
| optional: true | ||
| "@typescript/typescript-freebsd-arm64": | ||
| optional: true | ||
| "@typescript/typescript-freebsd-x64": | ||
| optional: true | ||
| "@typescript/typescript-linux-arm": | ||
| optional: true | ||
| "@typescript/typescript-linux-arm64": | ||
| optional: true | ||
| "@typescript/typescript-linux-loong64": | ||
| optional: true | ||
| "@typescript/typescript-linux-mips64el": | ||
| optional: true | ||
| "@typescript/typescript-linux-ppc64": | ||
| optional: true | ||
| "@typescript/typescript-linux-riscv64": | ||
| optional: true | ||
| "@typescript/typescript-linux-s390x": | ||
| optional: true | ||
| "@typescript/typescript-linux-x64": | ||
| optional: true | ||
| "@typescript/typescript-netbsd-arm64": | ||
| optional: true | ||
| "@typescript/typescript-netbsd-x64": | ||
| optional: true | ||
| "@typescript/typescript-openbsd-arm64": | ||
| optional: true | ||
| "@typescript/typescript-openbsd-x64": | ||
| optional: true | ||
| "@typescript/typescript-sunos-x64": | ||
| optional: true | ||
| "@typescript/typescript-win32-arm64": | ||
| optional: true | ||
| "@typescript/typescript-win32-x64": | ||
| optional: true | ||
| bin: | ||
| tsc: bin/tsc |
There was a problem hiding this comment.
🟡 (optional) Console developers lose in-editor ESLint diagnostics, and editors set to the workspace TypeScript lose their language server. TypeScript 7.0.2 no longer ships tsserver, but console/tsconfig.json:26-30 still registers the typescript-eslint-language-service tsserver plugin. Fix: keep a TypeScript that provides tsserver and its plugin API for editor use, or remove the dead plugins entry and the typescript-eslint-language-service dependency (package.json:188) in this PR. That leaves yarn lint as the only ESLint feedback.
Why this was flagged
The resolved typescript@ npm:7.0.2 entry (yarn.lock:12370-12436) and its compat-patch twin (12441-12507) list only tsc: bin/tsc under bin. The base 6.0.3 entries also listed tsserver: bin/tsserver, so the TS 7 native package no longer ships the JS tsserver or its plugin host. console/tsconfig.json:26-30 declares "plugins": [{ "name": "typescript-eslint-language-service" }], and console/package.json:188 still depends on that package. On the base branch, an editor using the workspace TypeScript (node_modules/typescript/lib/tsserver.js) loads the plugin and shows ESLint errors inline. After the merge that file and the plugin host are gone. The editor either fails to start the workspace language server or falls back to its bundled one, which does not load workspace tsconfig plugins. Either way the inline ESLint diagnostics are lost. Nothing in the diff updates tsconfig.json or removes the dependency.
Verification: The diff swaps the typescript@ npm:^6.0.3 lock entry (6.0.3) for typescript@ npm:^7.0.0 (7.0.2), whose bin: block drops - tsserver: bin/tsserver. console/tsconfig.json:26-30 still declares "plugins": [{ "name": "typescript-eslint-language-service" }]. With TS 7, the workspace TypeScript has no JS tsserver to host the plugin, so the plugin entry is dead.
1afe251 to
1040331
Compare
1040331 to
0a5325d
Compare
This PR contains the following updates:
10.15.0→10.16.010.1.8→10.1.9^3.1.0→^4.0.0^79.0.0→^80.0.0^6.0.3→^7.0.0Release Notes
eslint/eslint (eslint)
v10.16.0Compare Source
Features
7fff57afeat: add suggestions tono-new-native-nonconstructor(#21576) (Pixel)14e3533feat: suggest comparing with bothnullandundefinedineqeqeq(#21577) (Pixel)0e2a431feat: handleTSImportEqualsDeclarationtype imports inno-shadow(#21564) (Lê Văn Xuân Hoàn)a6b2c6dfeat: add suggestions tono-eq-null(#21512) (Pixel)Bug Fixes
0b43c2dfix: update dependency @eslint/config-array to ^0.23.7 (#21598) (renovate[bot])f692882fix: handle trailing commas in no-unused-vars suggestions (#21570) (Lê Văn Xuân Hoàn)622db83fix: addESLint.CalculatedConfigtype forcalculateConfigForFile()(#21483) (Pixel)0d401e5fix: handle heritage and qualified types inno-use-before-define(#21536) (Lê Văn Xuân Hoàn)b377b08fix: handle circular references when formatting config errors (#21569) (Lê Văn Xuân Hoàn)4820790fix: handle TS assertions on callees inno-invalid-this(#21540) (Nitin Kumar)9fe69d8fix: skip type parameters ingetOpeningParenOfParams(#21531) (Lê Văn Xuân Hoàn)Documentation
1429546docs: fix typo in Node.js API documentation (#21594) (Pixel)85d4d49docs: Update README (GitHub Actions Bot)6942d2fdocs: Add Project Leads description (#21559) (Nicholas C. Zakas)4c76138docs: Update README (GitHub Actions Bot)Chores
42c9929chore: update github/codeql-action action to v4.39.4 (#21597) (renovate[bot])079529ctest: coverSourceCode#getLoc()andgetRange()(#21595) (electrohyun)65e8b2fchore: remove obsolete markdownlint directives (#21588) (lumir)9292b2fchore: use spaces for YAML indentation in .editorconfig (#21591) (electrohyun)5716b3fchore: update ecosystem plugins (#21579) (ESLint Bot)1501e8aci: add@eslint/shellin ecosystem tests and types integration (#21516) (lumir)e0148e3chore: update dependency prettier to v3.10.1 (#21571) (renovate[bot])2102699chore: update dependency prettier to v3.10.0 (#21567) (renovate[bot])494f4e8chore: update ecosystem plugins (#21566) (ESLint Bot)97efaddci: bump peter-evans/create-pull-request from 8.1.1 to 8.1.3 (#21551) (dependabot[bot])prettier/eslint-config-prettier (eslint-config-prettier)
v10.1.9Compare Source
Patch Changes
976eedeThanks @CEXpp! - Disable@stylistic/list-stylebecause it conflicts with Prettier.dangreenisrael/eslint-plugin-jest-formatting (eslint-plugin-jest-formatting)
v4.0.0Compare Source
Lint output is read by AI coding agents as often as by people, and agents act on rule messages literally. This release makes the plugin's messages, documentation and package easier for an agent, or a person, to understand and act on. The same code is reported at the same positions and
eslint --fixwrites the same output as in 3.1.0; the message text is new. Breaking Changes below lists what else can affect an upgrade.Added
configs['flat/recommended']andconfigs['flat/strict']. Unlike the legacy presets they set nofiles, so your own config decides which files are linted. The legacyplugin:jest-formatting/recommendedandplugin:jest-formatting/strictconfigs are unchanged. (#122, #120)messageId,missingPaddingBeforeormissingPaddingAfter, and a message that names the matched Jest call, states the expected form, and says how to fix it. For example: Missing blank line beforedescribe. Expected at least one blank line between the previous statement and thisdescribecall. Fix: insert an empty line between the statements, before any comments leading the next statement (autofixable with --fix).meta.type,meta.docs.description,meta.docs.urland an emptymeta.schema.docs/ruleshas the same sections: Rule summary, Why, Incorrect examples, Correct examples, Options, Fixability. The "ESLint reports" block under each incorrect example is real output, and a test keeps it that way.AGENTS.mdandllms.txtfor AI coding agents, and a README section on using the plugin with them.meta.nameandmeta.version.Breaking Changes
enginesmismatch; Yarn 1 refuses to install unless--ignore-enginesis passed.module.exports = plugin) withrules,configsandmeta, following eslint-plugin-jest.require(...),import plugin from ...andimport { rules, configs } from ...under TypeScript or a bundler keep working. In a native ESM file such aseslint.config.mjs, named imports (import { configs } from 'eslint-plugin-jest-formatting') no longer resolve, and a namespace import (import * as jestFormatting from ...) no longer hasrulesorconfigs, so ESLint fails withCould not find "<rule>" in plugin. Use the default import.meta.schema, so ESLint 8 rejects a rule configured with options, such as["error", {}], and stops withConfiguration for rule ... is invalid. These options never had any effect (ESLint 9 and later already rejected them); configure severity only.meta.type: 'layout', soeslint --fix-type layoutapplies their fixes. It skipped them in 3.1.0.Changed
AGENTS.md,llms.txtand this changelog: 17 files, down from 47. Sources, tests and CI config are no longer shipped. Themodulefield, which pointed at an unshipped TypeScript file, is gone.Fixed
context.getSourceCode()was removed.Internal
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)
v80.0.0Compare Source
Breaking
6ae4251no-async-promise-finally: Remove it from therecommendedandunopinionatedpresets (#3989)b670841New rules
require-spread-parentheses(#3999)b665c82prefer-options-parameter(#3991)d9ddeddprefer-regexp-exec(#3978)d267d61Improvements
6ae4251e1b5f7cno-immediate-mutation: AddcheckCollectionsoption (#3995)d17cfc0prefer-smaller-scope: AddcheckTypeAliasesoption (#3955)a6c2fdfprefer-ternary: AddcheckNestedTernariesoption (#3965)08de788prefer-uint8array-base64,prefer-uint8array-hex: AddcheckBufferDecodingoption, and autofixBuffer.fromBase64()andBuffer.fromHex()(#3980)d8e24daconsistent-boolean-name: Ignore underscore-only parameters in TypeScript type signatures (#3986)f0ae743no-async-iterator-callback,no-async-promise-finally: Detect async callbacks in unreassigned localletandvarbindings (#3989)b670841no-immediate-mutation: Autofix more consecutive initializations (#3953)8d9549ano-null: IgnoreObject.setPrototypeOf(foo, null)(#4005)33941beno-unnecessary-default-arguments: Check generic functions (#3966)3267899no-unnecessary-default-arguments: Autofix type-safe removals when type information is available (#3972)c9163ceno-unnecessary-nested-ternary: Simplify longer ternary chains (#3974)201c6a7no-useless-coercion: Report redundant!!(#4000)4f724e1no-useless-undefined: Ignorereturn undefinedin getters (#4004)a0df80fprefer-json-import: Detect JSON loaded throughcreateRequire(), with autofix (#3976)a8a814aprefer-logical-operator-over-ternary: Handle ternaries with anullorundefinedbranch in truthiness checks (#3994)7d98f9bprefer-math-min-max: Only report comparisons of known numbers in TypeScript (#3967)cb13c2aprefer-minimal-ternary: Support member chains (#3968)d85a52fprefer-module: Ignore.ctsfiles (#4002)ba41e94prefer-simplified-conditions: Factor comparisons with any comparison operator (#3970)bf2986aprefer-string-raw: Ignore strings in import and export specifiers (#3983)38e4329prefer-switch: Ignoreifchains that would put anelse ifinsidedefault(#3982)6236734relative-url-style: Reduce dependencies (#3971)a2748a1microsoft/TypeScript (typescript)
v7.0.2: TypeScript 7.0.2Compare Source
https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/
This tag was originally released at: https://github.com/microsoft/typescript-go/releases/tag/typescript%2Fv7.0.2
Configuration
📅 Schedule: (in timezone Etc/UTC)
* * * * 6)* 0-3 * * 0)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.