Editors
- Fix #933. Some files are properly ignored in the LSP too. E.g.
package.json
,tsconfig.json
, etc.
Formatter
Bug fixes
-
Fix some accidental line breaks when printing array expressions within arrow functions and other long lines #917. Contributed by @faultyserver
-
Match Prettier's breaking strategy for
ArrowChain
layouts #934. Contributed by @faultyserver -
Fix double-printing of leading comments in arrow chain expressions #951. Contributed by @faultyserver
Linter
Bug fixes
- Fix #910, where the rule
noSvgWithoutTitle
should skip elements that havearia-hidden
attributes. Contributed by @vasucp1207
New features
- Add useForOf rule.
The rule recommends a for-of loop when the loop index is only used to read from an array that is being iterated.
Contributed by @victor-teles
Enhancement
-
Implements #924 and #920. noUselessElse now ignores
else
clauses that follow at least oneif
statement that doesn't break early. Contributed by @ConaclosFor example, the following code is no longer reported by the rule:
function f(x) { if (x < 0) { // this `if` doesn't break early. } else if (x > 0) { return x; } else { // This `else` block was previously reported as useless. } }
Bug fixes
-
Fix #918, useSimpleNumberKeys no longer repports false positive on comments. Contributed by @kalleep
-
Fix #953, noRedeclare no longer reports type parameters with the same name in different mapped types as redeclarations. Contributed by @Conaclos
-
Fix #608, useExhaustiveDependencies no longer repports missing dependencies for React hooks without dependency array. Contributed by @kalleep
Parser
What's Changed
Other changes
- ci(release_cli): remove homebrew bump by @nhedger in #983
- fix(website): add missing schema for 1.4.1 by @nhedger in #984
- fix(website): sponsor link in Japanese version by @hitode909 in #988
- docs(website): update import sorting doc by @yossydev in #989
- refactor(lintdoc): add support for autolink and references by @Conaclos in #993
- refactor: a11y rules code actions by @vasucp1207 in #970
- docs: fix typo and improve readability in complexity/noBannedTypes rule by @unvalley in #997
- chore: use
lints table
for workspace clippy settings by @chansuke in #980 - fix(formatter): add break to ts constructor parameters with modifiers by @TaKO8Ki in #994
- docs(lint/noUselessConstructor): document caveat by @Conaclos in #992
- chore(formatter): update Prettier compat reports by @Conaclos in #999
- chore(formatter): ignore experimental syntaxes in JSX for reports by @Conaclos in #1001
- chore: add netlify script by @ematipico in #998
- docs(website): add sublime text integration by @rchl in #1005
- feat(website): use Starlight syntax over quotes by @Yan-Thomas in #1006
- refactor(website): improve divergence notes by @Conaclos in #1002
- fix(js_formatter): Allow function expressions to group and break as call arguments by @faultyserver in #1003
- fix: routing bug fix by @Gumichocopengin8 in #1011
- doc(ja): translate 404 page into Japanese by @Gumichocopengin8 in #1010
- fix(lint/exhaustiveDeps): ignore TS typeof (#811) by @XiNiHa in #1014
- Update Twitter icon by @morinokami in #1017
- docs(website): remove duplicate section by @Conaclos in #1020
- docs(website): translate
Manual installation
in japanese by @chansuke in #1013 - docs: fix small typo in integrate-in-editor by @Spice-Z in #1026
- Fix code examples in prettier challenge blog post by @advaith1 in #1027
- fix(js_formatter): Only parenthesize default-export function cast expressions by @faultyserver in #1023
- chore: add
qt
alias for running quicktests by @faultyserver in #1029 - fix(js_formatter): don't hug blocks in case clauses with multiple statements by @faultyserver in #1035
- fix(js_formatter): Allow JSX expressions to nestle on arrow chains by @faultyserver in #1033
- doc(zh-CN): Add support for Simplified Chinese language by @dufu1991 in #990
- fix(lint/useExhaustiveDeps): handle hook source (#578) by @XiNiHa in #996
- feat(cli): Support GitHub Workflow Commands by @nikeee in #681
- feat(linter): noMisleadingCharacterClass by @togami2864 in #909
- Translate readme cn by @zhoujian-official in #1044
- add blog chinese translation links by @zhoujian-official in #1043
- fix broken readme link by @zhoujian-official in #1046
- feat(biome_js_analyze):
useShorthandFunctionType
by @emab in #670 - fix(js_formatter): remove conditional expanded content in
RemoveSoftLinesBuffer
by @faultyserver in #1032 - fix(js_formatter): Use fluid assignment layout when left side is breakable by @faultyserver in #1021
- feat(website): remove language select outside docs by @Yan-Thomas in #1048
- docs(website): add Formatter Option Philosophy page by @faultyserver in #1022
- docs: translate integrate-in-editor page into Japanese by @Spice-Z in #1025
New Contributors
- @hitode909 made their first contribution in #988
- @rchl made their first contribution in #1005
- @XiNiHa made their first contribution in #1014
- @morinokami made their first contribution in #1017
- @advaith1 made their first contribution in #1027
- @dufu1991 made their first contribution in #990
- @zhoujian-official made their first contribution in #1044
Full Changelog: cli/v1.4.1...cli/v1.4.1-nightly.bc772a3