oxlint_v0.1.1
版本发布时间: 2024-01-06 21:31:00
oxc-project/oxc最新发布版本:oxlint_v0.9.10(2024-10-08 13:45:46)
Try it out!
- Run
npx --yes oxlint@latest
from your terminal - Install the Vscode extension https://marketplace.visualstudio.com/items?itemName=oxc.oxc-vscode
- Read the usage guide
Vue support
<script>
and <script setup>
are linted by default.
Astro support
Frontmatter component script ---
and all <script>
tags are linted by default.
Configuration files (experimental)
-c ./eslintrc.json
will use the rules
field for rule configuration, as documented in ESLint's documentation.
Unfortunately, only the json
format is supported right now.
The extends
field will not take effect; normal -D
and -A
flags still apply.
New Rules
Correctness
- deepscan: bad object literal comparison by @camc314 in https://github.com/oxc-project/oxc/pull/1844
- oxc: erasing op by @camc314 in https://github.com/oxc-project/oxc/pull/1834
- oxc: only used in recursion by @camc314 in https://github.com/oxc-project/oxc/pull/1833
- eslint: no irregular whitespace by @DeividAlmeida in https://github.com/oxc-project/oxc/pull/1877
- eslint: no-unused-private-class-members rule by @Dunqing in https://github.com/oxc-project/oxc/pull/1820
- eslint: no-var by @zhangrunzhao in https://github.com/oxc-project/oxc/pull/1890
- eslint-plugin-react: jsx-no-undef for by @XantreGodlike in https://github.com/oxc-project/oxc/pull/1862
- eslint-plugin-jsx-a11y: aria-role by @msdlisper in https://github.com/oxc-project/oxc/pull/1849
- eslint-plugin-jsx-a11y: lang by @msdlisper in https://github.com/oxc-project/oxc/pull/1812
- eslint-plugin-jsx-a11y: media-has-caption by @poteboy in https://github.com/oxc-project/oxc/pull/1822
- eslint-plugin-jsx-a11y: mouse-events-have-key-events(correctness) by @Ken-HH24 in https://github.com/oxc-project/oxc/pull/1867
- eslint-plugin-jsx-a11y: prefer-tag-over-role rule by @yossydev in https://github.com/oxc-project/oxc/pull/1831
- eslint-plugin-jsx-a11y: aria-unsupported-elements by @re-taro in https://github.com/oxc-project/oxc/pull/1855
- eslint-plugin-jsx-a11y: html_has_lang by @msdlisper in https://github.com/oxc-project/oxc/pull/1843
Suspicious
- oxc: approx constant by @camc314 in https://github.com/oxc-project/oxc/pull/1818
- oxc: misrefactored assign op by @camc314 in https://github.com/oxc-project/oxc/pull/1832
Restriction
- react: button has type by @camc314 in https://github.com/oxc-project/oxc/pull/1785
- unicorn: prefer modern math apis by @camc314 in https://github.com/oxc-project/oxc/pull/1620
Fixes
- fix(linter): ignore anonymous functional components in arrays for eslint-plugin-react(jsx-key) by @maurice in https://github.com/oxc-project/oxc/pull/1858
- Prioritize ignored paths when linting by @clarkf in https://github.com/oxc-project/oxc/pull/1878
- feat(linter): handle more cases for
const-comparisons
by @camc314 in https://github.com/oxc-project/oxc/pull/1817 - feat(semantic): allow reserved keyword defined in ts module block by @Dunqing in https://github.com/oxc-project/oxc/pull/1907
- fix(parser): error on source larger than 4 GiB by @overlookmotel in https://github.com/oxc-project/oxc/pull/1860
- fix(parser): fix incorrectly identified directives by @overlookmotel in https://github.com/oxc-project/oxc/pull/1885
- fix(parser): terminate parsing if an EmptyParenthesizedExpression error occurs by @Dunqing in https://github.com/oxc-project/oxc/pull/1874
- fix(semantic): remove duplicate errors in ModuleDeclaration::ImportDeclaration by @Dunqing in https://github.com/oxc-project/oxc/pull/1846
- perf(linter): reduce the number of diagnostics for no_sparse_arrays by @camc314 in https://github.com/oxc-project/oxc/pull/1895
New Contributors
- @maurice made their first contribution in https://github.com/oxc-project/oxc/pull/1858
- @re-taro made their first contribution in https://github.com/oxc-project/oxc/pull/1855
- @DeividAlmeida made their first contribution in https://github.com/oxc-project/oxc/pull/1835
- @XantreGodlike made their first contribution in https://github.com/oxc-project/oxc/pull/1862
- @Qix- made their first contribution in https://github.com/oxc-project/oxc/pull/1861
- @yossydev made their first contribution in https://github.com/oxc-project/oxc/pull/1831
- @clarkf made their first contribution in https://github.com/oxc-project/oxc/pull/1878
- @zhangrunzhao made their first contribution in https://github.com/oxc-project/oxc/pull/1890
Full Changelog: https://github.com/oxc-project/oxc/compare/oxlint_v0.0.22...oxlint_v0.1.1