Skip to content

Commit

Permalink
chore: rename the rule from noArrayConstructor to useArrayLiterals
Browse files Browse the repository at this point in the history
ref: #2532
  • Loading branch information
Kazuhiro-Mimaki committed Apr 23, 2024
1 parent 2b3b810 commit 28ca72c
Show file tree
Hide file tree
Showing 12 changed files with 80 additions and 80 deletions.
16 changes: 8 additions & 8 deletions crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 45 additions & 45 deletions crates/biome_configuration/src/linter/rules.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/biome_diagnostics_categories/src/categories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ define_categories! {
"lint/correctness/useValidForDirection": "https://biomejs.dev/linter/rules/use-valid-for-direction",
"lint/correctness/useYield": "https://biomejs.dev/linter/rules/use-yield",
"lint/nursery/colorNoInvalidHex": "https://biomejs.dev/linter/rules/color-no-invalid-hex",
"lint/nursery/noArrayConstructor": "https://biomejs.dev/linter/rules/no-array-constructor",
"lint/nursery/useArrayLiterals": "https://biomejs.dev/linter/rules/use-array-literals",
"lint/nursery/noColorInvalidHex": "https://biomejs.dev/linter/rules/no-color-invalid-hex",
"lint/nursery/noConsole": "https://biomejs.dev/linter/rules/no-console",
"lint/nursery/noConstantMathMinMaxClamp": "https://biomejs.dev/linter/rules/no-constant-math-min-max-clamp",
Expand Down
4 changes: 2 additions & 2 deletions crates/biome_js_analyze/src/lint/nursery.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ declare_rule! {
/// [0, 1, 2];
/// ```
///
pub NoArrayConstructor {
pub UseArrayLiterals {
version: "next",
name: "noArrayConstructor",
sources: &[RuleSource::Eslint("no-array-constructor")],
name: "useArrayLiterals",
sources: &[RuleSource::Eslint("use-array-literals")],
recommended: false,
fix_kind: FixKind::Unsafe,
}
}

impl Rule for NoArrayConstructor {
impl Rule for UseArrayLiterals {
type Query = Ast<JsExpressionStatement>;
type State = ();
type Signals = Option<Self::State>;
Expand Down
Loading

0 comments on commit 28ca72c

Please sign in to comment.