Skip to content

Commit dd560ae

Browse files
baevmcamc314
andauthored
feat(linter/unicorn): implement no-array-fill-with-reference-type rule (#23397)
this PR implements `unicorn/no-array-fill-with-reference-type` rule issue #684 --------- Co-authored-by: Cameron <[email protected]>
1 parent af36c2f commit dd560ae

7 files changed

Lines changed: 412 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,7 @@ export interface DummyRuleMap {
15571557
"unicorn/no-accessor-recursion"?: RuleNoConfig;
15581558
"unicorn/no-anonymous-default-export"?: RuleNoConfig;
15591559
"unicorn/no-array-callback-reference"?: RuleNoConfig;
1560+
"unicorn/no-array-fill-with-reference-type"?: RuleNoConfig;
15601561
"unicorn/no-array-for-each"?: RuleNoConfig;
15611562
"unicorn/no-array-method-this-argument"?: RuleNoConfig;
15621563
"unicorn/no-array-reduce"?: AllowWarnDeny | [AllowWarnDeny] | [AllowWarnDeny, NoArrayReduce];

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 8 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: 59 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
@@ -501,6 +501,7 @@ pub(crate) mod unicorn {
501501
pub mod no_accessor_recursion;
502502
pub mod no_anonymous_default_export;
503503
pub mod no_array_callback_reference;
504+
pub mod no_array_fill_with_reference_type;
504505
pub mod no_array_for_each;
505506
pub mod no_array_method_this_argument;
506507
pub mod no_array_reduce;

0 commit comments

Comments
 (0)