[Snyk] Upgrade eslint from 8.50.0 to 9.27.0 #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade eslint from 8.50.0 to 9.27.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 48 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-CROSSSPAWN-8303230
SNYK-JS-HTTPPROXYMIDDLEWARE-8229906
SNYK-JS-PATHTOREGEXP-8482416
SNYK-JS-SERIALIZEJAVASCRIPT-6147607
SNYK-JS-COOKIE-8163060
SNYK-JS-HTTPPROXYMIDDLEWARE-9691387
SNYK-JS-HTTPPROXYMIDDLEWARE-9691389
SNYK-JS-NANOID-8492085
Release notes
Package name: eslint
Features
d71e37f
feat: Allow flags to be set in ESLINT_FLAGS env variable (#19717) (Nicholas C. Zakas)ba456e0
feat: Externalize MCP server (#19699) (Nicholas C. Zakas)07c1a7e
feat: addallowRegexCharacters
tono-useless-escape
(#19705) (sethamus)7bc6c71
feat: add no-unassigned-vars rule (#19618) (Jacob Bandes-Storch)ee40364
feat: convert no-array-constructor suggestions to autofixes (#19621) (sethamus)32957cd
feat: support TS syntax inmax-params
(#19557) (Nitin Kumar)Bug Fixes
5687ce7
fix: correct mismatched removed rules (#19734) (루밀LuMir)dc5ed33
fix: correct types and tighten type definitions inSourceCode
class (#19731) (루밀LuMir)de1b5de
fix: correctservice
property name inLinter.ESLintParseResult
type (#19713) (Francesco Trotta)60c3e2c
fix: sort keys in eslint-suppressions.json to avoid git churn (#19711) (Ron Waldon-Howe)9da90ca
fix: addallowReserved
toLinter.ParserOptions
type (#19710) (Francesco Trotta)fbb8be9
fix: addinfo
toESLint.DeprecatedRuleUse
type (#19701) (Francesco Trotta)Documentation
25de550
docs: Update description of frozen rules to mention TypeScript (#19736) (Nicholas C. Zakas)bd5def6
docs: Clean up configuration files docs (#19735) (Nicholas C. Zakas)4d0c60d
docs: Add Neovim to editor integrations (#19729) (Maria José Solano)71317eb
docs: Update README (GitHub Actions Bot)4c289e6
docs: Update README (GitHub Actions Bot)f0f0d46
docs: clarify that unused suppressions cause non-zero exit code (#19698) (Milos Djermanovic)8ed3273
docs: fix internal usages ofConfigData
type (#19688) (Francesco Trotta)eb316a8
docs: addfmt
andcheck
sections toPackage.json Conventions
(#19686) (루밀LuMir)a3a2559
docs: fix wording in Combine Configs (#19685) (Milos Djermanovic)c8d17e1
docs: Update README (GitHub Actions Bot)Chores
f8f1560
chore: upgrade @ eslint/js@9.27.0 (#19739) (Milos Djermanovic)ecaef73
chore: package.json update for @ eslint/js release (Jenkins)596fdc6
chore: update dependency @ arethetypeswrong/cli to ^0.18.0 (#19732) (renovate[bot])f791da0
chore: remove unbalanced curly brace from.editorconfig
(#19730) (Maria José Solano)e86edee
refactor: Consolidate Config helpers (#19675) (Nicholas C. Zakas)cf36352
chore: remove shared types (#19718) (Francesco Trotta)f60f276
refactor: Easier RuleContext creation (#19709) (Nicholas C. Zakas)58a171e
chore: update dependency @ eslint/plugin-kit to ^0.3.1 (#19712) (renovate[bot])3a075a2
chore: update dependency @ eslint/core to ^0.14.0 (#19715) (renovate[bot])44bac9d
ci: run tests in Node.js 24 (#19702) (Francesco Trotta)35304dd
chore: add missingfunding
field to packages (#19684) (루밀LuMir)f305beb
test: mockprocess.emitWarning
to prevent output disruption (#19687) (Francesco Trotta)Features
e9754e7
feat: add reportGlobalThis to no-shadow-restricted-names (#19670) (sethamus)0fa2b7a
feat: add suggestions foreqeqeq
rule (#19640) (Nitin Kumar)dcbdcc9
feat: Add MCP server (#19592) (Nicholas C. Zakas)2dfd83e
feat: addignoreDirectives
option inno-unused-expressions
(#19645) (sethamus)Bug Fixes
96e84de
fix: check cache file existence before deletion (#19648) (sethamus)d683aeb
fix: don't crash on tests with circular references inRuleTester
(#19664) (Milos Djermanovic)9736d5d
fix: addnamespace
toPlugin.meta
type (#19661) (Milos Djermanovic)17bae69
fix: updateRuleTester.run()
type (#19634) (Nitin Kumar)Documentation
dd98d63
docs: Update README (GitHub Actions Bot)c25e858
docs: Update README (GitHub Actions Bot)b2397e9
docs: Update README (GitHub Actions Bot)addd0a6
docs: fix formatting of unordered lists in Markdown (#19660) (Milos Djermanovic)a21b38d
docs: Update README (GitHub Actions Bot)c0721a7
docs: fix double space in command (#19657) (CamWass)Chores
5b247c8
chore: upgrade to@ eslint/js@9.26.0
(#19681) (Francesco Trotta)d6fa4ac
chore: package.json update for @ eslint/js release (Jenkins)0958690
chore: disambiguate internal typesLanguageOptions
andRule
(#19669) (Francesco Trotta)f1c858e
chore: fix internal type references toPlugin
andRule
(#19665) (Francesco Trotta)40dd299
refactor: One-shot ESQuery selector analysis (#19652) (Nicholas C. Zakas)1cfd702
chore: update dependency @ eslint/json to ^0.12.0 (#19656) (renovate[bot])Bug Fixes
cdc8e8c
fix: revert directive detection in no-unused-expressions (#19639) (sethamus)Chores
1f2b057
chore: upgrade @ eslint/js@9.25.1 (#19642) (Milos Djermanovic)771317f
chore: package.json update for @ eslint/js release (Jenkins)Features
dcd95aa
feat: support TypeScript syntax in no-empty-function rule (#19551) (sethamus)77d6d5b
feat: support TS syntax inno-unused-expressions
(#19564) (Sweta Tanwar)90228e5
feat: supportJSRuleDefinition
type (#19604) (루밀LuMir)59ba6b7
feat: add allowObjects option to no-restricted-properties (#19607) (sethamus)db650a0
feat: support TypeScript syntax inno-invalid-this
rule (#19532) (Tanuj Kanti)9535cff
feat: support TS syntax inno-loop-func
(#19559) (Nitin Kumar)Bug Fixes
910bd13
fix:nodeTypeKey
not being used inNodeEventGenerator
(#19631) (StyleShit)Documentation
ca7a735
docs: updateno-undef-init
when not to use section (#19624) (Tanuj Kanti)1b870c9
docs: useeslint-config-xo
in the getting started guide (#19629) (Nitin Kumar)5d4af16
docs: add types for multiple rule options (#19616) (Tanuj Kanti)e8f8d57
docs: Update README (GitHub Actions Bot)a40348f
docs: no-use-before-define tweaks (#19622) (Kirk Waiblinger)0ba3ae3
docs: Update README (GitHub Actions Bot)865dbfe
docs: ensure "learn more" deprecation links point to useful resource (#19590) (Kirk Waiblinger)f80b746
docs: add known limitations for no-self-compare (#19612) (Nitin Kumar)865aed6
docs: Update README (GitHub Actions Bot)Chores
88dc196
chore: upgrade @ eslint/js@9.25.0 (#19636) (Milos Djermanovic)345288d
chore: package.json update for @ eslint/js release (Jenkins)affe6be
chore: upgrade trunk (#19628) (sethamus)dd20cf2
test: fixno-loop-func
test with duplicate variable reports (#19610) (Milos Djermanovic)bd05397
chore: upgrade@ eslint/*
dependencies (#19606) (Milos Djermanovic)22ea18b
chore: replace invalidint
type withnumber
inside JSDocs. (#19597) (Arya Emami)Features
556c25b
feat: support loading TS config files using--experimental-strip-types
(#19401) (Arya Emami)72650ac
feat: support TS syntax ininit-declarations
(#19540) (Nitin Kumar)03fb0bc
feat: normalize patterns to handle "./" prefix in files and ignores (#19568) (Pixel998)071dcd3
feat: support TS syntax inno-dupe-class-members
(#19558) (Nitin Kumar)cd72bcc
feat: Introduce a way to suppress violations (#19159) (Iacovos Constantinou)2a81578
feat: support TS syntax inno-loss-of-precision
(#19560) (Nitin Kumar)30ae4ed
feat: add new options to class-methods-use-this (#19527) (sethamus)b79ade6
feat: support TypeScript syntax inno-array-constructor
(#19493) (Tanuj Kanti)Bug Fixes
b23d1c5
fix: deduplicate variable names in no-loop-func error messages (#19595) (Nitin Kumar)fb8cdb8
fix: useany[]
type forcontext.options
(#19584) (Francesco Trotta)Documentation
f857820
docs: update documentation for--experimental-strip-types
(#19594) (Nikolas Schröter)803e4af
docs: simplify gitignore path handling in includeIgnoreFile section (#19596) (Thomas Broyer)6d979cc
docs: Update README (GitHub Actions Bot)82177e4
docs: Update README (GitHub Actions Bot)e849dc0
docs: replace existing var with const (#19578) (Sweta Tanwar)0c65c62
docs: don't pass filename when linting rule examples (#19571) (Milos Djermanovic)6be36c9
docs: Update custom-rules.md code example of fixer (#19555) (Yifan Pan)Build Related
366e369
build: re-enable Prettier formatting forpackage.json
files (#19569) (Francesco Trotta)Chores
ef67420
chore: upgrade @ eslint/js@9.24.0 (#19602) (Milos Djermanovic)4946847
chore: package.json update for @ eslint/js release (Jenkins)a995acb
chore: correct 'flter'/'filter' typo in package script (#19587) (Josh Goldberg ✨)b9a5efa
test: skip symlink test on Windows (#19503) (fisker Cheung)46eea6d
chore: removeRule
&FormatterFunction
fromshared/types.js
(#19556) (Nitin Kumar)bdcc91d
chore: modify .editorconfig to keep parity with prettier config (#19577) (Sweta Tanwar)7790d83
chore: fix some typos in comment (#19576) (todaymoon)76064a6
test: ignorepackage-lock.json
foreslint-webpack-plugin
(#19572) (Francesco Trotta)Features
557a0d2
feat: support TypeScript syntax in no-useless-constructor (#19535) (Josh Goldberg ✨)8320241
feat: support TypeScript syntax indefault-param-last
(#19431) (Josh Goldberg ✨)833c4a3
feat: defineConfig() supports "flat/" config prefix (#19533) (Nicholas C. Zakas)4a0df16
feat: circular autofix/conflicting rules detection (#19514) (Milos Djermanovic)be56a68
feat: support TypeScript syntax inclass-methods-use-this
(#19498) (Josh Goldberg ✨)Bug Fixes
0e20aa7
fix: move deprecatedRuleContext
methods to subtype (#19531) (Francesco Trotta)cc3bd00
fix: reporting variable used in catch block inno-useless-assignment
(#19423) (Tanuj Kanti)d46ff83
fix:no-dupe-keys
false positive with proto setter (#19508) (Milos Djermanovic)e732773
fix: navigation of search results on pressing Enter (#19502) (Tanuj Kanti)f4e9c5f
fix: allowRuleTester
to test files insidenode_modules/
(#19499) (fisker Cheung)Documentation
5405939
docs: show red underlines in TypeScript examples in rules docs (#19547) (Milos Djermanovic)48b53d6
docs: replace var with const in examples (#19539) (Nitin Kumar)c39d7db
docs: Update README (GitHub Actions Bot)a4f8760
docs: revert accidental changes (#19542) (Francesco Trotta)280128f
docs: add copy button (