Analyzer
Bug fixes
-
The
noSuperWithoutExtends
rule now allows for callingsuper()
in derived class constructors of class expressions (#2108). Contributed by @Sec-ant -
Fix discrepancies on file source detection. Allow module syntax in
.cts
files (#2114). Contributed by @Sec-ant
CLI
Bug fixes
-
Fixes #2131, where folders were incorrectly ignored when running the command
check
. Now folders are correctly ignored based on their command. Contributed by @ematipico -
Smoother handling of
"endOfLine": "auto"
in prettier migration: falling back to"lf"
(#2145). Contributed by @eMerzh
Configuration
Bug fixes
- Fix enabled rules calculation. The precendence of individual rules,
all
andrecommend
presets in top-level and group-level configs is now correctly respected. More details can be seen in (#2072) (#2028). Contributed by @Sec-ant
Formatter
Bug fixes
- Fix #1661. Now nested conditionals are aligned with Prettier's logic, and won't contain mixed spaces and tabs. Contributed by @ematipico
JavaScript APIs
Enhancements
- Support applying lint fixes when calling the
lintContent
method of theBiome
class (#1956). Contributed by @mnahkies
Linter
Bug fixes
-
Rule
noUndeclaredDependencies
now also validatespeerDependencies
andoptionalDependencies
(#2122). Contributed by @Sec-ant -
Rule
noUndeclaredDependencies
won't checkdeclare module
statements anymore (#2123). Contributed by @Sec-ant -
Fix #1925. The fix for
useOptionalChain
would sometimes suggest an incorrect fix that discarded optional chaining operators on the left-hand side of logical expressions. These are now preserved. Contributed by @arendjr -
Rule
noUndeclaredVariables
now also checks for worker globals (#2121). Contributed by @Sec-ant
LSP
Bug fixes
-
Correctly parse
.jsonc
files. Contributed by @Sec-ant -
Correctly resolve external
extends
configs. Contributed by @Sec-ant
What's Changed
Other changes
- refactor: add biome_string_case crate by @Conaclos in #2058
- chore: mark
pnpm-lock.yaml
as a generated file by @SuperchupuDev in #2060 - refactor: make biome_string_case publishable by @Conaclos in #2066
- refactor: allow more rust lint rules by @Conaclos in #2064
- doc: add docs removed in #1564 by @Conaclos in #2067
- docs: Update links in JA Getting Started to refer to JA pages by @Naoto-Ida in #2068
- fix(tests_infra):
TIME_REGEX
for snapshot redaction by @Sec-ant in #2073 - fix(
useJsxKeyInIterable
): unwrap parenthesized expressions by @Sec-ant in #2076 - docs: Update Astro docs by @hyperNURb in #2082
- chore: use knope for generation of changelogs (for crates) by @ematipico in #2065
- chore(css_parser): inline blocks name by @denbezrukov in #2083
- feat(biome_js_analyze): noDuplicateElesIf by @mdm317 in #2040
- ci: use action to free-up space in main by @ematipico in #2086
- ci: use action to free-up space in main v2 by @ematipico in #2087
- chore: add two more options for guidance by @ematipico in #2088
- ci: attempt to reduce disk size by @ematipico in #2091
- chore: improve pnpm usage by @SuperchupuDev in #2069
- ci: refactor disk freeing to action by @nhedger in #2093
- ci: use disk freeing action for
runtime.yml
by @SuperchupuDev in #2095 - ci(pull_request_js): dedupe cache step and use disk freeing by @SuperchupuDev in #2097
- chore: fix
@biomejs/biome
inconsistency inpackage.json
by @SuperchupuDev in #2094 - chore(website): use new discord theme color by @SuperchupuDev in #2096
- chore: run biome on more than a few directories by @SuperchupuDev in #2099
- feat(css_formatting): add css formatting for the playground by @denbezrukov in #2098
- Update usage commands for Yarn and PNPM by @arendjr in #2101
- docs: parser implementation guide by @ematipico in #2089
- fix(js_semantic): add TS_QUALIFIED type for reference by @fireairforce in #2092
- fix: modify justfile related to lint rules by @togami2864 in #2102
- feat(css_formatter): CssFontFeatureValuesAtRule formatting by @denbezrukov in #2107
- feat(css_formatter): CssDocumentAtRule formatting by @denbezrukov in #2106
- Update wording in GOVERNANCE.md by @arendjr in #2119
- ci: add renovate to monitor dependencies by @ematipico in #2125
- ci: fix
renovate.json
typo by @SuperchupuDev in #2126 - ci: format
renovate.json
by @Sec-ant in #2129 - refactor: generic lexer by @ematipico in #2124
- feat(biome_css_analyzer): initilize css linter infra by @togami2864 in #2111
- chore: remove duplicated code by @ah-yu in #2130
- chore: use github link instead for
CONTRIBUTING.md
by @ematipico in #2132 - chore(doc): set the CSS linter status to 'In Progress' by @togami2864 in #2133
- refactor: simplify analyzers by @ematipico in #2135
- chore: update maintainers by @Sec-ant in #2142
- docs: fix broken links on CONTRIBUTING.md by @unvalley in #2143
- docs(lint/style/useFilenamingConvention): fix example options by @zauni in #2144
- refactor: json file source by @Sec-ant in #2150
- chore: update rust to 1.77.0 by @Sec-ant in #2154
- Chore: remove unused dependencies by @Kenzo-Wada in #2153
- chore(ci): free disk space by @Sec-ant in #2156
- chore(ci): set git longpaths system-wide by @Sec-ant in #2157
- chore(ci): free disk space, again by @Sec-ant in #2158
New Contributors
- @Naoto-Ida made their first contribution in #2068
- @hyperNURb made their first contribution in #2082
- @mnahkies made their first contribution in #1956
- @zauni made their first contribution in #2144
- @eMerzh made their first contribution in #2145
Full Changelog: cli/v1.6.1...js-api/v0.5.0