What's Changed
Features
Read eslint JSON configuration (experimental)
Added the configuration flag -c .eslintrc.json
.
Oxlint will override all the enabled rules to what's specified in rules
, e.g.
{
"rules": {
"eqeqeq": "off",
"curly": "error",
"quotes": ["error", "double"]
}
}
- Parse eslint configuration by @camc314 in #1146
- Read jsx-a11y settings by @msdlisper in #1668
New Rules
- eslint-plugin-jsx-a11y: no-access-key (correctness) by @yoshi2no in #1708
- eslint-plugin-jsx-a11y: tabindex-no-positive (correctness) by @yoshi2no in #1677
- eslint-plugin-import: export rule (nursery) by @mysteryven in #1654
- eslint-plugin-unicorn: no-null (style) by @Ken-HH24 in #1705
- eslint-plugin-unicorn: prefer-dom-node-text-content (style) by @Ken-HH24 in #1658
- eslint-plugin-unicorn: prefer-prototype-methods (pedantic) by @haocheng6 in #1660
vscode
- use icon to represent enabled status by @IWANABETHATGUY in #1675
- add option to control enable/disable oxc linter by @IWANABETHATGUY in #1665
- report problem more accurately by @IWANABETHATGUY in #1681
Fixes
- fix(parser): false postive for "Missing initializer in const declaration" in declare + namespace by @Boshen in #1724
- convert catch error name to a warning by @camc314 in #1700
- Don't check for multiple bits at once. by @AndyA in #1688
- Fix false positives in prefer string start, ends with, port more test cases by @camc314 in #1689
- Panic in prefer string starts, ends with by @camc314 in #1684
- excape_case by @RiESAEX in #1673
- false positive in jsx key by @camc314 in #1686
- improve diagnostic for no useless spread by @camc314 in #1698
- perf(linter): find class node by symbols in get_parent_es6_component by @Dunqing in #1657
- refactor(linter): make some jest rules report more detailed by @mysteryven in #1666
New Contributors
- @HerringtonDarkholme made their first contribution in #1680
- @yoshi2no made their first contribution in #1677
- @fireairforce made their first contribution in #1682
- @AndyA made their first contribution in #1688
Full Changelog: oxlint_v0.0.20...oxlint_v0.0.21