Skip to content

oxlint v0.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Jan 15:16
e621e9b

Try it out!

Better configuration support

oxlint -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.

To add / remove / configure a rule:

{
  "rules": {
      "no-empty": "off", // removes the rule
      "no-empty": "error", // adds the rule
      "no-empty": ["error", { "allowEmptyCatch": true }]` configures the rule
  }
}

Next.js Plugin

oxlint --nextjs-plugin

Vscode

New Rules

correctness

restriction

  • react: no-unknown-property by @XantreGodlike in #1875

style

Fixes

Linter

  • always print without considering the --max-warnings option by @Boshen in #1996
  • support vue generic component by @Boshen in #1989
  • Support cases where aria-hidden includes expressions by @keita-hino in #1964
  • allow eslintrc to add rule when overriding by @fi3ework in #1984
  • fix plugin name parsing when reading config file by @haocheng6 in #1972
  • handle anonymous functional components in arrays that have a function body by @maurice in #1983

Parser

Improvements

  • Parser is 10% faster than the previous version

New Contributors

Full Changelog: oxlint_v0.1.2...oxlint_v0.2.0