diff --git a/crates/biome_js_analyze/src/assist/source/organize_imports.rs b/crates/biome_js_analyze/src/assist/source/organize_imports.rs index 13e4fe348cf6..6c782ecccf7e 100644 --- a/crates/biome_js_analyze/src/assist/source/organize_imports.rs +++ b/crates/biome_js_analyze/src/assist/source/organize_imports.rs @@ -325,7 +325,7 @@ declare_source_rule! { /// /// Group matchers can also be glob patterns and list of glob patterns. /// Glob patterns select imports and exports with a source that matches the pattern. - /// In the following example, we create two groups: one that gathers imports/exports with a source starting with `@my/lib` except `@my/lib/speciaal` and the other that gathers imports/exports starting with `@/`. + /// In the following example, we create two groups: one that gathers imports/exports with a source starting with `@my/lib` except `@my/lib/special` and the other that gathers imports/exports starting with `@/`. /// /// ```json /// { diff --git a/crates/biome_js_analyze/src/lint/a11y/no_svg_without_title.rs b/crates/biome_js_analyze/src/lint/a11y/no_svg_without_title.rs index a59c010f7f24..1dd348d5fbc1 100644 --- a/crates/biome_js_analyze/src/lint/a11y/no_svg_without_title.rs +++ b/crates/biome_js_analyze/src/lint/a11y/no_svg_without_title.rs @@ -188,7 +188,7 @@ impl Rule for NoSvgWithoutTitle { } } -/// Checks if the given attribute is attached to the `svg` element and the attribute value is used by the `id` of the childs element. +/// Checks if the given attribute is attached to the `svg` element and the attribute value is used by the `id` of the child element. fn is_valid_attribute_value( attribute: Option, jsx_child_list: &JsxChildList, diff --git a/crates/biome_js_analyze/src/lint/complexity/no_useless_string_raw.rs b/crates/biome_js_analyze/src/lint/complexity/no_useless_string_raw.rs index 703f656318a2..6bcde7e8232e 100644 --- a/crates/biome_js_analyze/src/lint/complexity/no_useless_string_raw.rs +++ b/crates/biome_js_analyze/src/lint/complexity/no_useless_string_raw.rs @@ -82,7 +82,7 @@ impl Rule for NoUselessStringRaw { }, ) .note(markup! { - "Remove the String.raw call beacause it's useless here, String.raw can deal with string which contains escape sequence like \\n, \\t, \\r, \\\\, \\\", \\\'." + "Remove the String.raw call because it's useless here, String.raw can deal with string which contains escape sequence like \\n, \\t, \\r, \\\\, \\\", \\\'." }), ) } diff --git a/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs b/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs index 59977430681a..5a55427ef86e 100644 --- a/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs +++ b/crates/biome_js_analyze/src/lint/complexity/no_useless_this_alias.rs @@ -98,7 +98,7 @@ impl Rule for NoUselessThisAlias { } is_this_alias = true; } - // This cehck is useful when the loop is not executed (no write). + // This check is useful when the loop is not executed (no write). if !is_this_alias { return None; } diff --git a/crates/biome_js_analyze/src/lint/correctness/no_unreachable.rs b/crates/biome_js_analyze/src/lint/correctness/no_unreachable.rs index a17d06ac6e7c..2e43c75670ca 100644 --- a/crates/biome_js_analyze/src/lint/correctness/no_unreachable.rs +++ b/crates/biome_js_analyze/src/lint/correctness/no_unreachable.rs @@ -374,7 +374,7 @@ fn analyze_fine(cfg: &JsControlFlowGraph, signals: &mut UnreachableRanges) { 'blocks: for (block_id, block) in cfg.block_id_iter() { match block_paths.get(&block_id) { // Block has incoming paths, but may be unreachable if they all - // have a dominating terminator intruction + // have a dominating terminator instruction Some(paths) => { let mut terminators = Vec::new(); for path in paths { @@ -444,7 +444,7 @@ fn traverse_cfg( }); // This maps holds a list of "path state", the active terminator - // intruction for each path that can reach the block + // instruction for each path that can reach the block let mut block_paths = FxHashMap::default(); while let Some(mut path) = queue.pop_front() { diff --git a/crates/biome_js_analyze/src/lint/correctness/use_json_import_attributes.rs b/crates/biome_js_analyze/src/lint/correctness/use_json_import_attributes.rs index 1747e74c687c..f428e34f17e9 100644 --- a/crates/biome_js_analyze/src/lint/correctness/use_json_import_attributes.rs +++ b/crates/biome_js_analyze/src/lint/correctness/use_json_import_attributes.rs @@ -201,11 +201,11 @@ impl Rule for UseJsonImportAttributes { let prev_assertions = prev_assertion.assertions(); let mut items = vec![entry]; - let mut seperators = vec![]; + let mut separators = vec![]; // if there is more than 1 assertion, we need to add a comma after the first attribute if prev_assertions.len() > 0 { - seperators.push( + separators.push( make::token(T![,]) .with_trailing_trivia([(TriviaPieceKind::Whitespace, " ")]), ); @@ -220,12 +220,12 @@ impl Rule for UseJsonImportAttributes { items.push(node); } if let Ok(Some(trailing_separator)) = trailing_separator { - seperators.push(trailing_separator); + separators.push(trailing_separator); } } prev_assertion - .with_assertions(make::js_import_assertion_entry_list(items, seperators)) + .with_assertions(make::js_import_assertion_entry_list(items, separators)) } }; diff --git a/crates/biome_js_analyze/src/lint/performance/no_await_in_loops.rs b/crates/biome_js_analyze/src/lint/performance/no_await_in_loops.rs index 6c0dfb607ee0..52233c7226ad 100644 --- a/crates/biome_js_analyze/src/lint/performance/no_await_in_loops.rs +++ b/crates/biome_js_analyze/src/lint/performance/no_await_in_loops.rs @@ -89,7 +89,7 @@ impl Rule for NoAwaitInLoops { preorder.skip_subtree(); } - // skip valid case: bidning in `for in` + // skip valid case: binding in `for in` // `async function foo() { for (var bar = await baz in qux) {} }` if JsForVariableDeclaration::can_cast(node.kind()) { preorder.skip_subtree(); diff --git a/crates/biome_js_analyze/src/lint/performance/no_unwanted_polyfillio.rs b/crates/biome_js_analyze/src/lint/performance/no_unwanted_polyfillio.rs index 12828e3878b6..9812e5ae9cab 100644 --- a/crates/biome_js_analyze/src/lint/performance/no_unwanted_polyfillio.rs +++ b/crates/biome_js_analyze/src/lint/performance/no_unwanted_polyfillio.rs @@ -255,7 +255,7 @@ fn test_check_unwanted_polyfill() { let actual = check_unwanted_polyfill(src, NEXT_POLYFILLED_FEATURES); assert_eq!(actual, None); - // Differente URL + // Different URL let src = "https://example.com/polyfill.min.js?features=Array.prototype.includes"; let actual = check_unwanted_polyfill(src, NEXT_POLYFILLED_FEATURES); assert_eq!(actual, None); diff --git a/crates/biome_js_analyze/src/lint/style/no_useless_else.rs b/crates/biome_js_analyze/src/lint/style/no_useless_else.rs index f1d83a6b35e2..9d050cfcd57c 100644 --- a/crates/biome_js_analyze/src/lint/style/no_useless_else.rs +++ b/crates/biome_js_analyze/src/lint/style/no_useless_else.rs @@ -224,7 +224,7 @@ fn breaks_early(statement: AnyJsStatement) -> Option<()> { stmt_stack.push((else_clause.alternate().ok()?, metadata)); } AnyJsStatement::JsSwitchStatement(switch_stmt) => { - // To simplify, We do not take fallthoughs into account. + // To simplify, We do not take fallthroughs into account. // Thus, this can miss some useless else. let cases = switch_stmt.cases(); let Some(last_case) = cases.last() else { diff --git a/crates/biome_js_analyze/src/lint/style/use_array_literals.rs b/crates/biome_js_analyze/src/lint/style/use_array_literals.rs index 8d24c2e2299e..8dc4e2dfb658 100644 --- a/crates/biome_js_analyze/src/lint/style/use_array_literals.rs +++ b/crates/biome_js_analyze/src/lint/style/use_array_literals.rs @@ -175,7 +175,7 @@ impl Rule for UseArrayLiterals { && !type_arg.is_primitive_type() && !matches!(type_arg, AnyTsType::TsReferenceType(_)) { - // only wrap the type in parens if its not a literal, primative, or reference + // only wrap the type in parens if its not a literal, primitive, or reference make::parenthesized_ts(type_arg).into() } else { type_arg diff --git a/crates/biome_js_analyze/src/lint/style/use_enum_initializers.rs b/crates/biome_js_analyze/src/lint/style/use_enum_initializers.rs index 79253fe02acc..fe4848872a64 100644 --- a/crates/biome_js_analyze/src/lint/style/use_enum_initializers.rs +++ b/crates/biome_js_analyze/src/lint/style/use_enum_initializers.rs @@ -177,7 +177,7 @@ impl Rule for UseEnumInitializers { has_mutations = true; // When creating the replacement node we first need to remove the trailing trivia. - // Otherwise nodes without a trailing comma will add [JsSyntacKind::EQ] and [EnumInitializer] + // Otherwise nodes without a trailing comma will add [JsSyntaxKind::EQ] and [EnumInitializer] // after it. let new_enum_member = enum_member .clone() diff --git a/crates/biome_js_analyze/src/lint/style/use_object_spread.rs b/crates/biome_js_analyze/src/lint/style/use_object_spread.rs index 5816b972f69b..b6bda1e1ad29 100644 --- a/crates/biome_js_analyze/src/lint/style/use_object_spread.rs +++ b/crates/biome_js_analyze/src/lint/style/use_object_spread.rs @@ -145,7 +145,7 @@ impl Rule for UseObjectSpread { object_member_separators.extend(separators); object_members.extend(members); } - // All the other expressions will be spreaded. + // All the other expressions will be spread. _ => { object_members.push(AnyJsObjectMember::JsSpread(make::js_spread( make::token(JsSyntaxKind::DOT3), diff --git a/crates/biome_js_analyze/src/lint/style/use_readonly_class_properties.rs b/crates/biome_js_analyze/src/lint/style/use_readonly_class_properties.rs index 02194d4ddb1c..86ee5c45ab75 100644 --- a/crates/biome_js_analyze/src/lint/style/use_readonly_class_properties.rs +++ b/crates/biome_js_analyze/src/lint/style/use_readonly_class_properties.rs @@ -443,7 +443,7 @@ fn collect_non_readonly_class_member_properties( /// Collects all all mutable (non-readonly) constructor parameters from a given class declaration. If private_only is true, it only includes parameters with private visibility. /// It returns a Vec representing these parameters, which are candidates for being marked as readonly. -/// e.g. constructor(private paramOne: string, public paramTwo: number) {} makes both paramOne and paramTwo classs member properties. +/// e.g. constructor(private paramOne: string, public paramTwo: number) {} makes both paramOne and paramTwo class member properties. fn collect_non_readonly_constructor_parameters( class_declaration: &JsClassDeclaration, private_only: bool, diff --git a/crates/biome_js_analyze/src/lint/suspicious/no_confusing_void_type.rs b/crates/biome_js_analyze/src/lint/suspicious/no_confusing_void_type.rs index d9d726f6a38a..80a2c6e95bd4 100644 --- a/crates/biome_js_analyze/src/lint/suspicious/no_confusing_void_type.rs +++ b/crates/biome_js_analyze/src/lint/suspicious/no_confusing_void_type.rs @@ -22,7 +22,7 @@ declare_lint_rule! { /// > If you think you need this then you probably want the `undefined` type instead. /// /// The code action suggests using `undefined` instead of `void`. - /// It is unsafe because a variable with the `void` type cannot be asigned to a variable with the `undefined` type. + /// It is unsafe because a variable with the `void` type cannot be assigned to a variable with the `undefined` type. /// /// ## Examples /// diff --git a/crates/biome_js_analyze/src/lint/suspicious/no_document_cookie.rs b/crates/biome_js_analyze/src/lint/suspicious/no_document_cookie.rs index 213809e5c3f3..d25f79b9a809 100644 --- a/crates/biome_js_analyze/src/lint/suspicious/no_document_cookie.rs +++ b/crates/biome_js_analyze/src/lint/suspicious/no_document_cookie.rs @@ -83,7 +83,7 @@ fn is_global_document(expr: &AnyJsExpression, model: &SemanticModel) -> Option<( let decl = bind.tree().declaration()?; let decl = decl.parent_binding_pattern_declaration().unwrap_or(decl); match decl { - // const foo = documnet; + // const foo = document; AnyJsBindingDeclaration::JsVariableDeclarator(declarator) => { let initializer = declarator.initializer()?; let right_expr = initializer.expression().ok()?; diff --git a/crates/biome_js_analyze/src/lint/suspicious/no_unsafe_negation.rs b/crates/biome_js_analyze/src/lint/suspicious/no_unsafe_negation.rs index e1ac4217b613..f171d6e5babe 100644 --- a/crates/biome_js_analyze/src/lint/suspicious/no_unsafe_negation.rs +++ b/crates/biome_js_analyze/src/lint/suspicious/no_unsafe_negation.rs @@ -81,7 +81,7 @@ impl Rule for NoUnsafeNegation { let node = ctx.query(); let mut mutation = ctx.root().begin(); - // The action could be splitted to three steps + // The action could be split to three steps // 1. Remove `!` operator of unary expression // 2. Wrap the expression with `()`, convert the expression to a `JsParenthesizedExpression` // 3. Replace the `JsParenthesizedExpression` to `JsUnaryExpression` by adding a `JsUnaryOperator::LogicalNot` diff --git a/crates/biome_js_analyze/src/react/components.rs b/crates/biome_js_analyze/src/react/components.rs index ed29e8e474be..7936664de4b8 100644 --- a/crates/biome_js_analyze/src/react/components.rs +++ b/crates/biome_js_analyze/src/react/components.rs @@ -54,7 +54,7 @@ const REACT_COMPONENT_PARAMS_LIMIT: usize = 1; /// Represents information about a React component. #[derive(Debug, PartialEq, Eq)] pub(crate) struct ReactComponentInfo { - /// Range of the component defintion start token. + /// Range of the component definition start token. /// This can be used for diagnostics in the absence of the names. pub(crate) start_range: TextRange, /// Name of the component. diff --git a/crates/biome_js_analyze/tests/spec_tests.rs b/crates/biome_js_analyze/tests/spec_tests.rs index a3e257f9b2fc..4276ed1bc776 100644 --- a/crates/biome_js_analyze/tests/spec_tests.rs +++ b/crates/biome_js_analyze/tests/spec_tests.rs @@ -462,7 +462,7 @@ fn run_plugin_test(input: &'static str, _: &str, _: &str, _: &str) { }; // Enable at least 1 rule so that PhaseRunner will be called - // which is necessary to parse and store supression comments + // which is necessary to parse and store suppression comments let rule_filter = RuleFilter::Rule("nursery", "noCommonJs"); let filter = AnalysisFilter { enabled_rules: Some(slice::from_ref(&rule_filter)), diff --git a/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx b/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx index f958ec8b6b1d..b8d89f33ff10 100644 --- a/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx +++ b/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx @@ -32,7 +32,7 @@
{() void 0} /> - test + test {alt {photo.caption}; {bar()}; diff --git a/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx.snap b/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx.snap index c65d789e6829..eb6eb350cf66 100644 --- a/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/a11y/useAltText/img.jsx.snap @@ -39,7 +39,7 @@ snapshot_kind: text
{() void 0} /> - test + test {alt {photo.caption}; {bar()}; diff --git a/crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assigments.jsx b/crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assignments.jsx similarity index 100% rename from crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assigments.jsx rename to crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assignments.jsx diff --git a/crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assigments.jsx.snap b/crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assignments.jsx.snap similarity index 78% rename from crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assigments.jsx.snap rename to crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assignments.jsx.snap index 3c843b9c85b0..772683f35fef 100644 --- a/crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assigments.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/complexity/noUselessFragments/assignments.jsx.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: assigments.jsx +expression: assignments.jsx --- # Input ```jsx @@ -12,7 +12,7 @@ err = Error; # Diagnostics ``` -assigments.jsx:1:7 lint/complexity/noUselessFragments FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +assignments.jsx:1:7 lint/complexity/noUselessFragments FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i This fragment is unnecessary. @@ -34,7 +34,7 @@ assigments.jsx:1:7 lint/complexity/noUselessFragments FIXABLE ━━━━━ ``` ``` -assigments.jsx:2:7 lint/complexity/noUselessFragments FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +assignments.jsx:2:7 lint/complexity/noUselessFragments FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i This fragment is unnecessary. @@ -58,7 +58,7 @@ assigments.jsx:2:7 lint/complexity/noUselessFragments FIXABLE ━━━━━ ``` ``` -assigments.jsx:3:7 lint/complexity/noUselessFragments FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +assignments.jsx:3:7 lint/complexity/noUselessFragments FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i This fragment is unnecessary. diff --git a/crates/biome_js_analyze/tests/specs/complexity/noUselessStringRaw/invalid.js.snap b/crates/biome_js_analyze/tests/specs/complexity/noUselessStringRaw/invalid.js.snap index 3d9b1191f020..329194e13cb4 100644 --- a/crates/biome_js_analyze/tests/specs/complexity/noUselessStringRaw/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/complexity/noUselessStringRaw/invalid.js.snap @@ -20,7 +20,7 @@ invalid.js:1:1 lint/complexity/noUselessStringRaw ━━━━━━━━━━ 2 │ String.raw`abc`; 3 │ String.raw`a ${x}`; - i Remove the String.raw call beacause it's useless here, String.raw can deal with string which contains escape sequence like \n, \t, \r, \\, \", \'. + i Remove the String.raw call because it's useless here, String.raw can deal with string which contains escape sequence like \n, \t, \r, \\, \", \'. ``` @@ -35,7 +35,7 @@ invalid.js:2:1 lint/complexity/noUselessStringRaw ━━━━━━━━━━ │ ^^^^^^^^^^^^^^^ 3 │ String.raw`a ${x}`; - i Remove the String.raw call beacause it's useless here, String.raw can deal with string which contains escape sequence like \n, \t, \r, \\, \", \'. + i Remove the String.raw call because it's useless here, String.raw can deal with string which contains escape sequence like \n, \t, \r, \\, \", \'. ``` @@ -50,7 +50,7 @@ invalid.js:3:1 lint/complexity/noUselessStringRaw ━━━━━━━━━━ > 3 │ String.raw`a ${x}`; │ ^^^^^^^^^^^^^^^^^^ - i Remove the String.raw call beacause it's useless here, String.raw can deal with string which contains escape sequence like \n, \t, \r, \\, \", \'. + i Remove the String.raw call because it's useless here, String.raw can deal with string which contains escape sequence like \n, \t, \r, \\, \", \'. ``` diff --git a/crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overriden.js b/crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overridden.js similarity index 100% rename from crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overriden.js rename to crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overridden.js diff --git a/crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overriden.js.snap b/crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overridden.js.snap similarity index 88% rename from crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overriden.js.snap rename to crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overridden.js.snap index ce95a23fd379..e68776eb5efd 100644 --- a/crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overriden.js.snap +++ b/crates/biome_js_analyze/tests/specs/complexity/useNumericLiterals/overridden.js.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: overriden.js +expression: overridden.js snapshot_kind: text --- # Input diff --git a/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts b/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts index 20b9dcfa081c..e6387a689f43 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts +++ b/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts @@ -75,7 +75,7 @@ class ExtendTypeAssertion extends (A as A) { } } -class ExtendStatisfiesExpression extends (A satisfies A) { +class ExtendSatisfiesExpression extends (A satisfies A) { constructor() { super(); } diff --git a/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts.snap b/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts.snap index c491d1c840df..dc80deba631e 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/correctness/noInvalidConstructorSuper/valid.ts.snap @@ -81,7 +81,7 @@ class ExtendTypeAssertion extends (A as A) { } } -class ExtendStatisfiesExpression extends (A satisfies A) { +class ExtendSatisfiesExpression extends (A satisfies A) { constructor() { super(); } diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamesapceReference.options.json b/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamespaceReference.options.json similarity index 100% rename from crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamesapceReference.options.json rename to crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamespaceReference.options.json diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamesapceReference.ts b/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamespaceReference.ts similarity index 100% rename from crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamesapceReference.ts rename to crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamespaceReference.ts diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamesapceReference.ts.snap b/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamespaceReference.ts.snap similarity index 87% rename from crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamesapceReference.ts.snap rename to crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamespaceReference.ts.snap index 42f02b091454..e9276ee619e1 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamesapceReference.ts.snap +++ b/crates/biome_js_analyze/tests/specs/correctness/noUndeclaredVariables/invalidNamespaceReference.ts.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: invalidNamesapceReference.ts +expression: invalidNamespaceReference.ts --- # Input ```ts @@ -13,7 +13,7 @@ export type T2 = Ns2; // This doesn't reference the import namespace `Ns1` # Diagnostics ``` -invalidNamesapceReference.ts:2:18 lint/correctness/noUndeclaredVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidNamespaceReference.ts:2:18 lint/correctness/noUndeclaredVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━ × The Ns1 variable is undeclared. @@ -30,7 +30,7 @@ invalidNamesapceReference.ts:2:18 lint/correctness/noUndeclaredVariables ━━ ``` ``` -invalidNamesapceReference.ts:5:18 lint/correctness/noUndeclaredVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidNamespaceReference.ts:5:18 lint/correctness/noUndeclaredVariables ━━━━━━━━━━━━━━━━━━━━━━━━━━━ × The Ns2 variable is undeclared. diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js b/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js index 685c1dee0150..b2ab1b95f0c4 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js +++ b/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js @@ -8,6 +8,6 @@ function SuppressionComments1() { function SuppressionComments2() { beforeReturn(); return; - // biome-ignore lint/correctness/noUnreachable: supress warning + // biome-ignore lint/correctness/noUnreachable: suppress warning afterReturn(); } diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js.snap b/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js.snap index 3e9f6f883c3d..5840e32a3880 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js.snap +++ b/crates/biome_js_analyze/tests/specs/correctness/noUnreachable/SuppressionComments.js.snap @@ -15,7 +15,7 @@ function SuppressionComments1() { function SuppressionComments2() { beforeReturn(); return; - // biome-ignore lint/correctness/noUnreachable: supress warning + // biome-ignore lint/correctness/noUnreachable: suppress warning afterReturn(); } diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/inavlidSelfWrite.js b/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/invalidSelfWrite.js similarity index 100% rename from crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/inavlidSelfWrite.js rename to crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/invalidSelfWrite.js diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/inavlidSelfWrite.js.snap b/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/invalidSelfWrite.js.snap similarity index 91% rename from crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/inavlidSelfWrite.js.snap rename to crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/invalidSelfWrite.js.snap index 5cee5a113327..5e9289cddadc 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/inavlidSelfWrite.js.snap +++ b/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/invalidSelfWrite.js.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: inavlidSelfWrite.js +expression: invalidSelfWrite.js --- # Input ```js @@ -21,7 +21,7 @@ for(f = 0; cond; f++) {} # Diagnostics ``` -inavlidSelfWrite.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidSelfWrite.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This variable a is unused. @@ -48,7 +48,7 @@ inavlidSelfWrite.js:1:5 lint/correctness/noUnusedVariables FIXABLE ━━━ ``` ``` -inavlidSelfWrite.js:7:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidSelfWrite.js:7:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This variable d is unused. @@ -75,7 +75,7 @@ inavlidSelfWrite.js:7:5 lint/correctness/noUnusedVariables FIXABLE ━━━ ``` ``` -inavlidSelfWrite.js:7:8 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidSelfWrite.js:7:8 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This variable e is unused. @@ -102,7 +102,7 @@ inavlidSelfWrite.js:7:8 lint/correctness/noUnusedVariables FIXABLE ━━━ ``` ``` -inavlidSelfWrite.js:10:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidSelfWrite.js:10:5 lint/correctness/noUnusedVariables FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This variable f is unused. diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamesapceExportType.ts b/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamespaceExportType.ts similarity index 100% rename from crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamesapceExportType.ts rename to crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamespaceExportType.ts diff --git a/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamesapceExportType.ts.snap b/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamespaceExportType.ts.snap similarity index 79% rename from crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamesapceExportType.ts.snap rename to crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamespaceExportType.ts.snap index ec720dba7efb..ae146f96ed09 100644 --- a/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamesapceExportType.ts.snap +++ b/crates/biome_js_analyze/tests/specs/correctness/noUnusedVariables/validNamespaceExportType.ts.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: validNamesapceExportType.ts +expression: validNamespaceExportType.ts --- # Input ```ts diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts index 44f56b98e8f3..13fa65cba4b5 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts @@ -291,7 +291,7 @@ const invalidTestObject = { this["returnsPromiseMethod"](); }, }; -async function testInvalidObejctMethodCalls(): Promise { +async function testInvalidObjectMethodCalls(): Promise { invalidTestObject.returnsPromiseArrowFunction(); invalidTestObject.returnsPromiseFunction().then(() => {}); invalidTestObject diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap index 5f5e6361d766..cc6cc3f83035 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/invalid.ts.snap @@ -297,7 +297,7 @@ const invalidTestObject = { this["returnsPromiseMethod"](); }, }; -async function testInvalidObejctMethodCalls(): Promise { +async function testInvalidObjectMethodCalls(): Promise { invalidTestObject.returnsPromiseArrowFunction(); invalidTestObject.returnsPromiseFunction().then(() => {}); invalidTestObject @@ -1398,7 +1398,7 @@ invalid.ts:295:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i A "floating" Promise was found, meaning it is not properly handled and could lead to ignored errors or unexpected behavior. 293 │ }; - 294 │ async function testInvalidObejctMethodCalls(): Promise { + 294 │ async function testInvalidObjectMethodCalls(): Promise { > 295 │ invalidTestObject.returnsPromiseArrowFunction(); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 296 │ invalidTestObject.returnsPromiseFunction().then(() => {}); @@ -1418,7 +1418,7 @@ invalid.ts:296:2 lint/nursery/noFloatingPromises FIXABLE ━━━━━━━ i A "floating" Promise was found, meaning it is not properly handled and could lead to ignored errors or unexpected behavior. - 294 │ async function testInvalidObejctMethodCalls(): Promise { + 294 │ async function testInvalidObjectMethodCalls(): Promise { 295 │ invalidTestObject.returnsPromiseArrowFunction(); > 296 │ invalidTestObject.returnsPromiseFunction().then(() => {}); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts index 99a6e0e9a067..616430b14a86 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts @@ -213,7 +213,7 @@ const validTestObject = { this["returnsPromiseMethod"]().catch(() => {}); }, } -async function testValidObejctMethodCalls(): Promise { +async function testValidObjectMethodCalls(): Promise { await validTestObject.returnsPromiseArrowFunction(); validTestObject.returnsPromiseFunction().catch(() => { }); validTestObject.returnsPromiseMethod().then(() => { }, () => { }).finally(() => { }); diff --git a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts.snap index ddf016b0b317..b2b3376f42d9 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/noFloatingPromises/valid.ts.snap @@ -219,7 +219,7 @@ const validTestObject = { this["returnsPromiseMethod"]().catch(() => {}); }, } -async function testValidObejctMethodCalls(): Promise { +async function testValidObjectMethodCalls(): Promise { await validTestObject.returnsPromiseArrowFunction(); validTestObject.returnsPromiseFunction().catch(() => { }); validTestObject.returnsPromiseMethod().then(() => { }, () => { }).finally(() => { }); diff --git a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts index 5723bc23ce05..702198a99da0 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts +++ b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts @@ -58,7 +58,7 @@ const arrowFn = () => { }; // does not support detecting a return of a function inside other statements like if, switch, etc. -// we check only the first statment +// we check only the first statement const arrowFn = (a: number) => { if (a === 1) { return (): void => {}; diff --git a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap index 1fd01221ae32..62d83656f1d0 100644 --- a/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/nursery/useExplicitType/invalid.ts.snap @@ -64,7 +64,7 @@ const arrowFn = () => { }; // does not support detecting a return of a function inside other statements like if, switch, etc. -// we check only the first statment +// we check only the first statement const arrowFn = (a: number) => { if (a === 1) { return (): void => {}; @@ -562,7 +562,7 @@ invalid.ts:62:17 lint/nursery/useExplicitType ━━━━━━━━━━━ × Missing return type on function. 60 │ // does not support detecting a return of a function inside other statements like if, switch, etc. - 61 │ // we check only the first statment + 61 │ // we check only the first statement > 62 │ const arrowFn = (a: number) => { │ ^^^^^^^^^^^^^^^^ > 63 │ if (a === 1) { diff --git a/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx b/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx index dcb685923f97..b656b9b94cc8 100644 --- a/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx +++ b/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx @@ -149,6 +149,6 @@ f(1) f((-1)) // type predicate -function isFourtyTwo(num): num is 42 { +function isFortyTwo(num): num is 42 { return true; } diff --git a/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx.snap b/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx.snap index 853cbb6c30ce..4e4febb534b0 100644 --- a/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx.snap +++ b/crates/biome_js_analyze/tests/specs/style/noMagicNumbers/valid.tsx.snap @@ -155,7 +155,7 @@ f(1) f((-1)) // type predicate -function isFourtyTwo(num): num is 42 { +function isFortyTwo(num): num is 42 { return true; } diff --git a/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js b/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js index d1094a14f586..aad2153bc760 100644 --- a/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js +++ b/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js @@ -14,7 +14,7 @@ function f (x) { if (x > 0 && x < 5) { switch (x) { case 0: - f(); // fallthough + f(); // fallthrough default: return 0; } diff --git a/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js.snap b/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js.snap index dc1128736ba3..604993e2fe24 100644 --- a/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js.snap +++ b/crates/biome_js_analyze/tests/specs/style/noUselessElse/missed.js.snap @@ -21,7 +21,7 @@ function f (x) { if (x > 0 && x < 5) { switch (x) { case 0: - f(); // fallthough + f(); // fallthrough default: return 0; } diff --git a/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_igore_constant_export.jsx b/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_ignored_constant_export.jsx similarity index 100% rename from crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_igore_constant_export.jsx rename to crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_ignored_constant_export.jsx diff --git a/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_igore_constant_export.jsx.snap b/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_ignored_constant_export.jsx.snap similarity index 81% rename from crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_igore_constant_export.jsx.snap rename to crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_ignored_constant_export.jsx.snap index 35a106c86c78..76a7adb16a76 100644 --- a/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_igore_constant_export.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_ignored_constant_export.jsx.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: valid_component_and_constant_with_igore_constant_export.jsx +expression: valid_component_and_constant_with_ignored_constant_export.jsx --- # Input ```jsx diff --git a/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_igore_constant_export.options.json b/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_ignored_constant_export.options.json similarity index 100% rename from crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_igore_constant_export.options.json rename to crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_constant_with_ignored_constant_export.options.json diff --git a/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_igore_constant_export.jsx.snap b/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_ignored_constant_export.jsx.snap similarity index 61% rename from crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_igore_constant_export.jsx.snap rename to crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_ignored_constant_export.jsx.snap index ab0a4f1c07c4..e2edc981cd20 100644 --- a/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_igore_constant_export.jsx.snap +++ b/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_ignored_constant_export.jsx.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: valid_component_and_number_constant_with_igore_constant_export.jsx +expression: valid_component_and_number_constant_with_ignored_constant_export.jsx --- # Input ```jsx diff --git a/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_igore_constant_export.options.json b/crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_ignored_constant_export.options.json similarity index 100% rename from crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_igore_constant_export.options.json rename to crates/biome_js_analyze/tests/specs/style/useComponentExportOnlyModules/valid_component_and_number_constant_with_ignored_constant_export.options.json diff --git a/crates/biome_js_analyze/tests/specs/style/useConst/valid.jsonc b/crates/biome_js_analyze/tests/specs/style/useConst/valid.jsonc index d86eb696403e..472e5b5442cf 100644 --- a/crates/biome_js_analyze/tests/specs/style/useConst/valid.jsonc +++ b/crates/biome_js_analyze/tests/specs/style/useConst/valid.jsonc @@ -100,7 +100,7 @@ "let { itemId, list } = {}, obj = [], total = 0; total = 9; console.log(itemId, list, obj, total);", "let [ itemId, list ] = [], total = 0; total = 9; console.log(itemId, list, total);", - // Read before an assignement + // Read before an assignment "let x; x; x = 0;", "let x; { x; }; x = 0;", "let x; { { x; } }; x = 0;" diff --git a/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js b/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentHigherPrecedence.js similarity index 100% rename from crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js rename to crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentHigherPrecedence.js diff --git a/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js.snap b/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentHigherPrecedence.js.snap similarity index 81% rename from crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js.snap rename to crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentHigherPrecedence.js.snap index c423910ada92..8432a8ca8e7a 100644 --- a/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentHigherPrecedence.js.snap +++ b/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentHigherPrecedence.js.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: invalidBaseExpoentHigherPrecedence.js +expression: invalidBaseExponentHigherPrecedence.js --- # Input ```js @@ -19,7 +19,7 @@ expression: invalidBaseExpoentHigherPrecedence.js # Diagnostics ``` -invalidBaseExpoentHigherPrecedence.js:2:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:2:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -41,7 +41,7 @@ invalidBaseExpoentHigherPrecedence.js:2:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:3:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:3:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -65,7 +65,7 @@ invalidBaseExpoentHigherPrecedence.js:3:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:4:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:4:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -89,7 +89,7 @@ invalidBaseExpoentHigherPrecedence.js:4:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:5:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:5:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -113,7 +113,7 @@ invalidBaseExpoentHigherPrecedence.js:5:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:6:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:6:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -137,7 +137,7 @@ invalidBaseExpoentHigherPrecedence.js:6:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:7:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:7:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -161,7 +161,7 @@ invalidBaseExpoentHigherPrecedence.js:7:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:8:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:8:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -185,7 +185,7 @@ invalidBaseExpoentHigherPrecedence.js:8:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:9:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:9:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -209,7 +209,7 @@ invalidBaseExpoentHigherPrecedence.js:9:2 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentHigherPrecedence.js:10:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ +invalidBaseExponentHigherPrecedence.js:10:2 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. diff --git a/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js b/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentLowerPrecedence.js similarity index 100% rename from crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js rename to crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentLowerPrecedence.js diff --git a/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js.snap b/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentLowerPrecedence.js.snap similarity index 84% rename from crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js.snap rename to crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentLowerPrecedence.js.snap index f677af157965..7bd85bfff587 100644 --- a/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExpoentLowerPrecedence.js.snap +++ b/crates/biome_js_analyze/tests/specs/style/useExponentiationOperator/invalidBaseExponentLowerPrecedence.js.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: invalidBaseExpoentLowerPrecedence.js +expression: invalidBaseExponentLowerPrecedence.js --- # Input ```js @@ -21,7 +21,7 @@ function *f() { Math.pow(yield, yield) } # Diagnostics ``` -invalidBaseExpoentLowerPrecedence.js:2:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:2:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -43,7 +43,7 @@ invalidBaseExpoentLowerPrecedence.js:2:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:3:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:3:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -67,7 +67,7 @@ invalidBaseExpoentLowerPrecedence.js:3:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:4:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:4:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -91,7 +91,7 @@ invalidBaseExpoentLowerPrecedence.js:4:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:5:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:5:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -115,7 +115,7 @@ invalidBaseExpoentLowerPrecedence.js:5:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:6:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:6:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -139,7 +139,7 @@ invalidBaseExpoentLowerPrecedence.js:6:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:7:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:7:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -163,7 +163,7 @@ invalidBaseExpoentLowerPrecedence.js:7:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:8:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:8:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -187,7 +187,7 @@ invalidBaseExpoentLowerPrecedence.js:8:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:9:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:9:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -211,7 +211,7 @@ invalidBaseExpoentLowerPrecedence.js:9:1 lint/style/useExponentiationOperator F ``` ``` -invalidBaseExpoentLowerPrecedence.js:10:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:10:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -235,7 +235,7 @@ invalidBaseExpoentLowerPrecedence.js:10:1 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentLowerPrecedence.js:11:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:11:1 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. @@ -259,7 +259,7 @@ invalidBaseExpoentLowerPrecedence.js:11:1 lint/style/useExponentiationOperator ``` ``` -invalidBaseExpoentLowerPrecedence.js:12:17 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ +invalidBaseExponentLowerPrecedence.js:12:17 lint/style/useExponentiationOperator FIXABLE ━━━━━━━━━━ i Use the '**' operator instead of 'Math.pow'. diff --git a/crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namesapce-imports.ts b/crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namespace-imports.ts similarity index 100% rename from crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namesapce-imports.ts rename to crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namespace-imports.ts diff --git a/crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namesapce-imports.ts.snap b/crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namespace-imports.ts.snap similarity index 87% rename from crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namesapce-imports.ts.snap rename to crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namespace-imports.ts.snap index 099e00fb63d0..b33bb47b6f1d 100644 --- a/crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namesapce-imports.ts.snap +++ b/crates/biome_js_analyze/tests/specs/style/useImportType/invalid-namespace-imports.ts.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: invalid-namesapce-imports.ts +expression: invalid-namespace-imports.ts --- # Input ```ts @@ -13,7 +13,7 @@ let a: A.Type1; # Diagnostics ``` -invalid-namesapce-imports.ts:1:8 lint/style/useImportType FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalid-namespace-imports.ts:1:8 lint/style/useImportType FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! All these imports are only used as types. diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.options.json b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.options.json index b67d9d25a56c..bac4dc43385d 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.options.json +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.options.json @@ -8,7 +8,7 @@ "options": { "conventions": [ { - "match": "aSepcial_CASE|(.*)" + "match": "aSpecial_CASE|(.*)" } ] } diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts index ff60210dedaa..c25a2f369d07 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts @@ -1,2 +1,2 @@ -const aSepcial_CASE = 0; // valid -const aSepcial_CASE_2 = 0; // invalid \ No newline at end of file +const aSpecial_CASE = 0; // valid +const aSpecial_CASE_2 = 0; // invalid \ No newline at end of file diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts.snap b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts.snap index 06d393aaface..d784f16ecfed 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts.snap +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidCustomStyleExceptions.ts.snap @@ -5,8 +5,8 @@ snapshot_kind: text --- # Input ```ts -const aSepcial_CASE = 0; // valid -const aSepcial_CASE_2 = 0; // invalid +const aSpecial_CASE = 0; // valid +const aSpecial_CASE_2 = 0; // invalid ``` # Diagnostics @@ -15,15 +15,15 @@ invalidCustomStyleExceptions.ts:2:7 lint/style/useNamingConvention FIXABLE ━ i This global const name should be in camelCase or PascalCase or CONSTANT_CASE. - 1 │ const aSepcial_CASE = 0; // valid - > 2 │ const aSepcial_CASE_2 = 0; // invalid + 1 │ const aSpecial_CASE = 0; // valid + > 2 │ const aSpecial_CASE_2 = 0; // invalid │ ^^^^^^^^^^^^^^^ i Safe fix: Rename this symbol in camelCase. - 1 1 │ const aSepcial_CASE = 0; // valid - 2 │ - const·aSepcial_CASE_2·=·0;·//·invalid - 2 │ + const·aSepcialCase2·=·0;·//·invalid + 1 1 │ const aSpecial_CASE = 0; // valid + 2 │ - const·aSpecial_CASE_2·=·0;·//·invalid + 2 │ + const·aSpecialCase2·=·0;·//·invalid ``` diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPorpertyShorthyand.ts b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPropertyShorthand.ts similarity index 100% rename from crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPorpertyShorthyand.ts rename to crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPropertyShorthand.ts diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPorpertyShorthyand.ts.snap b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPropertyShorthand.ts.snap similarity index 63% rename from crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPorpertyShorthyand.ts.snap rename to crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPropertyShorthand.ts.snap index 1f4b9c3ca1f6..e07c4d4da2c7 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPorpertyShorthyand.ts.snap +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/invalidPropertyShorthand.ts.snap @@ -1,6 +1,6 @@ --- source: crates/biome_js_analyze/tests/spec_tests.rs -expression: invalidPorpertyShorthyand.ts +expression: invalidPropertyShorthand.ts --- # Input ```ts @@ -14,7 +14,7 @@ const SERVICE = { # Diagnostics ``` -invalidPorpertyShorthyand.ts:4:3 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ +invalidPropertyShorthand.ts:4:3 lint/style/useNamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ i This object property name should be in camelCase. diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.options.json b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.options.json index b67d9d25a56c..bac4dc43385d 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.options.json +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.options.json @@ -8,7 +8,7 @@ "options": { "conventions": [ { - "match": "aSepcial_CASE|(.*)" + "match": "aSpecial_CASE|(.*)" } ] } diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts index 06c3498073a4..308c08fdcdb9 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts @@ -1,2 +1,2 @@ /* should not generate diagnostics */ -const aSepcial_CASE = 0; \ No newline at end of file +const aSpecial_CASE = 0; \ No newline at end of file diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts.snap b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts.snap index c12ae7fcc4ce..a02bfe8aeb80 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts.snap +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyle.ts.snap @@ -5,5 +5,5 @@ expression: validCustomStyle.ts # Input ```ts /* should not generate diagnostics */ -const aSepcial_CASE = 0; +const aSpecial_CASE = 0; ``` diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.options.json b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.options.json index b67d9d25a56c..bac4dc43385d 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.options.json +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.options.json @@ -8,7 +8,7 @@ "options": { "conventions": [ { - "match": "aSepcial_CASE|(.*)" + "match": "aSpecial_CASE|(.*)" } ] } diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts index 06c3498073a4..308c08fdcdb9 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts @@ -1,2 +1,2 @@ /* should not generate diagnostics */ -const aSepcial_CASE = 0; \ No newline at end of file +const aSpecial_CASE = 0; \ No newline at end of file diff --git a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts.snap b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts.snap index 238f20e7e8ea..9588d662a837 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts.snap +++ b/crates/biome_js_analyze/tests/specs/style/useNamingConvention/validCustomStyleExceptions.ts.snap @@ -5,5 +5,5 @@ expression: validCustomStyleExceptions.ts # Input ```ts /* should not generate diagnostics */ -const aSepcial_CASE = 0; +const aSpecial_CASE = 0; ``` diff --git a/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js b/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js index f2460481f738..bca86daa89c3 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js +++ b/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js @@ -71,12 +71,12 @@ function foo() { globalThis.parseFloat(foo); -// Biome doesn't suport `global` for global namespacing +// Biome doesn't support `global` for global namespacing // global.parseFloat(foo); window.parseFloat(foo); -// Biome doesn't suport `self` for global namespacing +// Biome doesn't support `self` for global namespacing // self.parseFloat(foo); globalThis.NaN - globalThis.Infinity; diff --git a/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js.snap b/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js.snap index 1b2470a9053c..589efa283b9e 100644 --- a/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js.snap +++ b/crates/biome_js_analyze/tests/specs/style/useNumberNamespace/invalid.js.snap @@ -77,12 +77,12 @@ function foo() { globalThis.parseFloat(foo); -// Biome doesn't suport `global` for global namespacing +// Biome doesn't support `global` for global namespacing // global.parseFloat(foo); window.parseFloat(foo); -// Biome doesn't suport `self` for global namespacing +// Biome doesn't support `self` for global namespacing // self.parseFloat(foo); globalThis.NaN - globalThis.Infinity; @@ -1030,7 +1030,7 @@ invalid.js:72:1 lint/style/useNumberNamespace FIXABLE ━━━━━━━━ > 72 │ globalThis.parseFloat(foo); │ ^^^^^^^^^^^^^^^^^^^^^ 73 │ - 74 │ // Biome doesn't suport `global` for global namespacing + 74 │ // Biome doesn't support `global` for global namespacing i ES2015 moved some globals into the Number namespace for consistency. @@ -1041,7 +1041,7 @@ invalid.js:72:1 lint/style/useNumberNamespace FIXABLE ━━━━━━━━ 72 │ - globalThis.parseFloat(foo); 72 │ + globalThis.Number.parseFloat(foo); 73 73 │ - 74 74 │ // Biome doesn't suport `global` for global namespacing + 74 74 │ // Biome doesn't support `global` for global namespacing ``` @@ -1056,7 +1056,7 @@ invalid.js:77:1 lint/style/useNumberNamespace FIXABLE ━━━━━━━━ > 77 │ window.parseFloat(foo); │ ^^^^^^^^^^^^^^^^^ 78 │ - 79 │ // Biome doesn't suport `self` for global namespacing + 79 │ // Biome doesn't support `self` for global namespacing i ES2015 moved some globals into the Number namespace for consistency. @@ -1067,7 +1067,7 @@ invalid.js:77:1 lint/style/useNumberNamespace FIXABLE ━━━━━━━━ 77 │ - window.parseFloat(foo); 77 │ + window.Number.parseFloat(foo); 78 78 │ - 79 79 │ // Biome doesn't suport `self` for global namespacing + 79 79 │ // Biome doesn't support `self` for global namespacing ``` diff --git a/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts b/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts index 02ec12f8bab0..96d64199e87f 100644 --- a/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts +++ b/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts @@ -22,7 +22,7 @@ interface Overloaded { (id: number): string; } -// this is equivelent to Overloaded interface. +// this is equivalent to Overloaded interface. type Intersection = ((data: string) => number) & ((id: number) => string); interface ReturnsSelf { diff --git a/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts.snap b/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts.snap index 7addcbcc21ba..49eeb17fb003 100644 --- a/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts.snap +++ b/crates/biome_js_analyze/tests/specs/style/useShorthandFunctionType/valid.ts.snap @@ -28,7 +28,7 @@ interface Overloaded { (id: number): string; } -// this is equivelent to Overloaded interface. +// this is equivalent to Overloaded interface. type Intersection = ((data: string) => number) & ((id: number) => string); interface ReturnsSelf { diff --git a/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js b/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js index f4eb0cf7d3cf..0c7f64f8f71b 100644 --- a/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js +++ b/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js @@ -1,4 +1,4 @@ --0 /** commnet **/ === 4; +-0 /** comment **/ === 4; -0 // comment === 4; diff --git a/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js.snap b/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js.snap index 62ff3410a616..21e5b8e3b197 100644 --- a/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js.snap +++ b/crates/biome_js_analyze/tests/specs/suspicious/noCompareNegZero/invalidComments.js.snap @@ -5,7 +5,7 @@ snapshot_kind: text --- # Input ```js --0 /** commnet **/ === 4; +-0 /** comment **/ === 4; -0 // comment === 4; @@ -19,14 +19,14 @@ invalidComments.js:1:1 lint/suspicious/noCompareNegZero FIXABLE ━━━━ × Do not use the === operator to compare against -0. - > 1 │ -0 /** commnet **/ === 4; + > 1 │ -0 /** comment **/ === 4; │ ^^^^^^^^^^^^^^^^^^^^^^^^ 2 │ -0 3 │ // comment i Safe fix: Replace -0 with 0 - 1 │ -0·/**·commnet·**/·===·4; + 1 │ -0·/**·comment·**/·===·4; │ - ``` @@ -36,7 +36,7 @@ invalidComments.js:2:1 lint/suspicious/noCompareNegZero FIXABLE ━━━━ × Do not use the === operator to compare against -0. - 1 │ -0 /** commnet **/ === 4; + 1 │ -0 /** comment **/ === 4; > 2 │ -0 │ ^^ > 3 │ // comment diff --git a/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts b/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts index 1a09015375c7..ce4eea51011e 100644 --- a/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts +++ b/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts @@ -30,10 +30,10 @@ export function Organization(name: string): Organization { } // Interface merging -export interface Splitted { +export interface Split { f(): void; } -export interface Splitted { +export interface Split { g(): void; } diff --git a/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts.snap b/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts.snap index 9acd7054d6a9..0ae434f49922 100644 --- a/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts.snap +++ b/crates/biome_js_analyze/tests/specs/suspicious/noRedeclare/valid-declaration-merging.ts.snap @@ -36,10 +36,10 @@ export function Organization(name: string): Organization { } // Interface merging -export interface Splitted { +export interface Split { f(): void; } -export interface Splitted { +export interface Split { g(): void; } diff --git a/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js b/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js index 63a015598ad7..e7e7b177d768 100644 --- a/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js +++ b/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js @@ -1,4 +1,4 @@ /* should not generate diagnostics */ import { b as Array } from "mod" const a = new Array(); -const arr = a instanceof Arrray; +const arr = a instanceof Array; diff --git a/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js.snap b/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js.snap index c9ecf2f6731d..423e6aecb886 100644 --- a/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js.snap +++ b/crates/biome_js_analyze/tests/specs/suspicious/useIsArray/valid-shadowing.js.snap @@ -7,6 +7,6 @@ expression: valid-shadowing.js /* should not generate diagnostics */ import { b as Array } from "mod" const a = new Array(); -const arr = a instanceof Arrray; +const arr = a instanceof Array; ```