Skip to content

Commit 1ad6f6c

Browse files
authored
feat(linter/eslint): implement id-denylist rule (#24632)
this PR implements `eslint/id-denylist`, issue #479
1 parent 582805d commit 1ad6f6c

8 files changed

Lines changed: 1405 additions & 4 deletions

File tree

‎apps/oxlint/src-js/package/config.generated.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ export interface DummyRuleMap {
901901
"grouped-accessor-pairs"?:
902902
RuleNoConfig | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig];
903903
"guard-for-in"?: RuleNoConfig;
904+
"id-denylist"?: RuleNoConfig | [AllowWarnDeny, string, ...string[]];
904905
"id-length"?: RuleNoConfig | [AllowWarnDeny, IdLengthConfig];
905906
"id-match"?: RuleNoConfig | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions];
906907
"import/consistent-type-specifier-style"?: RuleNoConfig | [AllowWarnDeny, Mode];

‎crates/oxc_linter/src/generated/rule_runner_impls.rs‎

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/oxc_linter/src/generated/rules_enum.rs‎

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/oxc_linter/src/rules.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pub(crate) mod eslint {
6262
pub mod getter_return;
6363
pub mod grouped_accessor_pairs;
6464
pub mod guard_for_in;
65+
pub mod id_denylist;
6566
pub mod id_length;
6667
pub mod id_match;
6768
pub mod init_declarations;

0 commit comments

Comments
 (0)