diff --git a/crates/swc/tests/deno-unit/README.md b/crates/swc/tests/deno-unit/README.md index b5040ea670a..cde0ce3af99 100644 --- a/crates/swc/tests/deno-unit/README.md +++ b/crates/swc/tests/deno-unit/README.md @@ -26,7 +26,7 @@ unitTest({ ); ``` -`unitTest` is is a wrapper function that enhances `Deno.test()` API in several +`unitTest` is a wrapper function that enhances `Deno.test()` API in several ways: - ability to conditionally skip tests using `UnitTestOptions.skip` diff --git a/crates/swc_ecma_transforms_base/src/rename/mod.rs b/crates/swc_ecma_transforms_base/src/rename/mod.rs index 2f00233b56d..d9b484f131b 100644 --- a/crates/swc_ecma_transforms_base/src/rename/mod.rs +++ b/crates/swc_ecma_transforms_base/src/rename/mod.rs @@ -270,7 +270,7 @@ where // 3. Per-unit renaming // 4. Top level renaming // - // This is because the the top level map may contain a mapping which conflicts + // This is because the top level map may contain a mapping which conflicts // with a map from one of the children. // // See https://github.com/swc-project/swc/pull/7615 diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/branch/tests.rs b/crates/swc_ecma_transforms_optimization/src/simplify/branch/tests.rs index a953ca9e91f..2781d8ff734 100644 --- a/crates/swc_ecma_transforms_optimization/src/simplify/branch/tests.rs +++ b/crates/swc_ecma_transforms_optimization/src/simplify/branch/tests.rs @@ -385,7 +385,7 @@ fn test_remove_useless_ops2() { test("Math.random(f() + g())", "f(),g();"); test("Math.random(f(),g(),h())", "f(),g(),h();"); - // Calls to functions with unknown side-effects are are left. + // Calls to functions with unknown side-effects are left. test_same("f();"); test_same("(function () { f(); })();"); diff --git a/crates/swc_estree_compat/src/babelify/decl.rs b/crates/swc_estree_compat/src/babelify/decl.rs index 0fdb37e3ed6..656f9b0e77c 100644 --- a/crates/swc_estree_compat/src/babelify/decl.rs +++ b/crates/swc_estree_compat/src/babelify/decl.rs @@ -50,7 +50,7 @@ impl Babelify for ClassDecl { let is_abstract = self.class.is_abstract; // NOTE: The body field needs a bit of special handling because babel // represents the body as a node, whereas swc represents it as a vector of - // statements. This means that swc does not have a span corresponding the the + // statements. This means that swc does not have a span corresponding the // class body base node for babel. To solve this, we generate a new span // starting from the end of the identifier to the end of the body. // For example,