oxlint v0.1.1
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 #1844
- oxc: erasing op by @camc314 in #1834
- oxc: only used in recursion by @camc314 in #1833
- eslint: no irregular whitespace by @DeividAlmeida in #1877
- eslint: no-unused-private-class-members rule by @Dunqing in #1820
- eslint: no-var by @zhangrunzhao in #1890
- eslint-plugin-react: jsx-no-undef for by @XantreGodlike in #1862
- eslint-plugin-jsx-a11y: aria-role by @msdlisper in #1849
- eslint-plugin-jsx-a11y: lang by @msdlisper in #1812
- eslint-plugin-jsx-a11y: media-has-caption by @poteboy in #1822
- eslint-plugin-jsx-a11y: mouse-events-have-key-events(correctness) by @Ken-HH24 in #1867
- eslint-plugin-jsx-a11y: prefer-tag-over-role rule by @yossydev in #1831
- eslint-plugin-jsx-a11y: aria-unsupported-elements by @re-taro in #1855
- eslint-plugin-jsx-a11y: html_has_lang by @msdlisper in #1843
Suspicious
Restriction
Fixes
- fix(linter): ignore anonymous functional components in arrays for eslint-plugin-react(jsx-key) by @maurice in #1858
- Prioritize ignored paths when linting by @clarkf in #1878
- feat(linter): handle more cases for
const-comparisons
by @camc314 in #1817 - feat(semantic): allow reserved keyword defined in ts module block by @Dunqing in #1907
- fix(parser): error on source larger than 4 GiB by @overlookmotel in #1860
- fix(parser): fix incorrectly identified directives by @overlookmotel in #1885
- fix(parser): terminate parsing if an EmptyParenthesizedExpression error occurs by @Dunqing in #1874
- fix(semantic): remove duplicate errors in ModuleDeclaration::ImportDeclaration by @Dunqing in #1846
- perf(linter): reduce the number of diagnostics for no_sparse_arrays by @camc314 in #1895
New Contributors
- @maurice made their first contribution in #1858
- @re-taro made their first contribution in #1855
- @DeividAlmeida made their first contribution in #1835
- @XantreGodlike made their first contribution in #1862
- @Qix- made their first contribution in #1861
- @yossydev made their first contribution in #1831
- @clarkf made their first contribution in #1878
- @zhangrunzhao made their first contribution in #1890
Full Changelog: oxlint_v0.0.22...oxlint_v0.1.1