diff --git a/.changeset/proud-lemons-wonder.md b/.changeset/proud-lemons-wonder.md new file mode 100644 index 000000000000..4c509c1ab249 --- /dev/null +++ b/.changeset/proud-lemons-wonder.md @@ -0,0 +1,5 @@ +--- +"@biomejs/biome": patch +--- + +Added eslint migration metadata for the rules `@typescript/no-var-requires`, `@typescript/keyword-spacing`, `@typescript/func-call-spacing`, `vue/keyword-spacing`, `vue/func-call-spacing`, and `unicorn/empty-brace-spaces`, diff --git a/crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs b/crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs index 78540f9480b4..19214c7f51d9 100644 --- a/crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs +++ b/crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs @@ -857,6 +857,14 @@ pub(crate) fn migrate_eslint_any_rule( .get_or_insert(Default::default()); rule.set_level(rule.level().max(rule_severity.into())); } + "@typescript-eslint/no-var-requires" => { + let group = rules.style.get_or_insert_with(Default::default); + let rule = group + .unwrap_group_as_mut() + .no_common_js + .get_or_insert(Default::default()); + rule.set_level(rule.level().max(rule_severity.into())); + } "@typescript-eslint/no-wrapper-object-types" => { if !options.include_inspired { results.add(eslint_name, eslint_to_biome::RuleMigrationResult::Inspired); diff --git a/crates/biome_cli/src/execute/migrate/unsupported_rules.rs b/crates/biome_cli/src/execute/migrate/unsupported_rules.rs index 6d5ceef39836..b3067262c09d 100644 --- a/crates/biome_cli/src/execute/migrate/unsupported_rules.rs +++ b/crates/biome_cli/src/execute/migrate/unsupported_rules.rs @@ -250,7 +250,9 @@ pub const UNSUPPORTED_RULES: &[UnsupportedRule] = &[ UnsupportedRule(EslintTypeScript("brace-style"), Stylistic), UnsupportedRule(EslintTypeScript("comma-dangle"), Stylistic), UnsupportedRule(EslintTypeScript("comma-spacing"), FormatterCovers), + UnsupportedRule(EslintTypeScript("func-call-spacing"), FormatterCovers), UnsupportedRule(EslintTypeScript("indent"), FormatterOption("indentWidth")), + UnsupportedRule(EslintTypeScript("keyword-spacing"), FormatterCovers), UnsupportedRule(EslintTypeScript("no-extra-parens"), FormatterCovers), UnsupportedRule(EslintTypeScript("no-extra-semi"), FormatterCovers), UnsupportedRule(EslintTypeScript("object-curly-spacing"), FormatterCovers), @@ -259,6 +261,7 @@ pub const UNSUPPORTED_RULES: &[UnsupportedRule] = &[ UnsupportedRule(EslintTypeScript("space-before-blocks"), FormatterCovers), UnsupportedRule(EslintTypeScript("space-before-function-paren"), Stylistic), UnsupportedRule(EslintTypeScript("space-infix-ops"), FormatterCovers), + UnsupportedRule(EslintUnicorn("empty-brace-spaces"), FormatterCovers), UnsupportedRule(EslintVueJs("array-bracket-newline"), FormatterCovers), UnsupportedRule(EslintVueJs("array-bracket-spacing"), FormatterCovers), UnsupportedRule(EslintVueJs("array-element-newline"), FormatterCovers), @@ -271,6 +274,7 @@ pub const UNSUPPORTED_RULES: &[UnsupportedRule] = &[ UnsupportedRule(EslintVueJs("comma-style"), Stylistic), UnsupportedRule(EslintVueJs("dot-location"), Stylistic), UnsupportedRule(EslintVueJs("first-attribute-linebreak"), Stylistic), + UnsupportedRule(EslintVueJs("func-call-spacing"), FormatterCovers), UnsupportedRule(EslintVueJs("html-closing-bracket-newline"), Stylistic), UnsupportedRule(EslintVueJs("html-closing-bracket-spacing"), Stylistic), UnsupportedRule(EslintVueJs("html-comment-content-newline"), Stylistic), diff --git a/crates/biome_js_analyze/src/lint/style/no_common_js.rs b/crates/biome_js_analyze/src/lint/style/no_common_js.rs index de1ad3555257..2862a95c247b 100644 --- a/crates/biome_js_analyze/src/lint/style/no_common_js.rs +++ b/crates/biome_js_analyze/src/lint/style/no_common_js.rs @@ -57,6 +57,7 @@ declare_lint_rule! { language: "js", sources: &[ RuleSource::EslintTypeScript("no-require-imports").same(), + RuleSource::EslintTypeScript("no-var-requires").same(), RuleSource::EslintImport("no-commonjs").same(), ], recommended: false,