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.
This PR contains the following updates:
8.21.1
->8.40.0
18.14.6
->18.16.16
8.35.0
->8.41.0
8.5.1
->8.6.0
2.8.4
->2.8.8
5.0.2
->5.0.4
0.31.0
->0.31.1
Release Notes
eslint/eslint
v8.41.0
Compare Source
Features
880a431
feat: change default ignore pattern to**/node_modules/
in flat config (#17184) (Milos Djermanovic)8bf5505
feat: exposeshouldUseFlatConfig
(#17169) (Connor Prussin)Bug Fixes
4f5440d
fix: incorrect warning message for ignored dotfiles (#17196) (Milos Djermanovic)94da96c
fix: unifyLintMessage
type (#17076) (Brandon Mills)0c415cd
fix: validateignorePatterns
constructor option inFlatESLint
class (#17139) (Milos Djermanovic)9682d66
fix: switchgrapheme-splitter
tographemer
(#17160) (fisker Cheung)Documentation
7709b14
docs: Update README (GitHub Actions Bot)7f183e0
docs: Update triage process description (#17157) (Nicholas C. Zakas)b68346b
docs: fix license to reflect relicensing of jshint (#17165) (Stefan Bischof)Chores
f43216a
chore: upgrade @eslint/js@8.41.0 (#17200) (Milos Djermanovic)95c3007
chore: package.json update for @eslint/js release (ESLint Jenkins)ddc5291
chore: don't use deprecatedcontext
methods inast-utils
tests (#17194) (Milos Djermanovic)b1516db
chore: Fix return type offindFlatConfigFile
(#17161) (Milos Djermanovic)918b0fd
perf: Store indent descriptors in a plain array (#17148) (Francesco Trotta)4caa344
refactor: locateConfigFileToUse returns an Error object (#17159) (唯然)v8.40.0
Compare Source
Features
5db7808
feat: improve flat config errors for invalid rule options and severities (#17140) (Josh Goldberg ✨)f5574dc
feat: Add findConfigFile() method to FlatESLint (#17142) (Nicholas C. Zakas)e52b98b
feat: addsourceCode
property to the rule context (#17107) (Nitin Kumar)1468f5b
feat: addphysicalFilename
property to the rule context (#17111) (Nitin Kumar)0df4d4f
feat: addcwd
to rule context (#17106) (Nitin Kumar)52018f2
feat: addfilename
property to the rule context (#17108) (Nitin Kumar)559ff4e
feat: add newomitLastInOneLineClassBody
option to thesemi
rule (#17105) (Nitin Kumar)Bug Fixes
f076e54
fix: Ensure FlatESLint#findConfigFile() doesn't throw. (#17151) (Nicholas C. Zakas)Documentation
e980bf3
docs: Update README (GitHub Actions Bot)e92a6fc
docs: Update README (GitHub Actions Bot)af5fe64
docs: Fix custom rule schema docs (#17115) (Adam Jones)4a352a9
docs: explain how to include predefined globals (#17114) (Marcus Wyatt)5ea15d9
docs: add mastodon link in readme (#17110) (唯然)Chores
4053004
chore: upgrade @eslint/js@8.40.0 (#17156) (Milos Djermanovic)50fed1d
chore: package.json update for @eslint/js release (ESLint Jenkins)4c7a170
chore: upgrade @eslint/eslintrc@2.0.3 (#17155) (Milos Djermanovic)e80b7cc
chore: upgrade espree@9.5.2 (#17154) (Milos Djermanovic)ce3ac91
chore: upgrade eslint-visitor-keys@3.4.1 (#17153) (Milos Djermanovic)9094d79
chore: addlatest/
tometa.docs.url
in all core rules (#17136) (Milos Djermanovic)d85efad
perf: don't usegrapheme-splitter
on ASCII strings in key-spacing rule (#17122) (Milos Djermanovic)v8.39.0
Compare Source
Features
3f7af9f
feat: ImplementSourceCode#markVariableAsUsed()
(#17086) (Nicholas C. Zakas)Documentation
6987dc5
docs: Fix formatting in Custom Rules docs (#17097) (Milos Djermanovic)4ee92e5
docs: Update README (GitHub Actions Bot)d8e9887
docs: Custom Rules cleanup/expansion (#16906) (Ben Perlmutter)1fea279
docs: Clarify how to add to tsc agenda (#17084) (Nicholas C. Zakas)970ef1c
docs: Update triage board location (Nicholas C. Zakas)6d8bffd
docs: Update README (GitHub Actions Bot)Chores
60a6f26
chore: upgrade @eslint/js@8.39.0 (#17102) (Milos Djermanovic)d5ba5c0
chore: package.json update for @eslint/js release (ESLint Jenkins)f57eff2
ci: run tests on Node.js v20 (#17093) (Nitin Kumar)9d1b8fc
perf: Binary search in token storeutils.search
(#17066) (Francesco Trotta)07a4435
chore: Add request for minimal repro to bug report (#17081) (Nicholas C. Zakas)eac4943
refactor: remove unnecessary use ofSourceCode#getAncestors
in rules (#17075) (Milos Djermanovic)0a7b60a
chore: update description ofSourceCode#getDeclaredVariables
(#17072) (Milos Djermanovic)6e2df71
chore: remove unnecessary references to the LICENSE file (#17071) (Milos Djermanovic)v8.38.0
Compare Source
Features
a1d561d
feat: Move getDeclaredVariables and getAncestors to SourceCode (#17059) (Nicholas C. Zakas)Bug Fixes
1c1ece2
fix: do not report onRegExp(...args)
inrequire-unicode-regexp
(#17037) (Francesco Trotta)Documentation
7162d34
docs: Mention new config system is complete (#17068) (Nicholas C. Zakas)0fd6bb2
docs: Update README (GitHub Actions Bot)c83531c
docs: Update/remove external links, eg. point toeslint-community
(#17061) (Pelle Wessman)a3aa6f5
docs: Clarifyno-div-regex
rule docs (#17051) (Francesco Trotta)b0f11cf
docs: Update README (GitHub Actions Bot)da8d52a
docs: Update the second object instance for the "no-new" rule (#17020) (Ahmadou Waly NDIAYE)518130a
docs: switch language based on current path (#16687) (Percy Ma)24206c4
docs: Update README (GitHub Actions Bot)Chores
59ed060
chore: upgrade @eslint/js@8.38.0 (#17069) (Milos Djermanovic)88c0898
chore: package.json update for @eslint/js release (ESLint Jenkins)cf682d2
refactor: simplify new-parens rule schema (#17060) (MHO)0dde022
ci: bump actions/add-to-project from 0.4.1 to 0.5.0 (#17055) (dependabot[bot])v8.37.0
Compare Source
Features
b6ab8b2
feat:require-unicode-regexp
add suggestions (#17007) (Josh Goldberg)10022b1
feat: Copy getScope() to SourceCode (#17004) (Nicholas C. Zakas)1665c02
feat: Use plugin metadata for flat config serialization (#16992) (Nicholas C. Zakas)b3634f6
feat: docs license (#17010) (Samuel Roldan)892e6e5
feat: languageOptions.parser must be an object. (#16985) (Nicholas C. Zakas)Bug Fixes
619f3fd
fix: correctly handlenull
default config inRuleTester
(#17023) (Brad Zacher)1fbf118
fix:getFirstToken
/getLastToken
on comment-only node (#16889) (Francesco Trotta)129e252
fix: Fix typo inlogical-assignment-operators
rule description (#17000) (Francesco Trotta)Documentation
75339df
docs: fix typos and missing info in id-match docs (#17029) (Ed Lucas)ec2d830
docs: Fix typos in thesemi
rule docs (#17012) (Andrii Lundiak)e39f28d
docs: add back to top button (#16979) (Tanuj Kanti)721c717
docs: Custom Processors cleanup and expansion (#16838) (Ben Perlmutter)d049f97
docs: 'How ESLint is Maintained' page (#16961) (Ben Perlmutter)5251a92
docs: Describe guard options for guard-for-in (#16986) (alope107)6157d81
docs: Add example to guard-for-in docs. (#16983) (alope107)fd47998
docs: updateArray.prototype.toSorted
specification link (#16982) (Milos Djermanovic)3e1cf6b
docs: Copy edits on Maintain ESLint docs (#16939) (Ben Perlmutter)Chores
c67f299
chore: upgrade @eslint/js@8.37.0 (#17033) (Milos Djermanovic)ee9ddbd
chore: package.json update for @eslint/js release (ESLint Jenkins)dddb475
chore: upgrade @eslint/eslintrc@2.0.2 (#17032) (Milos Djermanovic)522431e
chore: upgrade espree@9.5.1 (#17031) (Milos Djermanovic)f5f9a88
chore: upgrade eslint-visitor-keys@3.4.0 (#17030) (Milos Djermanovic)4dd8d52
ci: bump actions/stale from 7 to 8 (#17026) (dependabot[bot])ad9dd6a
chore: remove duplicate scss, (#17005) (Strek)ada6a3e
ci: unpin Node 19 (#16993) (Milos Djermanovic)c3da975
chore: Remove triage label from template (#16990) (Nicholas C. Zakas)69bc0e2
ci: pin Node 19 to 19.7.0 (#16987) (Milos Djermanovic)v8.36.0
Compare Source
Features
c89a485
feat: AddcheckJSDoc
option to multiline-comment-style (#16807) (Laurent Cozic)f5f5e11
feat: Serialize parsers/processors in flat config (#16944) (Nicholas C. Zakas)4799297
feat: use @eslint-community dependencies (#16784) (Michaël De Boey)Bug Fixes
92c1943
fix: correctly iterate files matched by glob patterns (#16831) (Nitin Kumar)Documentation
b98fdd4
docs: Update README (GitHub Actions Bot)caf08ce
docs: fix estree link in custom formatters docs (#16967) (Milos Djermanovic)3398431
docs: Custom Parsers cleanup/expansion (#16887) (Ben Perlmutter)19d3531
docs: Update README (GitHub Actions Bot)b09a512
docs: detect and fix broken links (#16837) (Nitin Kumar)Chores
602b111
chore: upgrade @eslint/js@8.36.0 (#16978) (Milos Djermanovic)43c2345
chore: package.json update for @eslint/js release (ESLint Jenkins)00afb84
chore: upgrade @eslint/eslintrc@2.0.1 (#16977) (Milos Djermanovic)698c5aa
chore: upgrade espree@9.5.0 (#16976) (Milos Djermanovic)75acdd2
chore: lint more js files in docs (#16964) (Milos Djermanovic)89d9844
ci: bump actions/add-to-project from 0.4.0 to 0.4.1 (#16943) (dependabot[bot])pnpm/pnpm
v8.6.0
Compare Source
Minor Changes
Some settings influence the structure of the lockfile, so we cannot reuse the lockfile if those settings change. As a result, we need to store such settings in the lockfile. This way we will know with which settings the lockfile has been created.
A new field will now be present in the lockfile:
settings
. It will store the values of two settings:autoInstallPeers
andexcludeLinksFromLockfile
. If someone tries to perform afrozen-lockfile
installation and their active settings don't match the ones in the lockfile, then an error message will be thrown.The lockfile format version is bumped from v6.0 to v6.1.
Related PR: #6557
Related issue: #6312
A new setting,
exclude-links-from-lockfile
, is now supported. When enabled, specifiers of local linked dependencies won't be duplicated in the lockfile.This setting was primarily added for use by Bit CLI, which links core aspects to
node_modules
from external directories. As such, the locations may vary across different machines, resulting in the generation of lockfiles with differing locations.Patch Changes
npm:foo@1.0.0
becomesnpm:foo@1.1.0
.workspace:
protocol is not found in the workspace #4477.pnpm rebuild
should not fail whennode-linker
is set tohoisted
and there are skipped optional dependencies #6553.Our Gold Sponsors
Our Silver Sponsors
prettier/prettier
v2.8.8
Compare Source
This version is a republished version of v2.8.7.
A bad version was accidentally published and it can't be unpublished, apologies for the churn.
v2.8.7
Compare Source
diff
Allow multiple decorators on same getter/setter (#14584 by @fisker)
v2.8.6
Compare Source
diff
Allow decorators on private members and class expressions (#14548 by @fisker)
v2.8.5
Compare Source
diff
Support TypeScript 5.0 (#14391 by @fisker, #13819 by @fisker, @sosukesuzuki)
TypeScript 5.0 introduces two new syntactic features:
const
modifiers for type parametersexport type *
declarationsAdd missing parentheses for decorator (#14393 by @fisker)
Add parentheses for
TypeofTypeAnnotation
to improve readability (#14458 by @fisker)Support
max_line_length=off
when parsing.editorconfig
(#14516 by @josephfrazier)If an .editorconfig file is in your project and it sets
max_line_length=off
for the file you're formatting,it will be interpreted as a
printWidth
ofInfinity
rather than being ignored(which previously resulted in the default
printWidth
of 80 being applied, if not overridden by Prettier-specific configuration).Microsoft/TypeScript
v5.0.4
: TypeScript 5.0.4Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
v5.0.3
: TypeScript 5.0.3Compare Source
For release notes, check out the release announcement.
For the complete list of fixed issues, check out the
Downloads are available on:
vitest-dev/vitest
v0.31.1
Compare Source
🚀 Features
r
should rerun current pattern tests - by @Dunqing and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3305 (69d27)🐞 Bug Fixes
cwd
from test name filter - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3353 (324a9)toMatchInlineSnapshot
fails when file path includes parentheses - by @pacexy in https://github.com/vitest-dev/vitest/issues/3370 and https://github.com/vitest-dev/vitest/issues/3371 (dcf13)View changes on GitHub
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.