Releases: oxc-project/oxc
oxlint v0.2.11
What's Changed
esling-plugin-import
is currently work in progress, so please don't turn on the --deny nursery
category.
- feat(linter): eslint-plugin-react void-dom-elements-no-children by @keita-hino in #2477
- feat(linter): implement @typescript-eslint/prefer-ts-expect-error by @alexttyip in #2435
- feat(linter): typescript-eslint: prefer-function-type by @zhangrunzhao in #2337
- fix(linter): Correct configuration file parsing for jsx-no-useless-fragment by @keita-hino in #2512
- fix(linter): Handle cases where createElement is an Identifier in is_create_element_call by @keita-hino in #2474
- fix(linter): fix import plugin hanging when ignored modules are imported by @Boshen in #2478
New Contributors
- @alexttyip made their first contribution in #2435
- @ArnaudBarre made their first contribution in #2506
Full Changelog: oxlint_v0.2.10...oxlint_v0.2.11
oxlint v0.2.10
What's Changed
Linter
- eslint: no-new-wrappers by @alakhpc in #2413
- eslint no-nonoctal-decimal-escape by @tudorbarbu in #2428
- implement from_configuration for jsx-a11y anchor-is-valid by @yossydev in #2425
- incorrect reference flag for MemberExpression assign by @Dunqing in #2433
CLI
Parser
VScode
New Contributors
- @andymac4182 made their first contribution in #2443
- @alakhpc made their first contribution in #2413
Full Changelog: oxlint_v0.2.9...oxlint_v0.2.10
oxlint v0.2.9
What's Changed
Linter
- unicorn: no-process-exit rule by @leaysgur in #2410
- typescript: ban-tslint-comment by @tudorbarbu in #2371
- jest: require-to-throw-message by @keita-hino in #2384
- jest: prefer-equality-matcher by @eryue0220 in #2358
- jest: detect jest file by default glob pattern by @mysteryven in #2408
- implement from_configuration for jsx-a11y autocomplete-valid by @tudorbarbu in #2404
Fixes
getter-return
false positive with TypeScript syntax by @Boshen in #2363- add missing typescript-eslint(_) prefix for some errors by @maurice in #2342
- jsx_a11y: Ensure plugin settings are used by @leaysgur in #2359
- jsx_a11y: Refactor jsx-a11y related utils and its usage by @leaysgur in #2389
Parser
- recover from
async x [newline] => x
by @Boshen in #2375 - fix incorrect parsing of class accessor property name by @Dunqing in #2386
- remove erroneous debug assertion by @overlookmotel in #2356
New Contributors
- @tudorbarbu made their first contribution in #2404
Full Changelog: oxlint_v0.2.8...oxlint_v0.2.9
oxlint v0.2.8
What's Changed
This release addresses a long-standing issue where the AST had memory leaks.
I can finally sleep well, knowing that my software is free of memory leaks 😀
Moreover, the parser is now 4% faster (again!), thanks to @overlookmotel's improvements.
New Rules
- Implement no_this_before_super with cfg by @TzviPM in #2254
- add typescript-eslint rule array-type by @luhc228 in #2292
Fixes
- add regression case for require-yield by @Boshen in #2326
- fix no_dupe_keys false postive on similar key names by @Boshen in #2291
Parser
- fix memory leak by implementing inlineable string for oxc_allocator by @Boshen in #2294
- fix BigInt memory leak by removing it by @Boshen in #2293
- perf: lexer replace
Chars
withSource
by @overlookmotel in #2288
Full Changelog: oxlint_v0.2.7...oxlint_v0.2.8
oxlint v0.2.7
What's Changed
This release fixes a critical bug where errors not being reported from finally
block of try/catch/finally.
New Rules
- implement @next/next/no-before-interactive-script-outsi… by @kaykdm in #2203
- implement @next/next/no-unwanted-polyfillio by @kaykdm in #2197
Features
- complete custom components setting by @hjiog in #2234
- ban
--fix
for variety files(vue, astro, svelte) by @mysteryven in #2189
Fixes
- Better report source line and col for multiline annotations by @maurice in #2242
- Better source line and column numbers by @maurice in #2213
- display target triple when error is thrown by @Boshen in #2259
- correct the span for irregular whitespaces by @Boshen in #2245
- jsx no undef match scope should check with ancestors by @xxleyi in #2027
Parser
- feat(ast): TypeScript definition for wasm target by @H-Plus-Time in #2158
- feat(ast): remove expression property from Function by @Dunqing in #2247
- feat(ast): remove generator property from ArrowFunction by @Dunqing in #2260
- feat(ast): remove serde skip for symbol_id and reference_id by @Dunqing in #2220
- perf(parser): faster offset calculation by @overlookmotel in #2215
- perf(parser): pad
Token
to 16 bytes by @overlookmotel in #2211
New Contributors
- @xxleyi made their first contribution in #2027
- @H-Plus-Time made their first contribution in #2158
- @TzviPM made their first contribution in #2210
Full Changelog: oxlint_v0.2.6...oxlint_v0.2.7
oxlint v0.2.6
What's Changed
VSCode
Linter
- support read eslint env from eslintrc by @fi3ework in #2130
- rename react_perf/jsx_no_new_function_as_props to jsx_no_new_function_as_prop by @leaysgur in #2175
Semantic
Cli
New Contributors
Full Changelog: oxlint_v0.2.5...oxlint_v0.2.6
oxlint v0.2.5
What's Changed
This release matched all linter rule names with their ESLint counterparts.
New Rules
- react: jsx-no-target-blank by @hjiog in #2149
- eslint: no-void by @eryue0220 in #2162
- jest: prefer-called-with by @eryue0220 in #2163
Fixes
New Contributors
Full Changelog: oxlint_v0.2.4...oxlint_v0.2.5
oxlint v0.2.4
oxlint v0.2.3
What's Changed
New eslint-plugin-react-perf
oxlint --react-perf-plugin
Differenciate linux gnu / musl binary targets
- linux-x64-gnu
- linux-arm64-gnu
- linux-x64-musl
- linux-arm64-musl
New Rules
- jest: no-restricted-matchers by @eryue0220 in #2090
- jest: no-restricted-jest-methods by @eryue0220 in #2091
- import: no-named-as-default by @XantreGodlike in #2109
- unicorn: promote no-new-array to correctness with better help message by @Boshen in #2123
Favor Array.from({ length: n })
and [onlyElement]
instead of ambiguous new Array(arg)
Improvements
- eslint config jsonc support by @Boshen in #2121
- support eslint config in nextjs eslint by @kaykdm in #2107
- complete img-redundant linter by @msdlisper in #2112
Fixes
- cli: disallow path pointing to parent directories by @Boshen in #2125
- fix panic in prefer-native-coercion-function by @camc314 in #2100
- allow
[...new Array(n)]
in no-useless-spread by @Boshen in #2124 - not use
new_inline
with flexible str by @mysteryven in #2106
New Contributors
Full Changelog: oxlint_v0.2.2...oxlint_v0.2.3
oxlint v0.2.2
What's Changed
- fix(parser): fix crash on TSTemplateLiteralType in function return position by @Boshen in #2089
- feat(linter): improve no_redeclare rule implementation by @Dunqing in #2084
- refactor(linter): perfect the scope linter by @msdlisper in #2092
- fix(linter): s/consistent-type-export/consistent-type-exports by @Boshen in #2065
- feat(linter): eslint-plugin-import no-named-as-default-member rule by @XantreGodlike in #2071
New Contributors
Full Changelog: oxlint_v0.2.1...oxlint_v0.2.2