oxc/crates/oxc_cli/fixtures
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
..
astro feat(linter): parse multiple script tags in astro file (#1898) 2024-01-05 16:36:31 +08:00
eslintrc_off feat(linter): allow "-c" configuration (#1909) 2024-01-06 16:32:11 +08:00
linter feat(linter): do not lint when vue file has no js section (#1891) 2024-01-04 21:24:19 +08:00
no_empty_allow_empty_catch feat(linter): allow "-c" configuration (#1909) 2024-01-06 16:32:11 +08:00
no_empty_disallow_empty_catch feat(linter): allow "-c" configuration (#1909) 2024-01-06 16:32:11 +08:00
no_undef fix(linter): allow eslintrc to add rule when overriding (#1984) 2024-01-11 11:43:02 +08:00
svelte feat(linter): disable no-unused-labels for svelte (#1919) 2024-01-07 00:25:52 +08:00
vue feat(linter): parse two script tags from vue (#1899) 2024-01-05 16:44:27 +08:00
walk_dir feat(lint): add partial loader register (#1760) 2023-12-31 22:19:27 +08:00
test.min.js fix(cli): correct ignore-pattern behavior; add more cli tests (#796) 2023-08-26 00:03:49 +08:00