refactor: update all
This MR contains the following updates:
Release Notes
tj/commander.js (commander)
v10.0.1
Added
Fixed
- remove unused
Option.optionFlagsproperty from TypeScript definition ([#1844])
Changed
- assume boolean option intended if caller passes string instead of hash to
.implies()([#1854])
eslint/eslint (eslint)
v8.45.0
Features
-
cdd063cfeat: Expose LegacyESLint in unsupported API (#17341) (Nicholas C. Zakas) -
d34abe5feat: fix indent rule for else-if (#17318) (Milos Djermanovic)
Bug Fixes
-
b79b6fbfix: Fix suggestion message inno-useless-escape(#17339) (Francesco Trotta) -
c667055fix: provide uniquefixandfix.rangeobjects in lint messages (#17332) (Milos Djermanovic)
Documentation
-
89f3225docs: add playground links to correct and incorrect code blocks (#17306) (Josh Goldberg✨ ) -
f8892b5docs: Expand rule option schema docs (#17198) (Matt Wilkinson) -
8bcbf11docs: Config Migration Guide (#17230) (Ben Perlmutter) -
bb30908docs: Update README (GitHub Actions Bot) -
84d243bdocs: Update README (GitHub Actions Bot) -
b762632docs: Update README (GitHub Actions Bot) -
138c096docs: add more prefer-destructuring examples with array destructuring (#17330) (Milos Djermanovic) -
1fc50a8docs:max-lenrulecodeandtabWidthas positional arguments (#17331) (Jesús Leganés-Combarro)
Chores
-
68f63d7chore: package.json update for @eslint/js release (ESLint Jenkins) -
5ca9b4dchore: update eslint-config-eslint exports (#17336) (Milos Djermanovic) -
7bf2e86chore: remove unused dependencies (#17352) (Percy Ma) -
c6f8cd0chore: RemovedefaultIgnoresfrom FlatESLint private members (#17349) (Francesco Trotta) -
0052374chore: move jsdoc settings to eslint-config-eslint (#17338) (唯然)
v8.44.0
Features
-
1766771feat: addes2023andes2024environments (#17328) (Milos Djermanovic) -
4c50400feat: addecmaVersion: 2024, regexpvflag parsing (#17324) (Milos Djermanovic) -
4d411e4feat: add ternaryOperandBinaryExpressions option to no-extra-parens rule (#17270) (Percy Ma) -
c8b1f4dfeat: MoveparserServicestoSourceCode(#17311) (Milos Djermanovic) -
ef6e24efeat: treat unknown nodes as having the lowest precedence (#17302) (Brad Zacher) -
1866e1dfeat: allow flat config files to export a Promise (#17301) (Milos Djermanovic)
Bug Fixes
-
a36bcb6fix: no-unused-vars false positive with logical assignment operators (#17320) (Gweesin Chan) -
7620b89fix: Removeno-unused-labelsautofix before potential directives (#17314) (Francesco Trotta) -
391ed38fix: Removeno-extra-semiautofix before potential directives (#17297) (Francesco Trotta)
Documentation
-
526e911docs: resubmit pr 17115 doc changes (#17291) (唯然) -
e1314bfdocs: Integration section and tutorial (#17132) (Ben Perlmutter) -
19a8c5ddocs: Update README (GitHub Actions Bot)
Chores
-
49e46edchore: upgrade @eslint/js@8.44.0 (#17329) (Milos Djermanovic) -
a1cb642chore: package.json update for @eslint/js release (ESLint Jenkins) -
840a264test: More test cases for no-case-declarations (#17315) (Elian Cordoba) -
e6e74f9chore: package.json update for eslint-config-eslint release (ESLint Jenkins) -
eb3d794chore: upgrade semver@7.5.3 (#17323) (Ziyad El Abid) -
cf88439chore: upgrade optionator@0.9.3 (#17319) (Milos Djermanovic) -
9718a97refactor: remove unnecessary code inflat-eslint.js(#17308) (Milos Djermanovic) -
f82e56eperf: various performance improvements (#17135) (moonlightaria) -
da81e66chore: update eslint-plugin-jsdoc to 46.2.5 (#17245) (唯然) -
b991640chore: switch eslint-config-eslint to the flat format (#17247) (唯然)
v8.43.0
Features
-
14581fffeat: directive prologue detection and autofix condition inquotes(#17284) (Francesco Trotta) -
e50fac3feat: add declaration loc to message in block-scoped-var (#17252) (Milos Djermanovic) -
1b7faf0feat: addskipJSXTextoption tono-irregular-whitespacerule (#17182) (Azat S)
Bug Fixes
-
5338b56fix: normalizecwdpassed toESLint/FlatESLintconstructor (#17277) (Milos Djermanovic) -
54383e6fix: Removeno-extra-parensautofix for potential directives (#17022) (Francesco Trotta)
Documentation
-
8b855eadocs: resubmit pr17061 doc changes (#17292) (唯然) -
372722edocs: resubmit pr17012 doc changes (#17293) (唯然) -
67e7af3docs: resubmit custom-rules doc changes (#17294) (唯然) -
9e3d77cdocs: Resubmit Fix formatting in Custom Rules docs (#17281) (Milos Djermanovic) -
503647adocs: Resubmit markVariableAsUsed docs (#17280) (Nicholas C. Zakas) -
e0cf0d8docs: Custom rule & plugin tutorial (#17024) (Ben Perlmutter) -
8e51ea9docs: resubmitno-newrule documentation (#17264) (Nitin Kumar) -
1b217f8docs: resubmitCustom Processorsdocumentation (#17265) (Nitin Kumar) -
428fc76docs: resubmitCreate Pluginsdocumentation (#17268) (Nitin Kumar) -
bdca88cdocs: resubmitConfiguration Filesdocumentation (#17267) (Nitin Kumar) -
f5c01f2docs: resubmitManage Issuesdocumentation (#17266) (Nitin Kumar) -
b199295docs: Resubmit custom rules update docs (#17273) (Ben Perlmutter) -
0e9980cdocs: add newomitLastInOneLineClassBodyoption to thesemirule (#17263) (Nitin Kumar) -
cb2560fdocs: Resubmit getScope/getDeclaredVariables docs (#17262) (Nicholas C. Zakas) -
85d2b30docs: explain how to include predefined globals (#17261) (Marcus Wyatt) -
de4d3c1docs: update flat config default ignore patterns (#17258) (Milos Djermanovic) -
3912f3adocs: Improveignoresdocumentation (#17239) (Francesco Trotta) -
35e11d3docs: fix typos and missing info (#17257) (Ed Lucas) -
0bc257cdocs: Clarifyno-div-regexrule docs (#17051) (#17255) (Francesco Trotta) -
788d836docs: add references to MIT License (#17248) (Milos Djermanovic) -
58aab6bdocs: Update README (GitHub Actions Bot) -
3ef5814docs: Revert all changes after the license change (#17227) (Milos Djermanovic) -
03fc4aadocs: Update README (GitHub Actions Bot)
Chores
-
78350f6chore: upgrade @eslint/js@8.43.0 (#17295) (Milos Djermanovic) -
62bf759chore: package.json update for @eslint/js release (ESLint Jenkins) -
e0a2448chore: docs package.license ISC => MIT (#17254) (唯然) -
6a0196cchore: use eslint-plugin-eslint-plugin flat configs (#17204) (Milos Djermanovic)
v8.42.0
Features
Bug Fixes
-
a589636fix: Config withignoresand withoutfilesshould not always apply (#17181) (Milos Djermanovic) -
c4fad17fix: Correct ignore message for "node_modules" subfolders (#17217) (Francesco Trotta)
Documentation
Chores
-
6ca5b7cchore: upgrade @eslint/js@8.42.0 (#17236) (Milos Djermanovic) -
67fc5e7chore: package.json update for @eslint/js release (ESLint Jenkins) -
0892412refactor: removeIdentifierlistener in no-irregular-whitespace (#17235) (Milos Djermanovic) -
f67d298test: AddFlatESLinttests with missing config files (#17164) (Milos Djermanovic) -
5b68d51chore: Fixfixedsizeattribute in code path analysis DOT debug output (#17202) (Milos Djermanovic) -
37432f2chore: update descriptions in key-spacing tests (#17195) (Milos Djermanovic)
v8.41.0
Features
-
880a431feat: change default ignore pattern to**/node_modules/in flat config (#17184) (Milos Djermanovic) -
8bf5505feat: exposeshouldUseFlatConfig(#17169) (Connor Prussin)
Bug Fixes
-
4f5440dfix: incorrect warning message for ignored dotfiles (#17196) (Milos Djermanovic) -
94da96cfix: unifyLintMessagetype (#17076) (Brandon Mills) -
0c415cdfix: validateignorePatternsconstructor option inFlatESLintclass (#17139) (Milos Djermanovic) -
9682d66fix: switchgrapheme-splittertographemer(#17160) (fisker Cheung)
Documentation
-
7709b14docs: Update README (GitHub Actions Bot) -
7f183e0docs: Update triage process description (#17157) (Nicholas C. Zakas) -
b68346bdocs: fix license to reflect relicensing of jshint (#17165) (Stefan Bischof)
Chores
-
f43216achore: upgrade @eslint/js@8.41.0 (#17200) (Milos Djermanovic) -
95c3007chore: package.json update for @eslint/js release (ESLint Jenkins) -
ddc5291chore: don't use deprecatedcontextmethods inast-utilstests (#17194) (Milos Djermanovic) -
b1516dbchore: Fix return type offindFlatConfigFile(#17161) (Milos Djermanovic) -
918b0fdperf: Store indent descriptors in a plain array (#17148) (Francesco Trotta) -
4caa344refactor: locateConfigFileToUse returns an Error object (#17159) (唯然)
v8.40.0
Features
-
5db7808feat: improve flat config errors for invalid rule options and severities (#17140) (Josh Goldberg✨ ) -
f5574dcfeat: Add findConfigFile() method to FlatESLint (#17142) (Nicholas C. Zakas) -
e52b98bfeat: addsourceCodeproperty to the rule context (#17107) (Nitin Kumar) -
1468f5bfeat: addphysicalFilenameproperty to the rule context (#17111) (Nitin Kumar) -
0df4d4ffeat: addcwdto rule context (#17106) (Nitin Kumar) -
52018f2feat: addfilenameproperty to the rule context (#17108) (Nitin Kumar) -
559ff4efeat: add newomitLastInOneLineClassBodyoption to thesemirule (#17105) (Nitin Kumar)
Bug Fixes
Documentation
-
e980bf3docs: Update README (GitHub Actions Bot) -
e92a6fcdocs: Update README (GitHub Actions Bot) -
af5fe64docs: Fix custom rule schema docs (#17115) (Adam Jones) -
4a352a9docs: explain how to include predefined globals (#17114) (Marcus Wyatt) -
5ea15d9docs: add mastodon link in readme (#17110) (唯然)
Chores
-
4053004chore: upgrade @eslint/js@8.40.0 (#17156) (Milos Djermanovic) -
50fed1dchore: package.json update for @eslint/js release (ESLint Jenkins) -
4c7a170chore: upgrade @eslint/eslintrc@2.0.3 (#17155) (Milos Djermanovic) -
e80b7ccchore: upgrade espree@9.5.2 (#17154) (Milos Djermanovic) -
ce3ac91chore: upgrade eslint-visitor-keys@3.4.1 (#17153) (Milos Djermanovic) -
9094d79chore: addlatest/tometa.docs.urlin all core rules (#17136) (Milos Djermanovic) -
d85efadperf: don't usegrapheme-splitteron ASCII strings in key-spacing rule (#17122) (Milos Djermanovic)
v8.39.0
Features
Documentation
-
6987dc5docs: Fix formatting in Custom Rules docs (#17097) (Milos Djermanovic) -
4ee92e5docs: Update README (GitHub Actions Bot) -
d8e9887docs: Custom Rules cleanup/expansion (#16906) (Ben Perlmutter) -
1fea279docs: Clarify how to add to tsc agenda (#17084) (Nicholas C. Zakas) -
970ef1cdocs: Update triage board location (Nicholas C. Zakas) -
6d8bffddocs: Update README (GitHub Actions Bot)
Chores
-
60a6f26chore: upgrade @eslint/js@8.39.0 (#17102) (Milos Djermanovic) -
d5ba5c0chore: package.json update for @eslint/js release (ESLint Jenkins) -
f57eff2ci: run tests on Node.js v20 (#17093) (Nitin Kumar) -
9d1b8fcperf: Binary search in token storeutils.search(#17066) (Francesco Trotta) -
07a4435chore: Add request for minimal repro to bug report (#17081) (Nicholas C. Zakas) -
eac4943refactor: remove unnecessary use ofSourceCode#getAncestorsin rules (#17075) (Milos Djermanovic) -
0a7b60achore: update description ofSourceCode#getDeclaredVariables(#17072) (Milos Djermanovic) -
6e2df71chore: remove unnecessary references to the LICENSE file (#17071) (Milos Djermanovic)
v8.38.0
Features
-
a1d561dfeat: Move getDeclaredVariables and getAncestors to SourceCode (#17059) (Nicholas C. Zakas)
Bug Fixes
-
1c1ece2fix: do not report onRegExp(...args)inrequire-unicode-regexp(#17037) (Francesco Trotta)
Documentation
-
7162d34docs: Mention new config system is complete (#17068) (Nicholas C. Zakas) -
0fd6bb2docs: Update README (GitHub Actions Bot) -
c83531cdocs: Update/remove external links, eg. point toeslint-community(#17061) (Pelle Wessman) -
a3aa6f5docs: Clarifyno-div-regexrule docs (#17051) (Francesco Trotta) -
b0f11cfdocs: Update README (GitHub Actions Bot) -
da8d52adocs: Update the second object instance for the "no-new" rule (#17020) (Ahmadou Waly NDIAYE) -
518130adocs: switch language based on current path (#16687) (Percy Ma) -
24206c4docs: Update README (GitHub Actions Bot)
Chores
-
59ed060chore: upgrade @eslint/js@8.38.0 (#17069) (Milos Djermanovic) -
88c0898chore: package.json update for @eslint/js release (ESLint Jenkins) -
cf682d2refactor: simplify new-parens rule schema (#17060) (MHO) -
0dde022ci: bump actions/add-to-project from 0.4.1 to 0.5.0 (#17055) (dependabot[bot])
v8.37.0
Features
-
b6ab8b2feat:require-unicode-regexpadd suggestions (#17007) (Josh Goldberg) -
10022b1feat: Copy getScope() to SourceCode (#17004) (Nicholas C. Zakas) -
1665c02feat: Use plugin metadata for flat config serialization (#16992) (Nicholas C. Zakas) -
b3634f6feat: docs license (#17010) (Samuel Roldan) -
892e6e5feat: languageOptions.parser must be an object. (#16985) (Nicholas C. Zakas)
Bug Fixes
-
619f3fdfix: correctly handlenulldefault config inRuleTester(#17023) (Brad Zacher) -
1fbf118fix:getFirstToken/getLastTokenon comment-only node (#16889) (Francesco Trotta) -
129e252fix: Fix typo inlogical-assignment-operatorsrule description (#17000) (Francesco Trotta)
Documentation
-
75339dfdocs: fix typos and missing info in id-match docs (#17029) (Ed Lucas) -
ec2d830docs: Fix typos in thesemirule docs (#17012) (Andrii Lundiak) -
e39f28ddocs: add back to top button (#16979) (Tanuj Kanti) -
721c717docs: Custom Processors cleanup and expansion (#16838) (Ben Perlmutter) -
d049f97docs: 'How ESLint is Maintained' page (#16961) (Ben Perlmutter) -
5251a92docs: Describe guard options for guard-for-in (#16986) (alope107) -
6157d81docs: Add example to guard-for-in docs. (#16983) (alope107) -
fd47998docs: updateArray.prototype.toSortedspecification link (#16982) (Milos Djermanovic) -
3e1cf6bdocs: Copy edits on Maintain ESLint docs (#16939) (Ben Perlmutter)
Chores
-
c67f299chore: upgrade @eslint/js@8.37.0 (#17033) (Milos Djermanovic) -
ee9ddbdchore: package.json update for @eslint/js release (ESLint Jenkins) -
dddb475chore: upgrade @eslint/eslintrc@2.0.2 (#17032) (Milos Djermanovic) -
522431echore: upgrade espree@9.5.1 (#17031) (Milos Djermanovic) -
f5f9a88chore: upgrade eslint-visitor-keys@3.4.0 (#17030) (Milos Djermanovic) -
4dd8d52ci: bump actions/stale from 7 to 8 (#17026) (dependabot[bot]) -
ad9dd6achore: remove duplicate scss, (#17005) (Strek) -
ada6a3eci: unpin Node 19 (#16993) (Milos Djermanovic) -
c3da975chore: Remove triage label from template (#16990) (Nicholas C. Zakas) -
69bc0e2ci: pin Node 19 to 19.7.0 (#16987) (Milos Djermanovic)
v8.36.0
Features
-
c89a485feat: AddcheckJSDocoption to multiline-comment-style (#16807) (Laurent Cozic) -
f5f5e11feat: Serialize parsers/processors in flat config (#16944) (Nicholas C. Zakas) -
4799297feat: use @eslint-community dependencies (#16784) (Michaël De Boey)
Bug Fixes
Documentation
-
b98fdd4docs: Update README (GitHub Actions Bot) -
caf08cedocs: fix estree link in custom formatters docs (#16967) (Milos Djermanovic) -
3398431docs: Custom Parsers cleanup/expansion (#16887) (Ben Perlmutter) -
19d3531docs: Update README (GitHub Actions Bot) -
b09a512docs: detect and fix broken links (#16837) (Nitin Kumar)
Chores
-
602b111chore: upgrade @eslint/js@8.36.0 (#16978) (Milos Djermanovic) -
43c2345chore: package.json update for @eslint/js release (ESLint Jenkins) -
00afb84chore: upgrade @eslint/eslintrc@2.0.1 (#16977) (Milos Djermanovic) -
698c5aachore: upgrade espree@9.5.0 (#16976) (Milos Djermanovic) -
75acdd2chore: lint more js files in docs (#16964) (Milos Djermanovic) -
89d9844ci: bump actions/add-to-project from 0.4.0 to 0.4.1 (#16943) (dependabot[bot])
v8.35.0
Features
-
8e34a04feat: addafterHashbangCommentoption tolines-around-commentrule (#16920) (SUZUKI Sosuke) -
c8c0c71feat: Move all and recommended configs into package. (#16844) (Nicholas C. Zakas) -
71f6f0dfeat: report more cases with??in no-constant-binary-expression (#16826) (Daiki Nishikawa)
Bug Fixes
Documentation
-
f9f195edocs: Plugin docs cleanup & expansion (#16862) (Ben Perlmutter) -
df809fddocs: Custom Formatters page cleanup/expansion (#16886) (Ben Perlmutter) -
0700d1bdocs: Add PostCSS/Autoprefixer/CSSNano (#16502) (Nick Schonning) -
7b9e9bfdocs: support unicode anchors (#16782) (Percy Ma) -
5fbc0bfdocs: Update README (GitHub Actions Bot) -
67865a0docs: Remove mention of mailing list (#16869) (Amaresh S M) -
43af24adocs: Add explanation of when to use 'warn' severity (#16882) (Nicholas C. Zakas) -
ed2999bdocs: Shareable configs page edits and expansion (#16824) (Ben Perlmutter) -
2780635docs: fix typos (#16884) (Lioness100) -
5bdaae2docs: Ways to Extend ESLint page (#16861) (Ben Perlmutter)
Chores
-
cdcbe12chore: upgrade @eslint/js@8.35.0 (#16935) (Brandon Mills) -
c954c34chore: package.json update for @eslint/js release (ESLint Jenkins) -
5a517dachore: package.json update for @eslint/js release (ESLint Jenkins) -
9f10926chore: upgrade @eslint/eslintrc@2.0.0 (#16928) (Milos Djermanovic) -
da728faci: use LTS node version in workflows (#16907) (Nitin Kumar) -
c57b4f3perf: upgrade to esquery@1.4.2 (#16901) (Milos Djermanovic) -
9122f07chore: Update stale bot settings (#16870) (Nicholas C. Zakas)
v8.34.0
Features
Bug Fixes
Documentation
-
f0a9883docs: split rules documentation (#16797) (Ben Perlmutter) -
67aa37bdocs: fix typo in command-line-interface.md (#16871) (Kevin Rouchut) -
337f7eddocs: fix width of language input (#16849) (Tanuj Kanti) -
71349a1docs: Configure a Parser page (#16803) (Ben Perlmutter) -
de7e925docs: remove extra line numbers in example (#16848) (jonz94) -
ad38d77docs: Update README (GitHub Actions Bot)
Chores
prettier/eslint-config-prettier (eslint-config-prettier)
v8.8.0
- Added: [@typescript-eslint/lines-around-comment]. Thanks to @ttionya!
v8.7.0
- Added: [@typescript-eslint/block-spacing]. Thanks to @ttionya!
- Added: [@typescript-eslint/key-spacing]. Thanks to @ttionya!
prettier/prettier (prettier)
v2.8.8
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
Allow multiple decorators on same getter/setter (#14584 by @fisker)
// Input
class A {
@​decorator()
get foo () {}
@​decorator()
set foo (value) {}
}
// Prettier 2.8.6
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
3 | get foo () {}
4 |
> 5 | @​decorator()
| ^^^^^^^^^^^^
6 | set foo (value) {}
7 | }
// Prettier 2.8.7
class A {
@​decorator()
get foo() {}
@​decorator()
set foo(value) {}
}
v2.8.6
Allow decorators on private members and class expressions (#14548 by @fisker)
// Input
class A {
@​decorator()
#privateMethod () {}
}
// Prettier 2.8.5
SyntaxError: Decorators are not valid here. (2:3)
1 | class A {
> 2 | @​decorator()
| ^^^^^^^^^^^^
3 | #privateMethod () {}
4 | }
// Prettier 2.8.6
class A {
@​decorator()
#privateMethod() {}
}
v2.8.5
Support TypeScript 5.0 (#14391 by @fisker, #13819 by @fisker, @sosukesuzuki)
TypeScript 5.0 introduces two new syntactic features:
-
constmodifiers for type parameters -
export type *declarations
Add missing parentheses for decorator (#14393 by @fisker)
// Input
class Person {
@​(myDecoratorArray[0])
greet() {}
}
// Prettier 2.8.4
class Person {
@​myDecoratorArray[0]
greet() {}
}
// Prettier 2.8.5
class Person {
@​(myDecoratorArray[0])
greet() {}
}
Add parentheses for TypeofTypeAnnotation to improve readability (#14458 by @fisker)
// Input
type A = (typeof node.children)[];
// Prettier 2.8.4
type A = typeof node.children[];
// Prettier 2.8.5
type A = (typeof node.children)[];
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 of Infinity rather than being ignored
(which previously resulted in the default printWidth of 80 being applied, if not overridden by Prettier-specific configuration).
<!-- Input -->
<div className='HelloWorld' title={`You are visitor number ${ num }`} onMouseOver={onMouseOver}/>
<!-- Prettier 2.8.4 -->
<div
className="HelloWorld"
title={`You are visitor number ${num}`}
onMouseOver={onMouseOver}
/>;
<!-- Prettier 2.8.5 -->
<div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver} />;
v2.8.4
Fix leading comments in mapped types with readonly (#13427 by @thorn0, @sosukesuzuki)
// Input
type Type = {
// comment
readonly [key in Foo];
};
// Prettier 2.8.3
type Type = {
readonly // comment
[key in Foo];
};
// Prettier 2.8.4
type Type = {
// comment
readonly [key in Foo];
};
Group params in opening block statements (#14067 by @jamescdavis)
This is a follow-up to #13930 to establish wrapping consistency between opening block statements and else blocks by grouping params in opening blocks. This causes params to break to a new line together and not be split across lines unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the same as opening blocks.
{{! Input }}
{{#block param param param param param param param param param param as |blockParam|}}
Hello
{{else block param param param param param param param param param param as |blockParam|}}
There
{{/block}}
{{! Prettier 2.8.3 }}
{{#block
param
param
param
param
param
param
param
param
param
param
as |blockParam|
}}
Hello
{{else block param
param
param
param
param
param
param
param
param
param}}
There
{{/block}}
{{! Prettier 2.8.4 }}
{{#block
param param param param param param param param param param
as |blockParam|
}}
Hello
{{else block
param param param param param param param param param param
as |blockParam|
}}
There
{{/block}}
Ignore files in .sl/ (#14206 by @bolinfest)
In Sapling SCM, .sl/ is the folder where it stores its state, analogous to .git/ in Git. It should be ignored in Prettier like the other SCM folders.
Recognize @satisfies in Closure-style type casts (#14262 by @fisker)
// Input
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
// Prettier 2.8.3
const a = /** @​satisfies {Record<string, string>} */ { hello: 1337 };
const b = /** @​type {Record<string, string>} */ ({ hello: 1337 });
// Prettier 2.8.4
const a = /** @​satisfies {Record<string, string>} */ ({hello: 1337});
const b = /** @​type {Record<string, string>} */ ({hello: 1337});
Fix parens in inferred function return types with extends (#14279 by @fisker)
// Input
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
// Prettier 2.8.3 (First format)
type Foo<T> = T extends (a) => a is infer R extends string ? R : never;
// Prettier 2.8.3 (Second format)
SyntaxError: '?' expected.
// Prettier 2.8.4
type Foo<T> = T extends ((a) => a is infer R extends string) ? R : never;
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.