mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Fix a bug introduced in https://github.com/oxc-project/oxc/pull/1966. Ideally, the rules in eslintrc should be merged into final rules as described: > 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 However, the implementation did not include the newly added rules in the eslintrc. As a test case and example, I added a new fixture to `crates/oxc_cli/fixtures/no_undef`. No warn or deny will be found without this PR. This is my first Rust PR ever. Any nitpicking suggestions are welcome. Thanks! 😊 |
||
|---|---|---|
| .. | ||
| oxc | ||
| oxc_allocator | ||
| oxc_ast | ||
| oxc_cli | ||
| oxc_codegen | ||
| oxc_diagnostics | ||
| oxc_index | ||
| oxc_js_regex | ||
| oxc_language_server | ||
| oxc_linter | ||
| oxc_linter_plugin | ||
| oxc_macros | ||
| oxc_minifier | ||
| oxc_parser | ||
| oxc_prettier | ||
| oxc_query | ||
| oxc_semantic | ||
| oxc_span | ||
| oxc_syntax | ||
| oxc_transformer | ||
| oxc_type_synthesis | ||
| oxc_wasm | ||