github oxc-project/oxc oxlint_v0.2.0
oxlint v0.2.0

latest releases: crates_v0.36.0, oxlint_v0.11.1, crates_v0.35.0...
10 months ago

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

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

Don't miss a new oxc release

NewReleases is sending notifications on new releases.