oxc/crates
fi3ework e0da12a868
fix(linter): allow eslintrc to add rule when overriding (#1984)
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! 😊
2024-01-11 11:43:02 +08:00
..
oxc refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00
oxc_allocator feat(allocator): add From API (#1908) 2024-01-06 12:45:27 +08:00
oxc_ast refactor(parser): remove TokenValue::RegExp from Token (#1926) 2024-01-08 13:48:52 +08:00
oxc_cli fix(linter): allow eslintrc to add rule when overriding (#1984) 2024-01-11 11:43:02 +08:00
oxc_codegen refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00
oxc_diagnostics chore(deps): bump the dependencies group with 11 updates (#1865) 2024-01-01 08:06:33 +00:00
oxc_index feat(playground): visualize symbol (#1886) 2024-01-04 15:36:31 +08:00
oxc_js_regex Initialize JS Regex crates and def AST. (#1500) 2023-11-23 00:22:17 +08:00
oxc_language_server refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00
oxc_linter fix(linter): allow eslintrc to add rule when overriding (#1984) 2024-01-11 11:43:02 +08:00
oxc_linter_plugin chore(deps): bump the dependencies group with 5 updates (#1808) 2023-12-25 15:17:47 +08:00
oxc_macros feat(linter): add a perf category (#1625) 2023-12-04 17:31:34 +08:00
oxc_minifier chore: upgrade rustc toolchain to stable 1.75.0 (#1853) 2023-12-29 12:20:51 +08:00
oxc_parser refactor(parser): reduce Token size from 32 to 16 bytes (#1962) 2024-01-09 15:17:02 +08:00
oxc_prettier feat(linter): no-irregular-whitespace rule (#1835) 2023-12-31 12:05:38 +08:00
oxc_query feat(query): Add is_getter, is_setter, is_constructor to all Function implementors (#1526) 2023-11-27 12:22:41 +08:00
oxc_semantic feat(transform): support es2015 new target (#1967) 2024-01-10 23:59:56 +08:00
oxc_span Release crates v0.4.0 2023-12-08 17:20:37 +08:00
oxc_syntax feat(semantic): allow reserved keyword defined in ts module block (#1907) 2024-01-06 12:56:27 +08:00
oxc_transformer feat(transform): support es2015 new target (#1967) 2024-01-10 23:59:56 +08:00
oxc_type_synthesis refactor(rust): move to workspace lint table (#1444) 2023-11-20 14:38:10 +08:00
oxc_wasm refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00