Releases: oxc-project/oxc
oxlint v0.2.15
What's Changed
- feat(linter): default_param_last by @JoSeBu1 in #2756
- feat(linter): eslint-plugin-jest/no-untyped-mock-factory by @eryue0220 in #2807
- feat(linter): eslint-plugin-jest/prefer-comparison-matcher by @eryue0220 in #2806
- feat(linter): eslint-plugin-react checked-requires-onchange-or-readonly by @keita-hino in #2754
- feat(linter): eslint/no-iterator by @JoSeBu1 in #2758
- feat(linter): fallback to the default tsconfig path by @Dunqing in #2842
- feat(linter): no_script_url by @JoSeBu1 in #2761
- feat(linter/import) check deep namespace in namespace rule by @Dunqing in #2805
- feat(linter/import) check module import in no_duplicates by @Dunqing in #2771
- feat(linter/import) check type import in no_duplicates by @Dunqing in #2777
- feat(linter/import) support allow_computed option in namespace by @Dunqing in #2840
- feat(linter/import) support check re-export in named by @Dunqing in #2769
- feat(linter/import): ignore type-only imports and exports in no_unresolved by @Dunqing in #2849
- fix(linter/import): false positive for indirect export in namespace by @Dunqing in #2862
- fix(linter/import): ignore export declaration in no-duplicates by @Dunqing in #2863
- fix(linter/max-lines): only report codes that exceed the line limit by @mysteryven in #2778
- fix(parser): add support for empty module declaration by @rzvxa in #2834
New Contributors
Full Changelog: oxlint_v0.2.14...oxlint_v0.2.15
oxlint v0.2.14
What's Changed
- feat(linter) eslint: no-useless-rename by @camc314 in #2648
- feat(linter): Add settings.jsdoc by @leaysgur in #2706
- feat(linter): add new property for
parse_jest_fn
by @eryue0220 in #2715 - feat(linter): eslint-plugin-jest rule
prefer-spy-on
by @eryue0220 in #2666 - feat(linter): eslint-plugin-jest:
prefer-expect-resolves
by @eryue0220 in #2703 - feat(linter): eslint-plugin-jest:
prefer-to-be
by @eryue0220 in #2702 - feat(linter): eslint-plugin-jest:
prefer-to-contain
by @eryue0220 in #2735 - feat(linter): eslint/guard-for-in by @JoSeBu1 in #2746
- feat(linter): eslint/max-lines by @andipabst in #2739
- feat(linter): eslint/max-params by @JoSeBu1 in #2749
- feat(linter): eslint/no-continue by @JoSeBu1 in #2742
- feat(linter): eslint/no-proto by @JoSeBu1 in #2760
- feat(linter): eslint/no-ternary by @JoSeBu1 in #2744
- feat(linter): eslint/no-with by @andipabst in #2741
- feat(linter): no_eq_null by @JoSeBu1 in #2757
- feat(linter): no_template_curly_in_string by @JoSeBu1 in #2763
- feat(linter): report side effect for array element in node_side_effects rule by @mysteryven in #2683
- feat(linter): resolve ESM star exports by @Boshen in #2682
- feat(linter): support check ImportNamespaceSpecifier in no_import_assign by @Dunqing in #2617
- feat(linter/import) change the rule path to index.ts and add snapshot in export rule by @Dunqing in #2732
- feat(linter/import) implement no_unused_modules rule by @Dunqing in #2720
- feat(linter/import): check ObjectPattern syntax in namespace by @Dunqing in #2691
- feat(linter/import): support check reexport binding in namespace by @Dunqing in #2678
- feat(linter/tree-shaking): add cache for checking mutating identifiers by @mysteryven in #2743
- feat(linter/tree_shaking): check assignment of identifier by @mysteryven in #2697
- fix(linter): correct example for no-obj-calls rule by @overlookmotel in #2618
- fix(linter): fix guard_for_in span error by @JoSeBu1 in #2755
- implemented import/no-default-export by @XantreGodlike in #2736
New Contributors
- @andipabst made their first contribution in #2739
- @JoSeBu1 made their first contribution in #2742
- @LIMPIX31 made their first contribution in #2712
Full Changelog: oxlint_v0.2.13...oxlint_v0.2.14
oxlint v0.2.13
What's Changed
Linter
- eslint-plugin-jest: prefer-strict-equal by @eryue0220 in #2581
- eslint-plugin-jest: prefer-to-have-length by @eryue0220 in #2580
- improve getter return rule for TypeScript by @BlackSoulHub in #2543
- avoid crash if no members in TSTypeLiteral in typescript/prefer-function-type by @mysteryven in #2604
- exclude typescript syntax function in only_used_in_recursion by @Dunqing in #2595
Parser
- feat: parse decorators properly by @Boshen in #2603
- perf: faster lexing template strings by @overlookmotel in #2541
- perf: lex JSXText with memchr by @overlookmotel in #2558
Vscode
- use config path at init by @johnrazeur in #2569
- serialize with camelCase by @IWANABETHATGUY in #2568
New Contributors
- @BlackSoulHub made their first contribution in #2543
- @johnrazeur made their first contribution in #2569
Full Changelog: oxlint_v0.2.12...oxlint_v0.2.13
oxlint v0.2.12
What's Changed
This release fixes a mistate made in the previous release where an ESM module has commonjs data, resulting lots of random false positives.
Full Changelog: oxlint_v0.2.11...oxlint_v0.2.12
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