oxc/crates/oxc_cli
Boshen 856b9a59eb
feat(linter): support overriding oxlint rules by eslint config (#1966)
Previously if .eslintrc.json contains 

```
{
  "rules": {
    "no-empty": "off"
  }
}
```

Then no rules will be enabled.

---

This PR changes how we configure oxlint's rules.

The rules will start with the categories we apply, and then merge all
the configurations stated in the `rules` field.

For example, if we begin with `-D correctness` with 80 rules, then

* `"no-empty-file": "off"` will remove the rule, yielding 79 rules
* `"no-empty": "error"` (restriction) will add the rule, yield 81 rules
* ""no-empty": ["error", { "allowEmptyCatch": true }]` add the rule's
configuration
2024-01-10 15:44:53 +08:00
..
fixtures feat(linter): disable no-unused-labels for svelte (#1919) 2024-01-07 00:25:52 +08:00
src feat(linter): support overriding oxlint rules by eslint config (#1966) 2024-01-10 15:44:53 +08:00
Cargo.toml chore(cli): the oxc_cli binary has no unit tests 2024-01-04 21:20:40 +08:00