@biomejs/wasm-web
Advanced tools
Changelog
1.7.1 (2024-04-22)
Add parentheses for the return expression that has leading multiline comments. #2504. Contributed by @ah-yu
Correctly format dangling comments of continue statements. #2555. Contributed by @ah-yu
Prevent comments from being eaten by the formatter #2578. Now the comments won't be eaten for the following code:
console.log((a,b/* comment */));
Contributed by @ah-yu
Correctly format nested union type to avoid reformatting issue. #2628. Contributed by @ah-yu
jsxRuntime
wasn't being respected by useImportType
rule (#2473).Contributed by @arendjrnoUselessFragments
was crashing the linter in some cases. Now cases like these are correctly handled:
callFunction(<>{bar}</>)
Contributed by @ematipiconoDuplicateJsonKeys
incorrectly computed the kes to highlight. Contributed by @ematipiconoMisplacedAssertions
now considers valid calling expect
inside waitFor
:
import { waitFor } from '@testing-library/react';
await waitFor(() => {
expect(111).toBe(222);
});
Contributed by @ematipicoChangelog
1.6.2 (2024-03-22)
The noSuperWithoutExtends
rule now allows for calling super()
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
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
all
and recommend
presets in top-level and group-level configs is now correctly respected. More details can be seen in (#2072) (#2028). Contributed by @Sec-antlintContent
method of the Biome
class (#1956). Contributed by @mnahkiesRule noUndeclaredDependencies
now also validates peerDependencies
and optionalDependencies
(#2122). Contributed by @Sec-ant
Rule noUndeclaredDependencies
won't check declare 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
Correctly parse .jsonc
files. Contributed by @Sec-ant
Correctly resolve external extends
configs. Contributed by @Sec-ant