diff --git a/src/docs/guide/usage/linter/generated-rules.md b/src/docs/guide/usage/linter/generated-rules.md index 95b6d7c3ed6..61bf5d2c84d 100644 --- a/src/docs/guide/usage/linter/generated-rules.md +++ b/src/docs/guide/usage/linter/generated-rules.md @@ -2,7 +2,7 @@ The progress of all rule implementations is tracked [here](https://github.com/oxc-project/oxc/issues/481). -- Total number of rules: 477 +- Total number of rules: 479 - Rules turned on by default: 123 **Legend for 'Fixable?' column:** @@ -190,12 +190,13 @@ Code that is outright wrong or useless. | [no-conditional-tests](/docs/guide/usage/linter/rules/vitest/no-conditional-tests.html) | vitest | ✅ | | | [require-local-test-context-for-concurrent-snapshots](/docs/guide/usage/linter/rules/vitest/require-local-test-context-for-concurrent-snapshots.html) | vitest | ✅ | 🚧 | -## Perf (8): +## Perf (9): Code that can be written to run faster. | Rule name | Source | Default | Fixable? | | --------------------------- | ---------- | ------- | -------- | | [no-await-in-loop](/docs/guide/usage/linter/rules/eslint/no-await-in-loop.html) | eslint | | | +| [no-useless-call](/docs/guide/usage/linter/rules/eslint/no-useless-call.html) | eslint | | | | [no-accumulating-spread](/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.html) | oxc | | | | [no-array-index-key](/docs/guide/usage/linter/rules/react/no-array-index-key.html) | react | | | | [jsx-no-jsx-as-prop](/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.html) | react_perf | | | @@ -384,7 +385,7 @@ Lints which are rather strict or have occasional false positives. | [prefer-type-error](/docs/guide/usage/linter/rules/unicorn/prefer-type-error.html) | unicorn | | 🛠️ | | [require-number-to-fixed-digits-argument](/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument.html) | unicorn | | 🛠️ | -## Style (124): +## Style (125): Code that should be written in a more idiomatic way. | Rule name | Source | Default | Fixable? | @@ -413,6 +414,7 @@ Code that should be written in a more idiomatic way. | [prefer-exponentiation-operator](/docs/guide/usage/linter/rules/eslint/prefer-exponentiation-operator.html) | eslint | | | | [prefer-numeric-literals](/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals.html) | eslint | | 🛠️ | | [prefer-object-has-own](/docs/guide/usage/linter/rules/eslint/prefer-object-has-own.html) | eslint | | 🛠️ | +| [prefer-object-spread](/docs/guide/usage/linter/rules/eslint/prefer-object-spread.html) | eslint | | 🛠️ | | [prefer-promise-reject-errors](/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.html) | eslint | | | | [prefer-rest-params](/docs/guide/usage/linter/rules/eslint/prefer-rest-params.html) | eslint | | | | [prefer-spread](/docs/guide/usage/linter/rules/eslint/prefer-spread.html) | eslint | | | diff --git a/src/docs/guide/usage/linter/rules/eslint/array-callback-return.md b/src/docs/guide/usage/linter/rules/eslint/array-callback-return.md index 5c2e9e0928e..9215115ebeb 100644 --- a/src/docs/guide/usage/linter/rules/eslint/array-callback-return.md +++ b/src/docs/guide/usage/linter/rules/eslint/array-callback-return.md @@ -27,4 +27,4 @@ foo.map((a) => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/array_callback_return/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/array_callback_return/mod.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/constructor-super.md b/src/docs/guide/usage/linter/rules/eslint/constructor-super.md index 8f4f7efc39b..0f852ebacab 100644 --- a/src/docs/guide/usage/linter/rules/eslint/constructor-super.md +++ b/src/docs/guide/usage/linter/rules/eslint/constructor-super.md @@ -21,4 +21,4 @@ class A extends B { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/constructor_super.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/constructor_super.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/default-case-last.md b/src/docs/guide/usage/linter/rules/eslint/default-case-last.md index 7ff2a4a9076..cb0d342d7da 100644 --- a/src/docs/guide/usage/linter/rules/eslint/default-case-last.md +++ b/src/docs/guide/usage/linter/rules/eslint/default-case-last.md @@ -43,4 +43,4 @@ switch (foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/default_case_last.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/default_case_last.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/default-case.md b/src/docs/guide/usage/linter/rules/eslint/default-case.md index 94e8584ac3c..a4c8c1bc3cc 100644 --- a/src/docs/guide/usage/linter/rules/eslint/default-case.md +++ b/src/docs/guide/usage/linter/rules/eslint/default-case.md @@ -25,4 +25,4 @@ switch (foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/default_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/default_case.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/default-param-last.md b/src/docs/guide/usage/linter/rules/eslint/default-param-last.md index 1a2a72f4305..3140dcd19c3 100644 --- a/src/docs/guide/usage/linter/rules/eslint/default-param-last.md +++ b/src/docs/guide/usage/linter/rules/eslint/default-param-last.md @@ -27,4 +27,4 @@ createUser(undefined, "tabby"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/default_param_last.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/default_param_last.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md b/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md index fa1ef1e7034..54f05a0df67 100644 --- a/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md +++ b/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md @@ -26,4 +26,4 @@ a == b; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/eqeqeq.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/eqeqeq.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/for-direction.md b/src/docs/guide/usage/linter/rules/eslint/for-direction.md index cebfd43d4c3..5fb49706f77 100644 --- a/src/docs/guide/usage/linter/rules/eslint/for-direction.md +++ b/src/docs/guide/usage/linter/rules/eslint/for-direction.md @@ -66,4 +66,4 @@ for (let i = MIN; i <= MAX; i -= 0) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/for_direction.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/for_direction.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/func-names.md b/src/docs/guide/usage/linter/rules/eslint/func-names.md index 86439bf9953..4f7a93072f4 100644 --- a/src/docs/guide/usage/linter/rules/eslint/func-names.md +++ b/src/docs/guide/usage/linter/rules/eslint/func-names.md @@ -80,4 +80,4 @@ Foo.prototype.bar = function () {}; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/func_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/func_names.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/getter-return.md b/src/docs/guide/usage/linter/rules/eslint/getter-return.md index 220ec6c4fef..c85a10512cb 100644 --- a/src/docs/guide/usage/linter/rules/eslint/getter-return.md +++ b/src/docs/guide/usage/linter/rules/eslint/getter-return.md @@ -46,4 +46,4 @@ class Person { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/getter_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/getter_return.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/guard-for-in.md b/src/docs/guide/usage/linter/rules/eslint/guard-for-in.md index 49a495cab6e..cac50ec4017 100644 --- a/src/docs/guide/usage/linter/rules/eslint/guard-for-in.md +++ b/src/docs/guide/usage/linter/rules/eslint/guard-for-in.md @@ -21,4 +21,4 @@ for (key in foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/guard_for_in.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/guard_for_in.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/max-classes-per-file.md b/src/docs/guide/usage/linter/rules/eslint/max-classes-per-file.md index 217e1b229b4..f309d635b90 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-classes-per-file.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-classes-per-file.md @@ -23,4 +23,4 @@ class Bar {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/max_classes_per_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/max_classes_per_file.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/max-lines.md b/src/docs/guide/usage/linter/rules/eslint/max-lines.md index d86c7be8712..4a4ca352e53 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-lines.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-lines.md @@ -19,4 +19,4 @@ Recommendations usually range from 100 to 500 lines. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/max_lines.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/max_lines.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/max-params.md b/src/docs/guide/usage/linter/rules/eslint/max-params.md index f7d3c3f1f91..e061ff2e616 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-params.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-params.md @@ -23,4 +23,4 @@ function foo(bar, baz, qux, qxx) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/max_params.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/max_params.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/new-cap.md b/src/docs/guide/usage/linter/rules/eslint/new-cap.md index 47a235ae692..7d055d4758f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/new-cap.md +++ b/src/docs/guide/usage/linter/rules/eslint/new-cap.md @@ -322,4 +322,4 @@ var friend = new person.acquaintance(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/new_cap.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/new_cap.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-alert.md b/src/docs/guide/usage/linter/rules/eslint/no-alert.md index 4d73e1cbdbe..a343d28d5f0 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-alert.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-alert.md @@ -43,4 +43,4 @@ function foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_alert.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_alert.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-array-constructor.md b/src/docs/guide/usage/linter/rules/eslint/no-array-constructor.md index 45bf0d67858..3a7c3e7d07c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-array-constructor.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-array-constructor.md @@ -39,4 +39,4 @@ let arr3 = new Array(9); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_array_constructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_array_constructor.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-async-promise-executor.md b/src/docs/guide/usage/linter/rules/eslint/no-async-promise-executor.md index f411fe425cf..65db1a178dd 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-async-promise-executor.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-async-promise-executor.md @@ -39,4 +39,4 @@ The executor function can also be an `async function`. However, this is usually ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_async_promise_executor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_async_promise_executor.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-await-in-loop.md b/src/docs/guide/usage/linter/rules/eslint/no-await-in-loop.md index 23b164fe9ae..539f16af039 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-await-in-loop.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-await-in-loop.md @@ -36,4 +36,4 @@ async function good() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_await_in_loop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_await_in_loop.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-bitwise.md b/src/docs/guide/usage/linter/rules/eslint/no-bitwise.md index 20678bd2782..0ba4aa1cf07 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-bitwise.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-bitwise.md @@ -22,4 +22,4 @@ var x = y | z; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_bitwise.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_bitwise.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-caller.md b/src/docs/guide/usage/linter/rules/eslint/no-caller.md index c5d5a4ec784..0796c0e1e32 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-caller.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-caller.md @@ -65,4 +65,4 @@ function foo(n) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_caller.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_caller.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-case-declarations.md b/src/docs/guide/usage/linter/rules/eslint/no-case-declarations.md index 1db555ef4ce..ae2db7ca102 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-case-declarations.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-case-declarations.md @@ -35,4 +35,4 @@ switch (foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_case_declarations.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_case_declarations.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-class-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-class-assign.md index 40eebd69c73..749d276e5d1 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-class-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-class-assign.md @@ -27,4 +27,4 @@ let a = new A(); // Error ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_class_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_class_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-compare-neg-zero.md b/src/docs/guide/usage/linter/rules/eslint/no-compare-neg-zero.md index a544c9248d0..31b353c8ad1 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-compare-neg-zero.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-compare-neg-zero.md @@ -30,4 +30,4 @@ if (x === -0) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_compare_neg_zero.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_compare_neg_zero.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-cond-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-cond-assign.md index 7b015b17b44..26a795c9a22 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-cond-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-cond-assign.md @@ -32,4 +32,4 @@ if ((user.jobTitle = "manager")) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_cond_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_cond_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-console.md b/src/docs/guide/usage/linter/rules/eslint/no-console.md index 7acea0e5ac4..8c835ce4323 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-console.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-console.md @@ -27,4 +27,4 @@ console.log("here"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_console.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_console.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-const-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-const-assign.md index 7585a105b10..fe1512787a2 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-const-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-const-assign.md @@ -41,4 +41,4 @@ b += 1; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_const_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_const_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-constant-binary-expression.md b/src/docs/guide/usage/linter/rules/eslint/no-constant-binary-expression.md index bbc1931d2e8..28bc415f8c8 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-constant-binary-expression.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-constant-binary-expression.md @@ -40,4 +40,4 @@ const isEmpty = x === []; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_constant_binary_expression.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_constant_binary_expression.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-constant-condition.md b/src/docs/guide/usage/linter/rules/eslint/no-constant-condition.md index aab83eac95f..828b3215b5b 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-constant-condition.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-constant-condition.md @@ -57,4 +57,4 @@ while (typeof x === "undefined") { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_constant_condition.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_constant_condition.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-constructor-return.md b/src/docs/guide/usage/linter/rules/eslint/no-constructor-return.md index a6db5e6d8c8..75b484ae0aa 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-constructor-return.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-constructor-return.md @@ -34,4 +34,4 @@ class C { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_constructor_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_constructor_return.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-continue.md b/src/docs/guide/usage/linter/rules/eslint/no-continue.md index a3952679c3a..188d4c9fca4 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-continue.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-continue.md @@ -30,4 +30,4 @@ for (i = 0; i < 10; i++) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_continue.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_continue.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-control-regex.md b/src/docs/guide/usage/linter/rules/eslint/no-control-regex.md index 38093efd4bc..dbab23797f9 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-control-regex.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-control-regex.md @@ -49,4 +49,4 @@ var pattern8 = new RegExp("\\n"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_control_regex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_control_regex.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-debugger.md b/src/docs/guide/usage/linter/rules/eslint/no-debugger.md index ab787918f96..3a6f379632b 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-debugger.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-debugger.md @@ -32,4 +32,4 @@ async function main() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_debugger.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_debugger.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-delete-var.md b/src/docs/guide/usage/linter/rules/eslint/no-delete-var.md index d1628975b57..64550eb4e7f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-delete-var.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-delete-var.md @@ -29,4 +29,4 @@ delete x; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_delete_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_delete_var.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-div-regex.md b/src/docs/guide/usage/linter/rules/eslint/no-div-regex.md index e3a91ffd1ac..b0a399f907c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-div-regex.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-div-regex.md @@ -27,4 +27,4 @@ function bar() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_div_regex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_div_regex.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-dupe-class-members.md b/src/docs/guide/usage/linter/rules/eslint/no-dupe-class-members.md index 2b2197653f5..c717b761635 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-dupe-class-members.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-dupe-class-members.md @@ -32,4 +32,4 @@ a.foo(); // Uncaught TypeError: a.foo is not a function ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_dupe_class_members.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_dupe_class_members.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-dupe-else-if.md b/src/docs/guide/usage/linter/rules/eslint/no-dupe-else-if.md index 40b0f20667b..2c1b7aa5faa 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-dupe-else-if.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-dupe-else-if.md @@ -32,4 +32,4 @@ if (a) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_dupe_else_if.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_dupe_else_if.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-dupe-keys.md b/src/docs/guide/usage/linter/rules/eslint/no-dupe-keys.md index 9de503a029f..bf697737289 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-dupe-keys.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-dupe-keys.md @@ -52,4 +52,4 @@ var foo = { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_dupe_keys.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_dupe_keys.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-duplicate-case.md b/src/docs/guide/usage/linter/rules/eslint/no-duplicate-case.md index 5765cb3a3a5..34631867e5f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-duplicate-case.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-duplicate-case.md @@ -73,4 +73,4 @@ switch (a) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_duplicate_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_duplicate_case.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md b/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md index b764eb100af..bd6fb3518f1 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md @@ -35,4 +35,4 @@ import something from "another-module"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_duplicate_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_duplicate_imports.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-else-return.md b/src/docs/guide/usage/linter/rules/eslint/no-else-return.md index cc729c93e95..584107db2a4 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-else-return.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-else-return.md @@ -167,4 +167,4 @@ function foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_else_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_else_return.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-empty-character-class.md b/src/docs/guide/usage/linter/rules/eslint/no-empty-character-class.md index adede0d904d..09d27f61551 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-empty-character-class.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-empty-character-class.md @@ -24,4 +24,4 @@ var foo = /^abc[]/; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_empty_character_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_empty_character_class.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-empty-function.md b/src/docs/guide/usage/linter/rules/eslint/no-empty-function.md index b881904a155..f0f6bbe637f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-empty-function.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-empty-function.md @@ -39,4 +39,4 @@ const add = (a, b) => a + b; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_empty_function.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_empty_function.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-empty-pattern.md b/src/docs/guide/usage/linter/rules/eslint/no-empty-pattern.md index 064036ba6c7..c34c4243b7f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-empty-pattern.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-empty-pattern.md @@ -66,4 +66,4 @@ function foo({a = []}) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_empty_pattern.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_empty_pattern.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-empty-static-block.md b/src/docs/guide/usage/linter/rules/eslint/no-empty-static-block.md index 6c98521c9d8..7a630afcd5a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-empty-static-block.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-empty-static-block.md @@ -48,4 +48,4 @@ class Bar { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_empty_static_block.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_empty_static_block.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-empty.md b/src/docs/guide/usage/linter/rules/eslint/no-empty.md index 990bd1940a4..d0a6dd1a660 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-empty.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-empty.md @@ -26,4 +26,4 @@ if (condition) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_empty.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_empty.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-eq-null.md b/src/docs/guide/usage/linter/rules/eslint/no-eq-null.md index 0f8937c8c32..d8b419e8672 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-eq-null.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-eq-null.md @@ -49,4 +49,4 @@ if (bang === undefined) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_eq_null.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_eq_null.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-eval.md b/src/docs/guide/usage/linter/rules/eslint/no-eval.md index a63a5b974b2..2ab204f91b8 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-eval.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-eval.md @@ -23,4 +23,4 @@ eval(someString); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_eval.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_eval.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-ex-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-ex-assign.md index a947a49c00f..09c818522a8 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-ex-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-ex-assign.md @@ -32,4 +32,4 @@ try { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_ex_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_ex_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-extend-native.md b/src/docs/guide/usage/linter/rules/eslint/no-extend-native.md index aec6ee326bd..dafc1819a34 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-extend-native.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-extend-native.md @@ -50,4 +50,4 @@ Object.defineProperty(x.prototype, "p", { value: 0 }); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_extend_native.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_extend_native.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-extra-boolean-cast.md b/src/docs/guide/usage/linter/rules/eslint/no-extra-boolean-cast.md index 617aefe3b8a..78639bf145e 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-extra-boolean-cast.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-extra-boolean-cast.md @@ -38,4 +38,4 @@ if (!!foo || bar) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_extra_boolean_cast.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_extra_boolean_cast.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md b/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md index fb7f4d3a8dd..b6ee9d4d948 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md @@ -81,4 +81,4 @@ C: switch (a) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_extra_label.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_extra_label.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-fallthrough.md b/src/docs/guide/usage/linter/rules/eslint/no-fallthrough.md index b657580e1de..c3666867d09 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-fallthrough.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-fallthrough.md @@ -185,4 +185,4 @@ warning because there is nothing to fall through into. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_fallthrough.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_fallthrough.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-func-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-func-assign.md index 26c9fc5e88d..3f7a5865335 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-func-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-func-assign.md @@ -25,4 +25,4 @@ foo = bar; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_func_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_func_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-global-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-global-assign.md index bcd9116d278..4bda650dee5 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-global-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-global-assign.md @@ -24,4 +24,4 @@ Object = null; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_global_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_global_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-import-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-import-assign.md index 6c1b72e1dee..06e4b1e0eaf 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-import-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-import-assign.md @@ -32,4 +32,4 @@ Object.assign(mod_ns, { foo: "foo" }); // ERROR: The members of 'mod_ns' are rea ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_import_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_import_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-inner-declarations.md b/src/docs/guide/usage/linter/rules/eslint/no-inner-declarations.md index d724941ad64..329bbdb4a8b 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-inner-declarations.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-inner-declarations.md @@ -25,4 +25,4 @@ if (test) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_inner_declarations.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_inner_declarations.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-invalid-regexp.md b/src/docs/guide/usage/linter/rules/eslint/no-invalid-regexp.md index 1cbc8c6c961..e00efbcf650 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-invalid-regexp.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-invalid-regexp.md @@ -37,4 +37,4 @@ this.RegExp("["); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_invalid_regexp.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_invalid_regexp.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-irregular-whitespace.md b/src/docs/guide/usage/linter/rules/eslint/no-irregular-whitespace.md index c5c52deabd3..5f8def59b51 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-irregular-whitespace.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-irregular-whitespace.md @@ -27,4 +27,4 @@ function invalidExample() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_irregular_whitespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_irregular_whitespace.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-iterator.md b/src/docs/guide/usage/linter/rules/eslint/no-iterator.md index 84e44885be4..fadaa046395 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-iterator.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-iterator.md @@ -52,4 +52,4 @@ Foo.prototype[Symbol.iterator] = function () { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_iterator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_iterator.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-label-var.md b/src/docs/guide/usage/linter/rules/eslint/no-label-var.md index 105cb20fd0f..777c250e758 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-label-var.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-label-var.md @@ -45,4 +45,4 @@ function bar() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_label_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_label_var.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-labels.md b/src/docs/guide/usage/linter/rules/eslint/no-labels.md index cc752552b5a..f48d7ca0579 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-labels.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-labels.md @@ -104,4 +104,4 @@ label: switch (a) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_labels.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_labels.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md b/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md index df3b2727479..dca17f70931 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md @@ -38,4 +38,4 @@ if (condition) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_lone_blocks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_lone_blocks.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-loss-of-precision.md b/src/docs/guide/usage/linter/rules/eslint/no-loss-of-precision.md index 7f920e9f458..cf006e19f6a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-loss-of-precision.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-loss-of-precision.md @@ -25,4 +25,4 @@ var x = 2e999; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_loss_of_precision.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_loss_of_precision.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-magic-numbers.md b/src/docs/guide/usage/linter/rules/eslint/no-magic-numbers.md index 2addccaa9fd..734a2b59d7a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-magic-numbers.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-magic-numbers.md @@ -134,4 +134,4 @@ type Baz = Parameters[2]; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_magic_numbers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_magic_numbers.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md index 9e02441ea8f..195c40b2305 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md @@ -95,4 +95,4 @@ class Foo { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_multi_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_multi_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-multi-str.md b/src/docs/guide/usage/linter/rules/eslint/no-multi-str.md index d108b958322..9c555d9a5fd 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-multi-str.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-multi-str.md @@ -24,4 +24,4 @@ var x = ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_multi_str.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_multi_str.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md b/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md index c7e4c0a186d..125be2551d6 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md @@ -44,4 +44,4 @@ a ? doSomethingB() : doSomethingC(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_negated_condition.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_negated_condition.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md b/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md index 946423114f4..1b1cab345b6 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md @@ -34,4 +34,4 @@ if (condition1) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_nested_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_nested_ternary.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-new-func.md b/src/docs/guide/usage/linter/rules/eslint/no-new-func.md index c7b74101afa..4733a56bdad 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-new-func.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-new-func.md @@ -36,4 +36,4 @@ let x = function (a, b) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_new_func.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_new_func.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-new-native-nonconstructor.md b/src/docs/guide/usage/linter/rules/eslint/no-new-native-nonconstructor.md index 95ed0f5de56..28276aebb91 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-new-native-nonconstructor.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-new-native-nonconstructor.md @@ -40,4 +40,4 @@ let result = BigInt(9007199254740991); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_new_native_nonconstructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_new_native_nonconstructor.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-new-wrappers.md b/src/docs/guide/usage/linter/rules/eslint/no-new-wrappers.md index 4915dcd0371..80be649650a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-new-wrappers.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-new-wrappers.md @@ -43,4 +43,4 @@ var booleanObject = Boolean(value); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_new_wrappers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_new_wrappers.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-new.md b/src/docs/guide/usage/linter/rules/eslint/no-new.md index 54064026e3a..dfebb6cd198 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-new.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-new.md @@ -22,4 +22,4 @@ new Person(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_new.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-nonoctal-decimal-escape.md b/src/docs/guide/usage/linter/rules/eslint/no-nonoctal-decimal-escape.md index 4cd16660893..f146903065c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-nonoctal-decimal-escape.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-nonoctal-decimal-escape.md @@ -30,4 +30,4 @@ correct: "8"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_nonoctal_decimal_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_nonoctal_decimal_escape.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-obj-calls.md b/src/docs/guide/usage/linter/rules/eslint/no-obj-calls.md index e731683a0cd..57fead79864 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-obj-calls.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-obj-calls.md @@ -49,4 +49,4 @@ let segmenterFrom = Intl.Segmenter("fr", { granularity: "word" }); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_obj_calls.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_obj_calls.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md b/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md index c5e78290eee..5a9978736c2 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md @@ -36,4 +36,4 @@ const createObject = (Object) => new Object(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_object_constructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_object_constructor.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-plusplus.md b/src/docs/guide/usage/linter/rules/eslint/no-plusplus.md index ab8c4e4650a..5854d74a951 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-plusplus.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-plusplus.md @@ -63,4 +63,4 @@ for (let i = 0; i < l; i += 1) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_plusplus.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_plusplus.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-proto.md b/src/docs/guide/usage/linter/rules/eslint/no-proto.md index 6c259014e8a..b655bd9f9ae 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-proto.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-proto.md @@ -34,4 +34,4 @@ obj["__proto__"] = b; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_proto.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_proto.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-prototype-builtins.md b/src/docs/guide/usage/linter/rules/eslint/no-prototype-builtins.md index 05efe446284..3ac5211cf9e 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-prototype-builtins.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-prototype-builtins.md @@ -29,4 +29,4 @@ var barIsEnumerable = foo.propertyIsEnumerable("bar"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_prototype_builtins.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_prototype_builtins.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-redeclare.md b/src/docs/guide/usage/linter/rules/eslint/no-redeclare.md index 2e88286b282..15beb6c00d9 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-redeclare.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-redeclare.md @@ -22,4 +22,4 @@ var a = 10; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_redeclare.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_redeclare.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-regex-spaces.md b/src/docs/guide/usage/linter/rules/eslint/no-regex-spaces.md index b12c7ca52c5..b64fb4c3678 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-regex-spaces.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-regex-spaces.md @@ -30,4 +30,4 @@ var re = /foo bar/; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-restricted-globals.md b/src/docs/guide/usage/linter/rules/eslint/no-restricted-globals.md index 6623983e901..e83c4e3eda2 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-restricted-globals.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-restricted-globals.md @@ -36,4 +36,4 @@ function onClick() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_restricted_globals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_restricted_globals.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md b/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md index 363eb2a08c9..195d0357d77 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md @@ -40,4 +40,4 @@ export { foo } from "bar"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_restricted_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_restricted_imports.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-return-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-return-assign.md index 0b0a38e5794..1a597de7197 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-return-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-return-assign.md @@ -41,4 +41,4 @@ function x() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_return_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_return_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-script-url.md b/src/docs/guide/usage/linter/rules/eslint/no-script-url.md index 43de5ae40ff..e5530127df0 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-script-url.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-script-url.md @@ -30,4 +30,4 @@ location.href = `javascript:void(0)`; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_script_url.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_script_url.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-self-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-self-assign.md index 6cab0c58434..e442c1d0099 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-self-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-self-assign.md @@ -25,4 +25,4 @@ foo = foo; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_self_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_self_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-self-compare.md b/src/docs/guide/usage/linter/rules/eslint/no-self-compare.md index bbb3c57895d..8519c7e97fc 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-self-compare.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-self-compare.md @@ -27,4 +27,4 @@ if (x === x) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_self_compare.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_self_compare.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-setter-return.md b/src/docs/guide/usage/linter/rules/eslint/no-setter-return.md index ab96cbd46a4..a4ae55b5cc7 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-setter-return.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-setter-return.md @@ -30,4 +30,4 @@ class URL { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_setter_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_setter_return.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-shadow-restricted-names.md b/src/docs/guide/usage/linter/rules/eslint/no-shadow-restricted-names.md index 364c62391af..a24c79b043f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-shadow-restricted-names.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-shadow-restricted-names.md @@ -29,4 +29,4 @@ try { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_shadow_restricted_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_shadow_restricted_names.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-sparse-arrays.md b/src/docs/guide/usage/linter/rules/eslint/no-sparse-arrays.md index 0d2eb973594..b7d5838d6ba 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-sparse-arrays.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-sparse-arrays.md @@ -25,4 +25,4 @@ var colors = ["red", , "blue"]; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_sparse_arrays.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_sparse_arrays.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string.md b/src/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string.md index 85487150086..cbfd67da9ac 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string.md @@ -35,4 +35,4 @@ Examples of **incorrect** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_template_curly_in_string.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_template_curly_in_string.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-ternary.md b/src/docs/guide/usage/linter/rules/eslint/no-ternary.md index 127ae8f42c6..c18358acb1c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-ternary.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-ternary.md @@ -21,4 +21,4 @@ var foo = isBar ? baz : qux; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_ternary.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-this-before-super.md b/src/docs/guide/usage/linter/rules/eslint/no-this-before-super.md index 7e905188cc1..526761064ac 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-this-before-super.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-this-before-super.md @@ -31,4 +31,4 @@ class A1 extends B { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_this_before_super.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_this_before_super.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-throw-literal.md b/src/docs/guide/usage/linter/rules/eslint/no-throw-literal.md index cd6a30a5cea..73926b5f494 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-throw-literal.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-throw-literal.md @@ -58,4 +58,4 @@ try { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_throw_literal.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_throw_literal.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-undef.md b/src/docs/guide/usage/linter/rules/eslint/no-undef.md index 9db5ebe95d0..822c96d4eea 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-undef.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-undef.md @@ -22,4 +22,4 @@ var bar = a + 1; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_undef.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_undef.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-undefined.md b/src/docs/guide/usage/linter/rules/eslint/no-undefined.md index cf4eef947c8..4d2dee9599f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-undefined.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-undefined.md @@ -47,4 +47,4 @@ bar(void 0, "lorem"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_undefined.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unexpected-multiline.md b/src/docs/guide/usage/linter/rules/eslint/no-unexpected-multiline.md index 4be619a95ba..67850b9fd49 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unexpected-multiline.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unexpected-multiline.md @@ -52,4 +52,4 @@ foo; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unexpected_multiline.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unexpected_multiline.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md b/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md index f8cc19bfaa9..3c72f1329a2 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md @@ -35,4 +35,4 @@ function foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unreachable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unreachable.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unsafe-finally.md b/src/docs/guide/usage/linter/rules/eslint/no-unsafe-finally.md index 14d97bef2b4..c437c0dd0b3 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unsafe-finally.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unsafe-finally.md @@ -36,4 +36,4 @@ So, when return, throw, break, or continue is used in finally, control flow stat ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unsafe_finally.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unsafe_finally.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unsafe-negation.md b/src/docs/guide/usage/linter/rules/eslint/no-unsafe-negation.md index 8040f9b4dac..81952bc21be 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unsafe-negation.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unsafe-negation.md @@ -32,4 +32,4 @@ if ((!key) in object) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unsafe_negation.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unsafe_negation.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unsafe-optional-chaining.md b/src/docs/guide/usage/linter/rules/eslint/no-unsafe-optional-chaining.md index 970d4e4cc69..85c9b416cd8 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unsafe-optional-chaining.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unsafe-optional-chaining.md @@ -31,4 +31,4 @@ const { bar } = obj?.foo; // TypeError ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md b/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md index 32dbfd0f231..8918ab1c673 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md @@ -31,4 +31,4 @@ const foo = new Set(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unused_expressions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unused_expressions.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unused-labels.md b/src/docs/guide/usage/linter/rules/eslint/no-unused-labels.md index f0777ad2a1c..33e264ed91d 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unused-labels.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unused-labels.md @@ -32,4 +32,4 @@ OUTER_LOOP: for (const student of students) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unused_labels.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unused_labels.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unused-private-class-members.md b/src/docs/guide/usage/linter/rules/eslint/no-unused-private-class-members.md index ee685e8c948..09ad7c6fac8 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unused-private-class-members.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unused-private-class-members.md @@ -80,4 +80,4 @@ class C { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unused_private_class_members.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unused_private_class_members.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unused-vars.md b/src/docs/guide/usage/linter/rules/eslint/no-unused-vars.md index b62fd5010b7..eaa38c0bf7a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unused-vars.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unused-vars.md @@ -180,4 +180,4 @@ var global_var = 42; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_unused_vars/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_unused_vars/mod.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-call.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-call.md new file mode 100644 index 00000000000..97ae52f990e --- /dev/null +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-call.md @@ -0,0 +1,55 @@ + + +# eslint/no-useless-call + +
+
+ +### What it does + +Disallow unnecessary calls to `.call()` and `.apply()` + +### Why is this bad? + +`Function.prototype.call()` and `Function.prototype.apply()` are slower than the normal function invocation. + +This rule compares code statically to check whether or not thisArg is changed. +So if the code about thisArg is a dynamic expression, this rule cannot judge correctly. + +### Examples + +Examples of **incorrect** code for this rule: + +```js +// These are same as `foo(1, 2, 3);` +foo.call(undefined, 1, 2, 3); +foo.apply(undefined, [1, 2, 3]); +foo.call(null, 1, 2, 3); +foo.apply(null, [1, 2, 3]); + +// These are same as `obj.foo(1, 2, 3);` +obj.foo.call(obj, 1, 2, 3); +obj.foo.apply(obj, [1, 2, 3]); +``` + +Examples of **correct** code for this rule: + +```js +// The `this` binding is different. +foo.call(obj, 1, 2, 3); +foo.apply(obj, [1, 2, 3]); +obj.foo.call(null, 1, 2, 3); +obj.foo.apply(null, [1, 2, 3]); +obj.foo.call(otherObj, 1, 2, 3); +obj.foo.apply(otherObj, [1, 2, 3]); + +// The argument list is variadic. +// Those are warned by the `prefer-spread` rule. +foo.apply(undefined, args); +foo.apply(null, args); +obj.foo.apply(obj, args); +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_useless_call.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-catch.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-catch.md index dd73931fff4..46d74183435 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-catch.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-catch.md @@ -31,4 +31,4 @@ try { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_useless_catch.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_useless_catch.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-concat.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-concat.md index f4ef15d4dd8..f98707be6d0 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-concat.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-concat.md @@ -21,4 +21,4 @@ var foo = "a" + "b"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_useless_concat.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_useless_concat.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-constructor.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-constructor.md index 88b342e209c..a6a323cf3ff 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-constructor.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-constructor.md @@ -62,4 +62,4 @@ class D extends A { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_useless_constructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_useless_constructor.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-escape.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-escape.md index 3d15466fdff..835aeff0e5d 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-escape.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-escape.md @@ -61,4 +61,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_useless_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_useless_escape.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-rename.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-rename.md index 95d6a96dc75..f5b0f2cc728 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-rename.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-rename.md @@ -36,4 +36,4 @@ export { baz }; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_useless_rename.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_useless_rename.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-var.md b/src/docs/guide/usage/linter/rules/eslint/no-var.md index 5f2f4657d46..06e8f79cca7 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-var.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-var.md @@ -33,4 +33,4 @@ const CONFIG = {}; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_var.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-void.md b/src/docs/guide/usage/linter/rules/eslint/no-void.md index e5de3d1fc4b..4f78fc56b6b 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-void.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-void.md @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_void.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_void.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/no-with.md b/src/docs/guide/usage/linter/rules/eslint/no-with.md index 76dd5e5ac67..348752c54c9 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-with.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-with.md @@ -26,4 +26,4 @@ with (point) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/no_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/no_with.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-exponentiation-operator.md b/src/docs/guide/usage/linter/rules/eslint/prefer-exponentiation-operator.md index c10fe2fd090..6fa939cbb66 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-exponentiation-operator.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-exponentiation-operator.md @@ -23,4 +23,4 @@ Math.pow(a, b); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/prefer_exponentiation_operator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/prefer_exponentiation_operator.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals.md b/src/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals.md index f84118049b2..cb95bd46e00 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals.md @@ -34,4 +34,4 @@ Number.parseInt("1F7", 16) === 503; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/prefer_numeric_literals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/prefer_numeric_literals.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-object-has-own.md b/src/docs/guide/usage/linter/rules/eslint/prefer-object-has-own.md index 78479d6ae8a..052c272676b 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-object-has-own.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-object-has-own.md @@ -51,4 +51,4 @@ const hasProperty = Object.hasOwn(object, property); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/prefer_object_has_own.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/prefer_object_has_own.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-object-spread.md b/src/docs/guide/usage/linter/rules/eslint/prefer-object-spread.md new file mode 100644 index 00000000000..0c42be6a7bb --- /dev/null +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-object-spread.md @@ -0,0 +1,59 @@ + + +# eslint/prefer-object-spread + +
+ +🛠️ An auto-fix is available for this rule. + +
+ +### What it does + +Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead + +### Why is this bad? + +When `Object.assign` is called using an object literal as the first argument, this rule requires using the object spread syntax instead. This rule also warns on cases where an `Object.assign` call is made using a single argument that is an object literal, in this case, the `Object.assign` call is not needed. + +### Examples + +Examples of **incorrect** code for this rule: + +```js +Object.assign({}, foo); + +Object.assign({}, { foo: "bar" }); + +Object.assign({ foo: "bar" }, baz); + +Object.assign({}, baz, { foo: "bar" }); + +Object.assign({}, { ...baz }); + +// Object.assign with a single argument that is an object literal +Object.assign({}); + +Object.assign({ foo: bar }); +``` + +Examples of **correct** code for this rule: + +```js +({ ...foo }); + +({ ...baz, foo: "bar" }); + +// Any Object.assign call without an object literal as the first argument +Object.assign(foo, { bar: baz }); + +Object.assign(foo, bar); + +Object.assign(foo, { bar, baz }); + +Object.assign(foo, { ...baz }); +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/prefer_object_spread.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md b/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md index 35b9ede03fc..b8b54857d94 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md @@ -56,4 +56,4 @@ Promise.reject(foo); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/prefer_promise_reject_errors.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/prefer_promise_reject_errors.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md b/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md index 762ce9369ea..93824daf5d7 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md @@ -57,4 +57,4 @@ function foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/prefer_rest_params.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/prefer_rest_params.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md b/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md index 11e630353ce..ca2bdf5c6ae 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md @@ -58,4 +58,4 @@ obj.foo.apply(obj, [1, 2, 3]); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/prefer_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/prefer_spread.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/radix.md b/src/docs/guide/usage/linter/rules/eslint/radix.md index d9a77ffddd3..63d9c699e77 100644 --- a/src/docs/guide/usage/linter/rules/eslint/radix.md +++ b/src/docs/guide/usage/linter/rules/eslint/radix.md @@ -25,4 +25,4 @@ var num = parseInt("071", 10); // 71 ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/radix.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/radix.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/require-await.md b/src/docs/guide/usage/linter/rules/eslint/require-await.md index d75d8975862..7108199a52e 100644 --- a/src/docs/guide/usage/linter/rules/eslint/require-await.md +++ b/src/docs/guide/usage/linter/rules/eslint/require-await.md @@ -58,4 +58,4 @@ async function foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/require_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/require_await.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/require-yield.md b/src/docs/guide/usage/linter/rules/eslint/require-yield.md index c31901891d2..14e521c8eac 100644 --- a/src/docs/guide/usage/linter/rules/eslint/require-yield.md +++ b/src/docs/guide/usage/linter/rules/eslint/require-yield.md @@ -26,4 +26,4 @@ function* foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/require_yield.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/require_yield.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/sort-imports.md b/src/docs/guide/usage/linter/rules/eslint/sort-imports.md index ffd34a1e108..28b65ec10dc 100644 --- a/src/docs/guide/usage/linter/rules/eslint/sort-imports.md +++ b/src/docs/guide/usage/linter/rules/eslint/sort-imports.md @@ -29,4 +29,4 @@ import e from "bar.js"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/sort_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/sort_imports.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/sort-keys.md b/src/docs/guide/usage/linter/rules/eslint/sort-keys.md index 447a0c18a73..cb21193ec9d 100644 --- a/src/docs/guide/usage/linter/rules/eslint/sort-keys.md +++ b/src/docs/guide/usage/linter/rules/eslint/sort-keys.md @@ -39,4 +39,4 @@ let myObj = { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/sort_keys.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/sort_keys.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/sort-vars.md b/src/docs/guide/usage/linter/rules/eslint/sort-vars.md index 2896eaeacb0..639585bbcda 100644 --- a/src/docs/guide/usage/linter/rules/eslint/sort-vars.md +++ b/src/docs/guide/usage/linter/rules/eslint/sort-vars.md @@ -35,4 +35,4 @@ var B, a, c; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/sort_vars.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/sort_vars.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/symbol-description.md b/src/docs/guide/usage/linter/rules/eslint/symbol-description.md index 4b49754ca14..17a5dbb6472 100644 --- a/src/docs/guide/usage/linter/rules/eslint/symbol-description.md +++ b/src/docs/guide/usage/linter/rules/eslint/symbol-description.md @@ -37,4 +37,4 @@ var foo = Symbol(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/symbol_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/symbol_description.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/unicode-bom.md b/src/docs/guide/usage/linter/rules/eslint/unicode-bom.md index ed8e2bf06c6..ac39054dcef 100644 --- a/src/docs/guide/usage/linter/rules/eslint/unicode-bom.md +++ b/src/docs/guide/usage/linter/rules/eslint/unicode-bom.md @@ -28,4 +28,4 @@ var a = 123; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/unicode_bom.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/unicode_bom.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/use-isnan.md b/src/docs/guide/usage/linter/rules/eslint/use-isnan.md index 7871dea255b..86b87df9514 100644 --- a/src/docs/guide/usage/linter/rules/eslint/use-isnan.md +++ b/src/docs/guide/usage/linter/rules/eslint/use-isnan.md @@ -41,4 +41,4 @@ foo > NaN; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/use_isnan.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/use_isnan.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/valid-typeof.md b/src/docs/guide/usage/linter/rules/eslint/valid-typeof.md index e9f911c7674..72e2c9f3e58 100644 --- a/src/docs/guide/usage/linter/rules/eslint/valid-typeof.md +++ b/src/docs/guide/usage/linter/rules/eslint/valid-typeof.md @@ -37,4 +37,4 @@ typeof foo === baz; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/valid_typeof.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/valid_typeof.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md b/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md index bc22106ff4d..7c5a1daa822 100644 --- a/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md +++ b/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md @@ -80,4 +80,4 @@ class C { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/vars_on_top.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/vars_on_top.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/yoda.md b/src/docs/guide/usage/linter/rules/eslint/yoda.md index 4ff489c2795..59dbcd13c3f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/yoda.md +++ b/src/docs/guide/usage/linter/rules/eslint/yoda.md @@ -165,4 +165,4 @@ if (-1 < str.indexOf(substr)) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/eslint/yoda.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/eslint/yoda.rs) diff --git a/src/docs/guide/usage/linter/rules/import/default.md b/src/docs/guide/usage/linter/rules/import/default.md index e1098bb26a4..691dd37803a 100644 --- a/src/docs/guide/usage/linter/rules/import/default.md +++ b/src/docs/guide/usage/linter/rules/import/default.md @@ -48,4 +48,4 @@ import { bar } from "./bar"; // correct usage of named import ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/default.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/default.rs) diff --git a/src/docs/guide/usage/linter/rules/import/export.md b/src/docs/guide/usage/linter/rules/import/export.md index 72772cec2c6..c415c20867d 100644 --- a/src/docs/guide/usage/linter/rules/import/export.md +++ b/src/docs/guide/usage/linter/rules/import/export.md @@ -35,4 +35,4 @@ export * from "./export-all"; // No conflict if export-all.js also exports foo ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/export.rs) diff --git a/src/docs/guide/usage/linter/rules/import/first.md b/src/docs/guide/usage/linter/rules/import/first.md index 99e65da306b..5b2677e2c38 100644 --- a/src/docs/guide/usage/linter/rules/import/first.md +++ b/src/docs/guide/usage/linter/rules/import/first.md @@ -57,4 +57,4 @@ import { x } from "./foo"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/first.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/first.rs) diff --git a/src/docs/guide/usage/linter/rules/import/max-dependencies.md b/src/docs/guide/usage/linter/rules/import/max-dependencies.md index 7f473cefbff..6e5f0587839 100644 --- a/src/docs/guide/usage/linter/rules/import/max-dependencies.md +++ b/src/docs/guide/usage/linter/rules/import/max-dependencies.md @@ -36,4 +36,4 @@ import b from "./b"; // Allowed: 2 dependencies (max: 2) ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/max_dependencies.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/max_dependencies.rs) diff --git a/src/docs/guide/usage/linter/rules/import/named.md b/src/docs/guide/usage/linter/rules/import/named.md index e24d55ab724..c11e2342296 100644 --- a/src/docs/guide/usage/linter/rules/import/named.md +++ b/src/docs/guide/usage/linter/rules/import/named.md @@ -68,4 +68,4 @@ import { SomeNonsenseThatDoesntExist } from "react"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/named.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/named.rs) diff --git a/src/docs/guide/usage/linter/rules/import/namespace.md b/src/docs/guide/usage/linter/rules/import/namespace.md index 1e3d510d298..4ac1f3e14e2 100644 --- a/src/docs/guide/usage/linter/rules/import/namespace.md +++ b/src/docs/guide/usage/linter/rules/import/namespace.md @@ -63,4 +63,4 @@ foo[method](); // Valid: method refers to an exported function ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/namespace.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-amd.md b/src/docs/guide/usage/linter/rules/import/no-amd.md index 762705c72b8..70a1168791d 100644 --- a/src/docs/guide/usage/linter/rules/import/no-amd.md +++ b/src/docs/guide/usage/linter/rules/import/no-amd.md @@ -35,4 +35,4 @@ require(`../name`); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_amd.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_amd.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-commonjs.md b/src/docs/guide/usage/linter/rules/import/no-commonjs.md index 946a119a66b..15240267bc2 100644 --- a/src/docs/guide/usage/linter/rules/import/no-commonjs.md +++ b/src/docs/guide/usage/linter/rules/import/no-commonjs.md @@ -83,4 +83,4 @@ exports.z = function bark() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_commonjs.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_commonjs.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-cycle.md b/src/docs/guide/usage/linter/rules/import/no-cycle.md index 74b96be877e..81e4ea03ba0 100644 --- a/src/docs/guide/usage/linter/rules/import/no-cycle.md +++ b/src/docs/guide/usage/linter/rules/import/no-cycle.md @@ -61,4 +61,4 @@ In this corrected version, `dep-b.js` no longer imports `dep-a.js`, breaking the ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_cycle.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_cycle.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-default-export.md b/src/docs/guide/usage/linter/rules/import/no-default-export.md index 5f3e1b0fedb..5fc6d6cb089 100644 --- a/src/docs/guide/usage/linter/rules/import/no-default-export.md +++ b/src/docs/guide/usage/linter/rules/import/no-default-export.md @@ -37,4 +37,4 @@ export const bar = "bar"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_default_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_default_export.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-duplicates.md b/src/docs/guide/usage/linter/rules/import/no-duplicates.md index 93721c4fd14..fbb7dc75fa5 100644 --- a/src/docs/guide/usage/linter/rules/import/no-duplicates.md +++ b/src/docs/guide/usage/linter/rules/import/no-duplicates.md @@ -42,4 +42,4 @@ import type { d } from "foo"; // `preferInline` is true ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_duplicates.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_duplicates.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-dynamic-require.md b/src/docs/guide/usage/linter/rules/import/no-dynamic-require.md index 5181e3e9b25..0f0a2fb8a7f 100644 --- a/src/docs/guide/usage/linter/rules/import/no-dynamic-require.md +++ b/src/docs/guide/usage/linter/rules/import/no-dynamic-require.md @@ -35,4 +35,4 @@ require(`../name`); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_dynamic_require.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_dynamic_require.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-named-as-default-member.md b/src/docs/guide/usage/linter/rules/import/no-named-as-default-member.md index a548db3cad3..7d997b39684 100644 --- a/src/docs/guide/usage/linter/rules/import/no-named-as-default-member.md +++ b/src/docs/guide/usage/linter/rules/import/no-named-as-default-member.md @@ -49,4 +49,4 @@ import { bar } from "./bar"; // Correct: accessing named export directly ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-named-as-default.md b/src/docs/guide/usage/linter/rules/import/no-named-as-default.md index 20b9fee3a3a..0766c31e828 100644 --- a/src/docs/guide/usage/linter/rules/import/no-named-as-default.md +++ b/src/docs/guide/usage/linter/rules/import/no-named-as-default.md @@ -44,4 +44,4 @@ import foo from "./foo.js"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_named_as_default.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_named_as_default.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-named-default.md b/src/docs/guide/usage/linter/rules/import/no-named-default.md index 449c9945ed6..11391313d8d 100644 --- a/src/docs/guide/usage/linter/rules/import/no-named-default.md +++ b/src/docs/guide/usage/linter/rules/import/no-named-default.md @@ -32,4 +32,4 @@ import foo, { bar } from "./foo.js"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_named_default.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_named_default.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-namespace.md b/src/docs/guide/usage/linter/rules/import/no-namespace.md index 756e4c6e603..778ab4a8192 100644 --- a/src/docs/guide/usage/linter/rules/import/no-namespace.md +++ b/src/docs/guide/usage/linter/rules/import/no-namespace.md @@ -62,4 +62,4 @@ import defaultExport, { isUser } from "./user"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_namespace.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-self-import.md b/src/docs/guide/usage/linter/rules/import/no-self-import.md index 865bedea16e..f9f0052a9a3 100644 --- a/src/docs/guide/usage/linter/rules/import/no-self-import.md +++ b/src/docs/guide/usage/linter/rules/import/no-self-import.md @@ -34,4 +34,4 @@ import bar from "./bar.js"; // Correct: module imports another module ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_self_import.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_self_import.rs) diff --git a/src/docs/guide/usage/linter/rules/import/no-webpack-loader-syntax.md b/src/docs/guide/usage/linter/rules/import/no-webpack-loader-syntax.md index 57422e8a1b0..dc2d5ec4a13 100644 --- a/src/docs/guide/usage/linter/rules/import/no-webpack-loader-syntax.md +++ b/src/docs/guide/usage/linter/rules/import/no-webpack-loader-syntax.md @@ -38,4 +38,4 @@ var theme = require("./theme.css"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/no_webpack_loader_syntax.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/no_webpack_loader_syntax.rs) diff --git a/src/docs/guide/usage/linter/rules/import/unambiguous.md b/src/docs/guide/usage/linter/rules/import/unambiguous.md index 9a8cdf87fca..df004e5c5f7 100644 --- a/src/docs/guide/usage/linter/rules/import/unambiguous.md +++ b/src/docs/guide/usage/linter/rules/import/unambiguous.md @@ -45,4 +45,4 @@ export {}; // simple way to mark side-effects-only file as 'module' without any ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/import/unambiguous.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/import/unambiguous.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/consistent-test-it.md b/src/docs/guide/usage/linter/rules/jest/consistent-test-it.md index 5cb5f24758e..d60c28b8df4 100644 --- a/src/docs/guide/usage/linter/rules/jest/consistent-test-it.md +++ b/src/docs/guide/usage/linter/rules/jest/consistent-test-it.md @@ -91,5 +91,5 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/consistent_test_it.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/consistent_test_it.rs) ``` diff --git a/src/docs/guide/usage/linter/rules/jest/expect-expect.md b/src/docs/guide/usage/linter/rules/jest/expect-expect.md index fbaf4708dba..319591e484a 100644 --- a/src/docs/guide/usage/linter/rules/jest/expect-expect.md +++ b/src/docs/guide/usage/linter/rules/jest/expect-expect.md @@ -38,4 +38,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/expect_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/expect_expect.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/max-expects.md b/src/docs/guide/usage/linter/rules/jest/max-expects.md index 74e2f5b1a06..14ba8fba708 100644 --- a/src/docs/guide/usage/linter/rules/jest/max-expects.md +++ b/src/docs/guide/usage/linter/rules/jest/max-expects.md @@ -40,4 +40,4 @@ it("should not pass", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/max_expects.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/max_expects.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/max-nested-describe.md b/src/docs/guide/usage/linter/rules/jest/max-nested-describe.md index 1b2cc95eba7..53b781f3a5e 100644 --- a/src/docs/guide/usage/linter/rules/jest/max-nested-describe.md +++ b/src/docs/guide/usage/linter/rules/jest/max-nested-describe.md @@ -93,4 +93,4 @@ describe("foo", function () { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/max_nested_describe.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/max_nested_describe.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-alias-methods.md b/src/docs/guide/usage/linter/rules/jest/no-alias-methods.md index e3748da85a4..a4f9b40ae98 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-alias-methods.md +++ b/src/docs/guide/usage/linter/rules/jest/no-alias-methods.md @@ -46,4 +46,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_alias_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_alias_methods.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-commented-out-tests.md b/src/docs/guide/usage/linter/rules/jest/no-commented-out-tests.md index 27cf5b8e010..ab94630b7c4 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-commented-out-tests.md +++ b/src/docs/guide/usage/linter/rules/jest/no-commented-out-tests.md @@ -40,4 +40,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-conditional-expect.md b/src/docs/guide/usage/linter/rules/jest/no-conditional-expect.md index 613f75c635a..9aa8cd5954b 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-conditional-expect.md +++ b/src/docs/guide/usage/linter/rules/jest/no-conditional-expect.md @@ -49,4 +49,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-conditional-in-test.md b/src/docs/guide/usage/linter/rules/jest/no-conditional-in-test.md index d09e6675692..e9b5d0d0461 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-conditional-in-test.md +++ b/src/docs/guide/usage/linter/rules/jest/no-conditional-in-test.md @@ -83,4 +83,4 @@ it("baz", async () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_conditional_in_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_conditional_in_test.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-confusing-set-timeout.md b/src/docs/guide/usage/linter/rules/jest/no-confusing-set-timeout.md index dcfe8fa2aa2..6106e6c3303 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-confusing-set-timeout.md +++ b/src/docs/guide/usage/linter/rules/jest/no-confusing-set-timeout.md @@ -47,4 +47,4 @@ describe("unit test", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_confusing_set_timeout.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_confusing_set_timeout.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-deprecated-functions.md b/src/docs/guide/usage/linter/rules/jest/no-deprecated-functions.md index 1f80ee79bc6..db0b29d4d66 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-deprecated-functions.md +++ b/src/docs/guide/usage/linter/rules/jest/no-deprecated-functions.md @@ -56,4 +56,4 @@ jest.addMatchers; // since Jest 17 ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-disabled-tests.md b/src/docs/guide/usage/linter/rules/jest/no-disabled-tests.md index f09da69a6e7..05b918762a9 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-disabled-tests.md +++ b/src/docs/guide/usage/linter/rules/jest/no-disabled-tests.md @@ -55,4 +55,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-done-callback.md b/src/docs/guide/usage/linter/rules/jest/no-done-callback.md index 4dd4e3c6f68..cd807f8ac55 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-done-callback.md +++ b/src/docs/guide/usage/linter/rules/jest/no-done-callback.md @@ -49,4 +49,4 @@ test("myFunction()", function (done) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_done_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_done_callback.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-duplicate-hooks.md b/src/docs/guide/usage/linter/rules/jest/no-duplicate-hooks.md index 5dc9a671c63..1ef8a18a98d 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-duplicate-hooks.md +++ b/src/docs/guide/usage/linter/rules/jest/no-duplicate-hooks.md @@ -83,4 +83,4 @@ describe("foo", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_duplicate_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_duplicate_hooks.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-export.md b/src/docs/guide/usage/linter/rules/jest/no-export.md index 7aa20d674fa..c389324eeb9 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-export.md +++ b/src/docs/guide/usage/linter/rules/jest/no-export.md @@ -29,4 +29,4 @@ describe("a test", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_export.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-focused-tests.md b/src/docs/guide/usage/linter/rules/jest/no-focused-tests.md index 2caf5bf9918..54f4eee9000 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-focused-tests.md +++ b/src/docs/guide/usage/linter/rules/jest/no-focused-tests.md @@ -53,4 +53,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_focused_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_focused_tests.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-hooks.md b/src/docs/guide/usage/linter/rules/jest/no-hooks.md index c4cb61d2d84..e691eda9c7f 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-hooks.md +++ b/src/docs/guide/usage/linter/rules/jest/no-hooks.md @@ -60,4 +60,4 @@ describe("foo", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_hooks.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-identical-title.md b/src/docs/guide/usage/linter/rules/jest/no-identical-title.md index f5e3b08beb4..6a5a1867a92 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-identical-title.md +++ b/src/docs/guide/usage/linter/rules/jest/no-identical-title.md @@ -41,4 +41,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_identical_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_identical_title.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-interpolation-in-snapshots.md b/src/docs/guide/usage/linter/rules/jest/no-interpolation-in-snapshots.md index 70bd17883fc..a7c427ae6d3 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-interpolation-in-snapshots.md +++ b/src/docs/guide/usage/linter/rules/jest/no-interpolation-in-snapshots.md @@ -37,4 +37,4 @@ expect(errorThrowingFunction).toThrowErrorMatchingInlineSnapshot(`${interpolated ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_interpolation_in_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_interpolation_in_snapshots.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-jasmine-globals.md b/src/docs/guide/usage/linter/rules/jest/no-jasmine-globals.md index 6dbde1b00bb..5b61a12e3ed 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-jasmine-globals.md +++ b/src/docs/guide/usage/linter/rules/jest/no-jasmine-globals.md @@ -26,4 +26,4 @@ test("my test", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_jasmine_globals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_jasmine_globals.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-large-snapshots.md b/src/docs/guide/usage/linter/rules/jest/no-large-snapshots.md index 8c2f0d62145..7adb79e26bf 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-large-snapshots.md +++ b/src/docs/guide/usage/linter/rules/jest/no-large-snapshots.md @@ -90,4 +90,4 @@ line 4 ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_large_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_large_snapshots.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-mocks-import.md b/src/docs/guide/usage/linter/rules/jest/no-mocks-import.md index f11309be46a..bedac9551c6 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-mocks-import.md +++ b/src/docs/guide/usage/linter/rules/jest/no-mocks-import.md @@ -31,4 +31,4 @@ require("thing"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_mocks_import.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_mocks_import.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-restricted-jest-methods.md b/src/docs/guide/usage/linter/rules/jest/no-restricted-jest-methods.md index c115c6d256b..9592d4e6ac9 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-restricted-jest-methods.md +++ b/src/docs/guide/usage/linter/rules/jest/no-restricted-jest-methods.md @@ -30,4 +30,4 @@ test("plays video", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_restricted_jest_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_restricted_jest_methods.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-restricted-matchers.md b/src/docs/guide/usage/linter/rules/jest/no-restricted-matchers.md index fb7cff16c51..6808d05a1cf 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-restricted-matchers.md +++ b/src/docs/guide/usage/linter/rules/jest/no-restricted-matchers.md @@ -32,4 +32,4 @@ describe("when an error happens", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_restricted_matchers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_restricted_matchers.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-standalone-expect.md b/src/docs/guide/usage/linter/rules/jest/no-standalone-expect.md index e54906fd99e..46a8fc7ccd3 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-standalone-expect.md +++ b/src/docs/guide/usage/linter/rules/jest/no-standalone-expect.md @@ -27,4 +27,4 @@ describe("a test", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_standalone_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_standalone_expect.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-test-prefixes.md b/src/docs/guide/usage/linter/rules/jest/no-test-prefixes.md index 9d2d1155258..d36536b24b1 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-test-prefixes.md +++ b/src/docs/guide/usage/linter/rules/jest/no-test-prefixes.md @@ -45,4 +45,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-test-return-statement.md b/src/docs/guide/usage/linter/rules/jest/no-test-return-statement.md index ff093cdfba1..4224b60b0de 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-test-return-statement.md +++ b/src/docs/guide/usage/linter/rules/jest/no-test-return-statement.md @@ -25,4 +25,4 @@ test("one", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_test_return_statement.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_test_return_statement.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/no-untyped-mock-factory.md b/src/docs/guide/usage/linter/rules/jest/no-untyped-mock-factory.md index d83aab1a370..4f44fe8b194 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-untyped-mock-factory.md +++ b/src/docs/guide/usage/linter/rules/jest/no-untyped-mock-factory.md @@ -73,4 +73,4 @@ jest.mock( ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/no_untyped_mock_factory.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/no_untyped_mock_factory.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-called-with.md b/src/docs/guide/usage/linter/rules/jest/prefer-called-with.md index df1c84a083a..519018e6212 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-called-with.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-called-with.md @@ -25,4 +25,4 @@ expect(someFunction).toHaveBeenCalled(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_called_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_called_with.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-comparison-matcher.md b/src/docs/guide/usage/linter/rules/jest/prefer-comparison-matcher.md index 2e07a38c880..6e398511408 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-comparison-matcher.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-comparison-matcher.md @@ -38,4 +38,4 @@ expect(x < "Carl").toBe(true); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_comparison_matcher.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_comparison_matcher.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-each.md b/src/docs/guide/usage/linter/rules/jest/prefer-each.md index 5dedc1061c7..c7b65c2c116 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-each.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-each.md @@ -37,4 +37,4 @@ describe.each(items)("item", (item) => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_each.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_each.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-equality-matcher.md b/src/docs/guide/usage/linter/rules/jest/prefer-equality-matcher.md index e2bb742366d..a08e3e062d3 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-equality-matcher.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-equality-matcher.md @@ -26,4 +26,4 @@ expect(myObj).toStrictEqual(thatObj); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_equality_matcher.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_equality_matcher.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-expect-resolves.md b/src/docs/guide/usage/linter/rules/jest/prefer-expect-resolves.md index beb3bb6451b..180998fac93 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-expect-resolves.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-expect-resolves.md @@ -54,4 +54,4 @@ it("is true", async () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_expect_resolves.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_expect_resolves.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-hooks-in-order.md b/src/docs/guide/usage/linter/rules/jest/prefer-hooks-in-order.md index ce6c841284f..a03c2d1e536 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-hooks-in-order.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-hooks-in-order.md @@ -119,5 +119,5 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_hooks_in_order.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_hooks_in_order.rs) ``` diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-hooks-on-top.md b/src/docs/guide/usage/linter/rules/jest/prefer-hooks-on-top.md index af3e1d0745c..f5389874267 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-hooks-on-top.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-hooks-on-top.md @@ -118,4 +118,4 @@ describe("foo", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_hooks_on_top.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_hooks_on_top.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-jest-mocked.md b/src/docs/guide/usage/linter/rules/jest/prefer-jest-mocked.md index 47b74fa12d2..26cd86691b6 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-jest-mocked.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-jest-mocked.md @@ -40,4 +40,4 @@ jest.mocked([].foo).mockReturnValue(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_jest_mocked.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_jest_mocked.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-lowercase-title.md b/src/docs/guide/usage/linter/rules/jest/prefer-lowercase-title.md index e1dc782f461..e2cc8dae5ce 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-lowercase-title.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-lowercase-title.md @@ -10,7 +10,7 @@ ### What it does -Enforce `it`, `test` and `describe` to have descriptions that begin with a +Enforce `it`, `test`, `describe`, and `bench` to have descriptions that begin with a lowercase letter. This provides more readable test failures. This rule is not enabled by default. @@ -43,12 +43,13 @@ it("adds 1 + 2 to equal 3", () => { ### `ignore` -This array option controls which Jest functions are checked by this rule. There -are three possible values: +This array option controls which Jest or Vitest functions are checked by this rule. There +are four possible values: - `"describe"` - `"test"` - `"it"` +- `"bench"` By default, none of these options are enabled (the equivalent of `{ "ignore": [] }`). @@ -105,6 +106,36 @@ describe("MyClass", () => { }); ``` +### `lowercaseFirstCharacterOnly` + +This option can be set to only validate that the first character of a test name is lowercased. + +Example of **correct** code for the `{ "lowercaseFirstCharacterOnly": true }` option: + +```js +/* eslint vitest/prefer-lowercase-title: ["error", { "lowercaseFirstCharacterOnly": true }] */ +describe("myClass", () => { + describe("myMethod", () => { + it("does things", () => { + // + }); + }); +}); +``` + +Example of **incorrect** code for the `{ "lowercaseFirstCharacterOnly": true }` option: + +```js +/* eslint vitest/prefer-lowercase-title: ["error", { "lowercaseFirstCharacterOnly": true }] */ +describe("MyClass", () => { + describe("MyMethod", () => { + it("does things", () => { + // + }); + }); +}); +``` + ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_lowercase_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_lowercase_title/mod.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-mock-promise-shorthand.md b/src/docs/guide/usage/linter/rules/jest/prefer-mock-promise-shorthand.md index 155709e3670..4211c59a17f 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-mock-promise-shorthand.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-mock-promise-shorthand.md @@ -38,4 +38,4 @@ myFunction.mockResolvedValueOnce(42).mockResolvedValueOnce(42).mockRejectedValue ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_mock_promise_shorthand.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_mock_promise_shorthand.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-spy-on.md b/src/docs/guide/usage/linter/rules/jest/prefer-spy-on.md index 65ab15e313c..89c2310c8ef 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-spy-on.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-spy-on.md @@ -35,4 +35,4 @@ jest.spyOn(Date, "now").mockImplementation(() => 10); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_spy_on.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_spy_on.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-strict-equal.md b/src/docs/guide/usage/linter/rules/jest/prefer-strict-equal.md index 58d11a837de..7fd54e2a09e 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-strict-equal.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-strict-equal.md @@ -24,4 +24,4 @@ expect({ a: "a", b: undefined }).toStrictEqual({ a: "a" }); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-to-be.md b/src/docs/guide/usage/linter/rules/jest/prefer-to-be.md index b169098af6f..ea149e97476 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-to-be.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-to-be.md @@ -36,4 +36,4 @@ expect(loadMessage()).resolves.toEqual("hello world"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_to_be.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_to_be.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-to-contain.md b/src/docs/guide/usage/linter/rules/jest/prefer-to-contain.md index 896a7212b40..d511f7442ef 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-to-contain.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-to-contain.md @@ -32,4 +32,4 @@ expect(a.includes(b)).toStrictEqual(true); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_to_contain.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_to_contain.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-to-have-length.md b/src/docs/guide/usage/linter/rules/jest/prefer-to-have-length.md index fe2c9c04851..eb22b9365b3 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-to-have-length.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-to-have-length.md @@ -35,4 +35,4 @@ expect(files["length"])["not"].toBe(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_to_have_length.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_to_have_length.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-todo.md b/src/docs/guide/usage/linter/rules/jest/prefer-todo.md index 17425db1a9b..840bf1cc13a 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-todo.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-todo.md @@ -29,4 +29,4 @@ test.todo("i need to write this test"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/prefer_todo.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/prefer_todo.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/require-hook.md b/src/docs/guide/usage/linter/rules/jest/require-hook.md index 47a81e22b14..c45a95d291c 100644 --- a/src/docs/guide/usage/linter/rules/jest/require-hook.md +++ b/src/docs/guide/usage/linter/rules/jest/require-hook.md @@ -112,4 +112,4 @@ afterEach(() => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/require_hook.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/require_hook.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/require-to-throw-message.md b/src/docs/guide/usage/linter/rules/jest/require-to-throw-message.md index dfd9129f6e3..18814ff1c35 100644 --- a/src/docs/guide/usage/linter/rules/jest/require-to-throw-message.md +++ b/src/docs/guide/usage/linter/rules/jest/require-to-throw-message.md @@ -34,4 +34,4 @@ test("all the things", async () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/require_to_throw_message.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/require_to_throw_message.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/require-top-level-describe.md b/src/docs/guide/usage/linter/rules/jest/require-top-level-describe.md index c12d049aaa0..6e8b97a7c4f 100644 --- a/src/docs/guide/usage/linter/rules/jest/require-top-level-describe.md +++ b/src/docs/guide/usage/linter/rules/jest/require-top-level-describe.md @@ -66,4 +66,4 @@ using the `maxNumberOfTopLevelDescribes` option: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/require_top_level_describe.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/require_top_level_describe.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/valid-describe-callback.md b/src/docs/guide/usage/linter/rules/jest/valid-describe-callback.md index fd1506a9c5f..cc4a166d47c 100644 --- a/src/docs/guide/usage/linter/rules/jest/valid-describe-callback.md +++ b/src/docs/guide/usage/linter/rules/jest/valid-describe-callback.md @@ -56,4 +56,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/valid-expect.md b/src/docs/guide/usage/linter/rules/jest/valid-expect.md index 49a5a3f6707..5ea36bc1628 100644 --- a/src/docs/guide/usage/linter/rules/jest/valid-expect.md +++ b/src/docs/guide/usage/linter/rules/jest/valid-expect.md @@ -48,4 +48,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/valid_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/valid_expect.rs) diff --git a/src/docs/guide/usage/linter/rules/jest/valid-title.md b/src/docs/guide/usage/linter/rules/jest/valid-title.md index caba1b03aa3..672340b912f 100644 --- a/src/docs/guide/usage/linter/rules/jest/valid-title.md +++ b/src/docs/guide/usage/linter/rules/jest/valid-title.md @@ -63,4 +63,4 @@ mustMatch?: Partial> | string; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jest/valid_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jest/valid_title.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/check-access.md b/src/docs/guide/usage/linter/rules/jsdoc/check-access.md index 0d71221e947..8c5f61c7dae 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/check-access.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/check-access.md @@ -40,4 +40,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/check_access.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/check_access.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/check-property-names.md b/src/docs/guide/usage/linter/rules/jsdoc/check-property-names.md index 281f0d40334..fe31d1138c4 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/check-property-names.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/check-property-names.md @@ -50,4 +50,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/check_property_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/check_property_names.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/check-tag-names.md b/src/docs/guide/usage/linter/rules/jsdoc/check-tag-names.md index 18f8616e17e..125f2692e36 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/check-tag-names.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/check-tag-names.md @@ -39,4 +39,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/check_tag_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/check_tag_names.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/empty-tags.md b/src/docs/guide/usage/linter/rules/jsdoc/empty-tags.md index 7da6fcea9a3..5ecc36c9916 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/empty-tags.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/empty-tags.md @@ -52,4 +52,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/empty_tags.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/empty_tags.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/implements-on-classes.md b/src/docs/guide/usage/linter/rules/jsdoc/implements-on-classes.md index 319a4990125..b6da4602b11 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/implements-on-classes.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/implements-on-classes.md @@ -46,4 +46,4 @@ function quux() {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/implements_on_classes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/implements_on_classes.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md b/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md index cb0ff804efd..ea4892b6214 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md @@ -39,4 +39,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/no_defaults.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/no_defaults.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-param-description.md b/src/docs/guide/usage/linter/rules/jsdoc/require-param-description.md index 8726095ea3b..fdab47fd7d2 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-param-description.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-param-description.md @@ -31,4 +31,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_param_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_param_description.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-param-name.md b/src/docs/guide/usage/linter/rules/jsdoc/require-param-name.md index bce3bef5cac..d6bab447ca5 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-param-name.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-param-name.md @@ -31,4 +31,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_param_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_param_name.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-param-type.md b/src/docs/guide/usage/linter/rules/jsdoc/require-param-type.md index f22e9e14432..51b4aa73d88 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-param-type.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-param-type.md @@ -31,4 +31,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_param_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_param_type.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-param.md b/src/docs/guide/usage/linter/rules/jsdoc/require-param.md index 74115c94a4b..0d2c813000d 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-param.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-param.md @@ -31,4 +31,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_param.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_param.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-property-description.md b/src/docs/guide/usage/linter/rules/jsdoc/require-property-description.md index 398a599b500..7fdd7678416 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-property-description.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-property-description.md @@ -38,4 +38,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_property_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_property_description.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-property-name.md b/src/docs/guide/usage/linter/rules/jsdoc/require-property-name.md index 953235610e4..13d229b6ee0 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-property-name.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-property-name.md @@ -38,4 +38,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_property_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_property_name.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-property-type.md b/src/docs/guide/usage/linter/rules/jsdoc/require-property-type.md index 7b12df8875b..bd06a673e4b 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-property-type.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-property-type.md @@ -38,4 +38,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_property_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_property_type.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-property.md b/src/docs/guide/usage/linter/rules/jsdoc/require-property.md index 81acad964f4..c5f8b6051b6 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-property.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-property.md @@ -47,4 +47,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_property.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_property.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-returns-description.md b/src/docs/guide/usage/linter/rules/jsdoc/require-returns-description.md index e6b537808ae..b055a2e0dfa 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-returns-description.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-returns-description.md @@ -32,4 +32,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_returns_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_returns_description.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-returns-type.md b/src/docs/guide/usage/linter/rules/jsdoc/require-returns-type.md index 5d1df8662bd..bcb124b014a 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-returns-type.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-returns-type.md @@ -31,4 +31,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_returns_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_returns_type.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-returns.md b/src/docs/guide/usage/linter/rules/jsdoc/require-returns.md index c8bc2bf97e5..68f0a1f5077 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-returns.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-returns.md @@ -44,4 +44,4 @@ function quux() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_returns.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_returns.rs) diff --git a/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md b/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md index fdb938f43e3..42c20c9935f 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md @@ -44,4 +44,4 @@ function* quux(foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsdoc/require_yields.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsdoc/require_yields.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/alt-text.md b/src/docs/guide/usage/linter/rules/jsx_a11y/alt-text.md index afb5c818891..f6c0ec85ffb 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/alt-text.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/alt-text.md @@ -45,4 +45,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/alt_text.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/alt_text.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md index aca7245c7e2..81ecd728d1f 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md @@ -39,4 +39,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/anchor_ambiguous_text.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/anchor_ambiguous_text.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-has-content.md b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-has-content.md index b4a5cb5bc9e..2bd2cd88eb9 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-has-content.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-has-content.md @@ -41,4 +41,4 @@ Alternatively, you may use the `title` prop or the `aria-label` prop. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/anchor_has_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/anchor_has_content.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-is-valid.md b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-is-valid.md index ea32a73bc50..7adb3da84b7 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-is-valid.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-is-valid.md @@ -85,4 +85,4 @@ There are **many reasons** why an anchor should not have a logic and have a corr ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/anchor_is_valid.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/anchor_is_valid.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-activedescendant-has-tabindex.md b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-activedescendant-has-tabindex.md index 047a168dfe5..3bb3fc0c513 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-activedescendant-has-tabindex.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-activedescendant-has-tabindex.md @@ -40,4 +40,4 @@ const Bad =
; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/aria_activedescendant_has_tabindex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/aria_activedescendant_has_tabindex.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-props.md b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-props.md index e37daf31b2d..e9bd94aba1b 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-props.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-props.md @@ -39,4 +39,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-role.md b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-role.md index 0e4e19b247a..2fa3c6997e2 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-role.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-role.md @@ -86,4 +86,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/aria_role.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/aria_role.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-unsupported-elements.md b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-unsupported-elements.md index 091efed8924..110652c16a0 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/aria-unsupported-elements.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/aria-unsupported-elements.md @@ -34,4 +34,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/aria_unsupported_elements.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/aria_unsupported_elements.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/autocomplete-valid.md b/src/docs/guide/usage/linter/rules/jsx_a11y/autocomplete-valid.md index 9ae2740ed66..b71dd4755cc 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/autocomplete-valid.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/autocomplete-valid.md @@ -32,4 +32,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/autocomplete_valid.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/autocomplete_valid.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/click-events-have-key-events.md b/src/docs/guide/usage/linter/rules/jsx_a11y/click-events-have-key-events.md index 69666f80c12..775dbf6b359 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/click-events-have-key-events.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/click-events-have-key-events.md @@ -33,4 +33,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/click_events_have_key_events.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/click_events_have_key_events.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/heading-has-content.md b/src/docs/guide/usage/linter/rules/jsx_a11y/heading-has-content.md index da78f7d38ff..74cfbb5c27c 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/heading-has-content.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/heading-has-content.md @@ -37,4 +37,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/heading_has_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/heading_has_content.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/html-has-lang.md b/src/docs/guide/usage/linter/rules/jsx_a11y/html-has-lang.md index e272ffd2ac6..2ff1b98685c 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/html-has-lang.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/html-has-lang.md @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/html_has_lang.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/html_has_lang.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/iframe-has-title.md b/src/docs/guide/usage/linter/rules/jsx_a11y/iframe-has-title.md index e7a01daeb71..587904f5d88 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/iframe-has-title.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/iframe-has-title.md @@ -46,4 +46,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/img-redundant-alt.md b/src/docs/guide/usage/linter/rules/jsx_a11y/img-redundant-alt.md index 5ad75712151..b9fde11efa5 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/img-redundant-alt.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/img-redundant-alt.md @@ -44,4 +44,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/img_redundant_alt.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/img_redundant_alt.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/label-has-associated-control.md b/src/docs/guide/usage/linter/rules/jsx_a11y/label-has-associated-control.md index 4966555ebdf..97285b45b69 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/label-has-associated-control.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/label-has-associated-control.md @@ -46,4 +46,4 @@ function Foo(props) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/label_has_associated_control.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/label_has_associated_control.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md b/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md index d6eb69a16fe..32139e01548 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md @@ -42,4 +42,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/lang.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/lang.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/media-has-caption.md b/src/docs/guide/usage/linter/rules/jsx_a11y/media-has-caption.md index 27b55be8893..e4af722e3e6 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/media-has-caption.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/media-has-caption.md @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/media_has_caption.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/media_has_caption.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/mouse-events-have-key-events.md b/src/docs/guide/usage/linter/rules/jsx_a11y/mouse-events-have-key-events.md index 77407573900..bd0dbc84cb0 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/mouse-events-have-key-events.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/mouse-events-have-key-events.md @@ -33,4 +33,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/mouse_events_have_key_events.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/mouse_events_have_key_events.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/no-access-key.md b/src/docs/guide/usage/linter/rules/jsx_a11y/no-access-key.md index af4b8d39ce9..9e1325626b1 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/no-access-key.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/no-access-key.md @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/no_access_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/no_access_key.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/no-aria-hidden-on-focusable.md b/src/docs/guide/usage/linter/rules/jsx_a11y/no-aria-hidden-on-focusable.md index f9e2377276f..84d2bf8cb99 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/no-aria-hidden-on-focusable.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/no-aria-hidden-on-focusable.md @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/no_aria_hidden_on_focusable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/no_aria_hidden_on_focusable.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/no-autofocus.md b/src/docs/guide/usage/linter/rules/jsx_a11y/no-autofocus.md index d6f394fa6b5..6076e6d7210 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/no-autofocus.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/no-autofocus.md @@ -56,4 +56,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/no_autofocus.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/no_autofocus.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/no-distracting-elements.md b/src/docs/guide/usage/linter/rules/jsx_a11y/no-distracting-elements.md index 30a40ee5b25..0831a17d772 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/no-distracting-elements.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/no-distracting-elements.md @@ -46,4 +46,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/no_distracting_elements.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/no_distracting_elements.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/no-noninteractive-tabindex.md b/src/docs/guide/usage/linter/rules/jsx_a11y/no-noninteractive-tabindex.md index 5f22d106518..8427c230dee 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/no-noninteractive-tabindex.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/no-noninteractive-tabindex.md @@ -49,4 +49,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/no_noninteractive_tabindex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/no_noninteractive_tabindex.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/no-redundant-roles.md b/src/docs/guide/usage/linter/rules/jsx_a11y/no-redundant-roles.md index fe56541e9db..efe2d3c8d26 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/no-redundant-roles.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/no-redundant-roles.md @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/no_redundant_roles.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/no_redundant_roles.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/prefer-tag-over-role.md b/src/docs/guide/usage/linter/rules/jsx_a11y/prefer-tag-over-role.md index 043a4f8263c..e6376eddd5d 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/prefer-tag-over-role.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/prefer-tag-over-role.md @@ -32,4 +32,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/prefer_tag_over_role.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/prefer_tag_over_role.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/role-has-required-aria-props.md b/src/docs/guide/usage/linter/rules/jsx_a11y/role-has-required-aria-props.md index 09b5b134e4c..180eb8d5f3e 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/role-has-required-aria-props.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/role-has-required-aria-props.md @@ -34,4 +34,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/role_has_required_aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/role_has_required_aria_props.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/role-supports-aria-props.md b/src/docs/guide/usage/linter/rules/jsx_a11y/role-supports-aria-props.md index 1c8556c5018..982bab717ec 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/role-supports-aria-props.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/role-supports-aria-props.md @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/role_supports_aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/role_supports_aria_props.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/scope.md b/src/docs/guide/usage/linter/rules/jsx_a11y/scope.md index 9de2eba0f6e..a41fb5dfd96 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/scope.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/scope.md @@ -38,4 +38,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/scope.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/scope.rs) diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/tabindex-no-positive.md b/src/docs/guide/usage/linter/rules/jsx_a11y/tabindex-no-positive.md index 446df68d375..06041d63e14 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/tabindex-no-positive.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/tabindex-no-positive.md @@ -39,4 +39,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/jsx_a11y/tabindex_no_positive.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/jsx_a11y/tabindex_no_positive.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/google-font-display.md b/src/docs/guide/usage/linter/rules/nextjs/google-font-display.md index 273218c7fb2..a7c87574a45 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/google-font-display.md +++ b/src/docs/guide/usage/linter/rules/nextjs/google-font-display.md @@ -50,4 +50,4 @@ export default Test = () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/google_font_display.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/google_font_display.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.md b/src/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.md index c62671ab0ee..df55ee5f2bb 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.md +++ b/src/docs/guide/usage/linter/rules/nextjs/google-font-preconnect.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/google_font_preconnect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/google_font_preconnect.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/inline-script-id.md b/src/docs/guide/usage/linter/rules/nextjs/inline-script-id.md index 5979139abf9..cf04f36ad80 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/inline-script-id.md +++ b/src/docs/guide/usage/linter/rules/nextjs/inline-script-id.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/inline_script_id.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/inline_script_id.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.md b/src/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.md index 983e4b6f5b2..a9589afdd5a 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.md +++ b/src/docs/guide/usage/linter/rules/nextjs/next-script-for-ga.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/next_script_for_ga.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/next_script_for_ga.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.md b/src/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.md index e1691d49ccc..00dd1526f36 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-assign-module-variable.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_assign_module_variable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_assign_module_variable.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-async-client-component.md b/src/docs/guide/usage/linter/rules/nextjs/no-async-client-component.md index f68c17fac8b..80014ef94e9 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-async-client-component.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-async-client-component.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_async_client_component.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_async_client_component.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.md b/src/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.md index deab8396d5e..8a617783cf8 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-before-interactive-script-outside-document.md @@ -22,4 +22,4 @@ Prevent usage of `next/script`'s `beforeInteractive` strategy outside of `pages/ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_before_interactive_script_outside_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_before_interactive_script_outside_document.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-css-tags.md b/src/docs/guide/usage/linter/rules/nextjs/no-css-tags.md index 0aaed483edb..f1bdb6e7127 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-css-tags.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-css-tags.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_css_tags.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_css_tags.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.md b/src/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.md index 53186014eb8..ec8fc2ed547 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-document-import-in-page.md @@ -22,4 +22,4 @@ Prevent importing `next/document` outside of `pages/_document.js`. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_document_import_in_page.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_document_import_in_page.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.md b/src/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.md index d9c17fc2342..dafd63bde4a 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-duplicate-head.md @@ -39,4 +39,4 @@ export default MyDocument; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_duplicate_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_duplicate_head.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-head-element.md b/src/docs/guide/usage/linter/rules/nextjs/no-head-element.md index 9861b004b73..78a24fd0ca8 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-head-element.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-head-element.md @@ -22,4 +22,4 @@ Prevent usage of `` element. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_head_element.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_head_element.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.md b/src/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.md index 48de451b664..f6c5e218c15 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-head-import-in-document.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_head_import_in_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_head_import_in_document.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-img-element.md b/src/docs/guide/usage/linter/rules/nextjs/no-img-element.md index 59b93c1f46e..961f2f47e6a 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-img-element.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-img-element.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_img_element.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_img_element.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.md b/src/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.md index e10dff0e539..b12da377c30 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-page-custom-font.md @@ -25,4 +25,4 @@ Prevent page-only custom fonts. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_page_custom_font.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_page_custom_font.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.md b/src/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.md index 5274fe3edeb..ac7d745ffba 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-script-component-in-head.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_script_component_in_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_script_component_in_head.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.md b/src/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.md index 8f0f90c0739..6ab9b622be8 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-styled-jsx-in-document.md @@ -24,4 +24,4 @@ Custom CSS like styled-jsx is not allowed in a [Custom Document](https://nextjs. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_styled_jsx_in_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_styled_jsx_in_document.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.md b/src/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.md index 5b7a2fb7378..60b24ce660b 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-sync-scripts.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_sync_scripts.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_sync_scripts.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.md b/src/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.md index 3cbfa27af5f..d294941be47 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-title-in-document-head.md @@ -20,4 +20,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_title_in_document_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_title_in_document_head.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-typos.md b/src/docs/guide/usage/linter/rules/nextjs/no-typos.md index 9ecbc0dc920..38220fe6b83 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-typos.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-typos.md @@ -28,4 +28,4 @@ export async function getServurSideProps() {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_typos.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_typos.rs) diff --git a/src/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.md b/src/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.md index 4982fc2f510..834781d26c4 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-unwanted-polyfillio.md @@ -26,4 +26,4 @@ You are using polyfills from Polyfill.io and including polyfills already shipped ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/nextjs/no_unwanted_polyfillio.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/nextjs/no_unwanted_polyfillio.rs) diff --git a/src/docs/guide/usage/linter/rules/node/no-exports-assign.md b/src/docs/guide/usage/linter/rules/node/no-exports-assign.md index 197e8bca405..6d8301817d3 100644 --- a/src/docs/guide/usage/linter/rules/node/no-exports-assign.md +++ b/src/docs/guide/usage/linter/rules/node/no-exports-assign.md @@ -45,4 +45,4 @@ exports = module.exports = {}; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/node/no_exports_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/node/no_exports_assign.rs) diff --git a/src/docs/guide/usage/linter/rules/node/no-new-require.md b/src/docs/guide/usage/linter/rules/node/no-new-require.md index 519eae102f9..70ed073b757 100644 --- a/src/docs/guide/usage/linter/rules/node/no-new-require.md +++ b/src/docs/guide/usage/linter/rules/node/no-new-require.md @@ -31,4 +31,4 @@ var appHeader = new AppHeader(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/node/no_new_require.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/node/no_new_require.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/approx-constant.md b/src/docs/guide/usage/linter/rules/oxc/approx-constant.md index c717b55c1e2..3e60d78b153 100644 --- a/src/docs/guide/usage/linter/rules/oxc/approx-constant.md +++ b/src/docs/guide/usage/linter/rules/oxc/approx-constant.md @@ -30,4 +30,4 @@ let log10e = Math.LOG10E; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/approx_constant.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/approx_constant.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.md b/src/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.md index df9fe15330f..94d8242e8a0 100644 --- a/src/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.md +++ b/src/docs/guide/usage/linter/rules/oxc/bad-array-method-on-arguments.md @@ -30,4 +30,4 @@ function sum() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/bad_array_method_on_arguments.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/bad_array_method_on_arguments.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.md b/src/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.md index de73ca2e973..472a95b65a7 100644 --- a/src/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.md +++ b/src/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.md @@ -34,4 +34,4 @@ input |= ""; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/bad_bitwise_operator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/bad_bitwise_operator.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.md b/src/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.md index 4707e00897d..1fcbf517e40 100644 --- a/src/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.md +++ b/src/docs/guide/usage/linter/rules/oxc/bad-char-at-comparison.md @@ -34,4 +34,4 @@ a.charAt(4) === "\n"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/bad_char_at_comparison.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/bad_char_at_comparison.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.md b/src/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.md index 9ed11b3de79..2c9e803b948 100644 --- a/src/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.md +++ b/src/docs/guide/usage/linter/rules/oxc/bad-comparison-sequence.md @@ -27,4 +27,4 @@ if ((a == b) == c) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/bad_comparison_sequence.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/bad_comparison_sequence.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/bad-min-max-func.md b/src/docs/guide/usage/linter/rules/oxc/bad-min-max-func.md index 74be81c2801..6b0bb61c285 100644 --- a/src/docs/guide/usage/linter/rules/oxc/bad-min-max-func.md +++ b/src/docs/guide/usage/linter/rules/oxc/bad-min-max-func.md @@ -36,4 +36,4 @@ Math.min(0, Math.max(1000, z)); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/bad_min_max_func.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/bad_min_max_func.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.md b/src/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.md index 357f6dfacd6..6adbdbe490f 100644 --- a/src/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.md +++ b/src/docs/guide/usage/linter/rules/oxc/bad-object-literal-comparison.md @@ -40,4 +40,4 @@ if (Array.isArray(x) && x.length === 0) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/bad_object_literal_comparison.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/bad_object_literal_comparison.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.md b/src/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.md index f9c7e7f247d..0bf4f51e8a9 100644 --- a/src/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.md +++ b/src/docs/guide/usage/linter/rules/oxc/bad-replace-all-arg.md @@ -32,4 +32,4 @@ withSpaces.replaceAll(/\s+/g, ","); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/bad_replace_all_arg.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/bad_replace_all_arg.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/const-comparisons.md b/src/docs/guide/usage/linter/rules/oxc/const-comparisons.md index 3b9c140da22..52b527fa67b 100644 --- a/src/docs/guide/usage/linter/rules/oxc/const-comparisons.md +++ b/src/docs/guide/usage/linter/rules/oxc/const-comparisons.md @@ -47,4 +47,4 @@ a <= b; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/const_comparisons.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/const_comparisons.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/double-comparisons.md b/src/docs/guide/usage/linter/rules/oxc/double-comparisons.md index 402f6a21c8a..b237a3ca6c2 100644 --- a/src/docs/guide/usage/linter/rules/oxc/double-comparisons.md +++ b/src/docs/guide/usage/linter/rules/oxc/double-comparisons.md @@ -37,4 +37,4 @@ x >= y; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/double_comparisons.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/double_comparisons.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/erasing-op.md b/src/docs/guide/usage/linter/rules/oxc/erasing-op.md index 94696ce3f24..83bee89b95a 100644 --- a/src/docs/guide/usage/linter/rules/oxc/erasing-op.md +++ b/src/docs/guide/usage/linter/rules/oxc/erasing-op.md @@ -39,4 +39,4 @@ let y = 0; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/erasing_op.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/erasing_op.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.md b/src/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.md index 3d19266642f..79bb17d6e5f 100644 --- a/src/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.md +++ b/src/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op.md @@ -36,4 +36,4 @@ a -= b; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/misrefactored_assign_op.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/misrefactored_assign_op.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/missing-throw.md b/src/docs/guide/usage/linter/rules/oxc/missing-throw.md index f3675c2d73a..ffafb2356b1 100644 --- a/src/docs/guide/usage/linter/rules/oxc/missing-throw.md +++ b/src/docs/guide/usage/linter/rules/oxc/missing-throw.md @@ -45,4 +45,4 @@ const foo = () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/missing_throw.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/missing_throw.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.md b/src/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.md index e5d1d6f8475..719e3121d04 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.md @@ -59,4 +59,4 @@ for (let i = 0; i < 10; i++) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_accumulating_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_accumulating_spread.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-async-await.md b/src/docs/guide/usage/linter/rules/oxc/no-async-await.md index cf3a402f0d4..d738131107e 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-async-await.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-async-await.md @@ -20,4 +20,4 @@ async function foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_async_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_async_await.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.md b/src/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.md index c75f9dae869..5aba620eb47 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-async-endpoint-handlers.md @@ -114,4 +114,4 @@ type NoAsyncEndpointHandlersConfig = { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_async_endpoint_handlers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_async_endpoint_handlers.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-barrel-file.md b/src/docs/guide/usage/linter/rules/oxc/no-barrel-file.md index aad153a2a55..274269f75b5 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-barrel-file.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-barrel-file.md @@ -34,4 +34,4 @@ export { foo } from "foo"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_barrel_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_barrel_file.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-const-enum.md b/src/docs/guide/usage/linter/rules/oxc/no-const-enum.md index 4aa59876c65..65e852fa5fb 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-const-enum.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-const-enum.md @@ -30,4 +30,4 @@ const enum Color { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_const_enum.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_const_enum.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-map-spread.md b/src/docs/guide/usage/linter/rules/oxc/no-map-spread.md index 88a46cb05ff..8ed892dec91 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-map-spread.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-map-spread.md @@ -200,4 +200,4 @@ function UsersTable({ users }) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_map_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_map_spread.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-optional-chaining.md b/src/docs/guide/usage/linter/rules/oxc/no-optional-chaining.md index 315d1345a2b..e73a42d9d3c 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-optional-chaining.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-optional-chaining.md @@ -36,4 +36,4 @@ obj.fn?.(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_optional_chaining.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_optional_chaining.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.md b/src/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.md index 1b9dfb46d1d..ba61214ba22 100644 --- a/src/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.md +++ b/src/docs/guide/usage/linter/rules/oxc/no-rest-spread-properties.md @@ -37,4 +37,4 @@ let z = { x, ...y }; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/no_rest_spread_properties.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/no_rest_spread_properties.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.md b/src/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.md index 56064fdf20e..c308f633500 100644 --- a/src/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.md +++ b/src/docs/guide/usage/linter/rules/oxc/number-arg-out-of-range.md @@ -37,4 +37,4 @@ var s_radix_16 = x.toString(16); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/number_arg_out_of_range.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/number_arg_out_of_range.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.md b/src/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.md index fa10eebc32c..d514904e8b7 100644 --- a/src/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.md +++ b/src/docs/guide/usage/linter/rules/oxc/only-used-in-recursion.md @@ -47,4 +47,4 @@ function f(a: number): number { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/only_used_in_recursion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/only_used_in_recursion.rs) diff --git a/src/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.md b/src/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.md index fbfdefc6d8b..152794c8a16 100644 --- a/src/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.md +++ b/src/docs/guide/usage/linter/rules/oxc/uninvoked-array-callback.md @@ -25,4 +25,4 @@ const list = new Array(5).map((_) => createElement()); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/oxc/uninvoked_array_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/oxc/uninvoked_array_callback.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/avoid-new.md b/src/docs/guide/usage/linter/rules/promise/avoid-new.md index 0cee0244542..966346be1c6 100644 --- a/src/docs/guide/usage/linter/rules/promise/avoid-new.md +++ b/src/docs/guide/usage/linter/rules/promise/avoid-new.md @@ -37,4 +37,4 @@ const bar = await Promise.all([baz(), bang()]); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/avoid_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/avoid_new.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/catch-or-return.md b/src/docs/guide/usage/linter/rules/promise/catch-or-return.md index bc4597a9f73..ab3594a413c 100644 --- a/src/docs/guide/usage/linter/rules/promise/catch-or-return.md +++ b/src/docs/guide/usage/linter/rules/promise/catch-or-return.md @@ -37,4 +37,4 @@ function doSomethingElse() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/catch_or_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/catch_or_return.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/no-callback-in-promise.md b/src/docs/guide/usage/linter/rules/promise/no-callback-in-promise.md index aa73796c3d0..2efec1beb8e 100644 --- a/src/docs/guide/usage/linter/rules/promise/no-callback-in-promise.md +++ b/src/docs/guide/usage/linter/rules/promise/no-callback-in-promise.md @@ -49,4 +49,4 @@ Promise.resolve() ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/no_callback_in_promise.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/no_callback_in_promise.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/no-new-statics.md b/src/docs/guide/usage/linter/rules/promise/no-new-statics.md index ea36c3031e8..89f805b11f1 100644 --- a/src/docs/guide/usage/linter/rules/promise/no-new-statics.md +++ b/src/docs/guide/usage/linter/rules/promise/no-new-statics.md @@ -36,4 +36,4 @@ const x = Promise.resolve(value); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/no_new_statics.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/no_new_statics.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/no-promise-in-callback.md b/src/docs/guide/usage/linter/rules/promise/no-promise-in-callback.md index 31892a4c39e..2d7d663eafd 100644 --- a/src/docs/guide/usage/linter/rules/promise/no-promise-in-callback.md +++ b/src/docs/guide/usage/linter/rules/promise/no-promise-in-callback.md @@ -35,4 +35,4 @@ promisify(doSomething)().then(doSomethingElse).then(console.log).catch(console.e ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/no_promise_in_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/no_promise_in_callback.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/no-return-in-finally.md b/src/docs/guide/usage/linter/rules/promise/no-return-in-finally.md index e382e75889b..03f6d691aa6 100644 --- a/src/docs/guide/usage/linter/rules/promise/no-return-in-finally.md +++ b/src/docs/guide/usage/linter/rules/promise/no-return-in-finally.md @@ -34,4 +34,4 @@ Promise.resolve(1).finally(() => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/no_return_in_finally.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/no_return_in_finally.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/param-names.md b/src/docs/guide/usage/linter/rules/promise/param-names.md index db489bbee98..f1a1f371000 100644 --- a/src/docs/guide/usage/linter/rules/promise/param-names.md +++ b/src/docs/guide/usage/linter/rules/promise/param-names.md @@ -37,4 +37,4 @@ new Promise(function (resolve, reject) {}); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/param_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/param_names.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.md b/src/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.md index e91a70082c2..84cdbefd0f2 100644 --- a/src/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.md +++ b/src/docs/guide/usage/linter/rules/promise/prefer-await-to-callbacks.md @@ -43,4 +43,4 @@ eventEmitter.on("error", (err) => {}); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/prefer_await_to_callbacks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/prefer_await_to_callbacks.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/prefer-await-to-then.md b/src/docs/guide/usage/linter/rules/promise/prefer-await-to-then.md index fbb40ed7511..95081127b20 100644 --- a/src/docs/guide/usage/linter/rules/promise/prefer-await-to-then.md +++ b/src/docs/guide/usage/linter/rules/promise/prefer-await-to-then.md @@ -43,4 +43,4 @@ async function hi() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/prefer_await_to_then.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/prefer_await_to_then.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/spec-only.md b/src/docs/guide/usage/linter/rules/promise/spec-only.md index dcd0622b1b5..c59f3c90e9e 100644 --- a/src/docs/guide/usage/linter/rules/promise/spec-only.md +++ b/src/docs/guide/usage/linter/rules/promise/spec-only.md @@ -29,4 +29,4 @@ Promise.resolve(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/spec_only.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/spec_only.rs) diff --git a/src/docs/guide/usage/linter/rules/promise/valid-params.md b/src/docs/guide/usage/linter/rules/promise/valid-params.md index 8f53fd5a9a4..e3d84957153 100644 --- a/src/docs/guide/usage/linter/rules/promise/valid-params.md +++ b/src/docs/guide/usage/linter/rules/promise/valid-params.md @@ -33,4 +33,4 @@ Promise.resolve(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/promise/valid_params.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/promise/valid_params.rs) diff --git a/src/docs/guide/usage/linter/rules/react/button-has-type.md b/src/docs/guide/usage/linter/rules/react/button-has-type.md index a18b2c2cc6d..b100097b2da 100644 --- a/src/docs/guide/usage/linter/rules/react/button-has-type.md +++ b/src/docs/guide/usage/linter/rules/react/button-has-type.md @@ -33,4 +33,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/button_has_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/button_has_type.rs) diff --git a/src/docs/guide/usage/linter/rules/react/checked-requires-onchange-or-readonly.md b/src/docs/guide/usage/linter/rules/react/checked-requires-onchange-or-readonly.md index 352107582ab..b69742e7764 100644 --- a/src/docs/guide/usage/linter/rules/react/checked-requires-onchange-or-readonly.md +++ b/src/docs/guide/usage/linter/rules/react/checked-requires-onchange-or-readonly.md @@ -40,4 +40,4 @@ React.createElement('input', { type: 'checkbox', defaultChecked: true }); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/checked_requires_onchange_or_readonly.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/checked_requires_onchange_or_readonly.rs) diff --git a/src/docs/guide/usage/linter/rules/react/exhaustive-deps.md b/src/docs/guide/usage/linter/rules/react/exhaustive-deps.md index 00c7c127746..240f856b906 100644 --- a/src/docs/guide/usage/linter/rules/react/exhaustive-deps.md +++ b/src/docs/guide/usage/linter/rules/react/exhaustive-deps.md @@ -39,5 +39,5 @@ function MyComponent(props) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/exhaustive_deps.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/exhaustive_deps.rs) ``` diff --git a/src/docs/guide/usage/linter/rules/react/iframe-missing-sandbox.md b/src/docs/guide/usage/linter/rules/react/iframe-missing-sandbox.md index 400c7f39a01..4b3310f35c8 100644 --- a/src/docs/guide/usage/linter/rules/react/iframe-missing-sandbox.md +++ b/src/docs/guide/usage/linter/rules/react/iframe-missing-sandbox.md @@ -46,4 +46,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/iframe_missing_sandbox.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/iframe_missing_sandbox.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-boolean-value.md b/src/docs/guide/usage/linter/rules/react/jsx-boolean-value.md index 3b29ddd2ec7..4761d4085b1 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-boolean-value.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-boolean-value.md @@ -32,4 +32,4 @@ const Hello = ; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_boolean_value.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_boolean_value.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-curly-brace-presence.md b/src/docs/guide/usage/linter/rules/react/jsx-curly-brace-presence.md index 7e0c51d7ade..44c393f6154 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-curly-brace-presence.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-curly-brace-presence.md @@ -232,4 +232,4 @@ children as well as the use of unnecessary JSX expressions. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_curly_brace_presence.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_curly_brace_presence.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-key.md b/src/docs/guide/usage/linter/rules/react/jsx-key.md index 71e76535824..e913af10b3e 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-key.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-key.md @@ -34,4 +34,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_key.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes.md b/src/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes.md index c3812cc63fc..804a52fa3f5 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes.md @@ -39,4 +39,4 @@ const Hello = () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_no_comment_textnodes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_no_comment_textnodes.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.md b/src/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.md index aae80c975cd..e9be98e6595 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props.md @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_no_duplicate_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_no_duplicate_props.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-no-script-url.md b/src/docs/guide/usage/linter/rules/react/jsx-no-script-url.md index e8092d4d590..47e7a04a440 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-no-script-url.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-no-script-url.md @@ -34,4 +34,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_no_script_url.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_no_script_url.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-no-target-blank.md b/src/docs/guide/usage/linter/rules/react/jsx-no-target-blank.md index ea184387265..9f10c15a304 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-no-target-blank.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-no-target-blank.md @@ -41,4 +41,4 @@ var Hello = ; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_no_target_blank.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_no_target_blank.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-no-undef.md b/src/docs/guide/usage/linter/rules/react/jsx-no-undef.md index 97938022de3..422029bfc30 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-no-undef.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-no-undef.md @@ -25,4 +25,4 @@ const C = ; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_no_undef.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_no_undef.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-no-useless-fragment.md b/src/docs/guide/usage/linter/rules/react/jsx-no-useless-fragment.md index bef7ac507f1..09d84084d00 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-no-useless-fragment.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-no-useless-fragment.md @@ -31,4 +31,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_no_useless_fragment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_no_useless_fragment.rs) diff --git a/src/docs/guide/usage/linter/rules/react/jsx-props-no-spread-multi.md b/src/docs/guide/usage/linter/rules/react/jsx-props-no-spread-multi.md index 2a0218498ba..c3abd35d5d5 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-props-no-spread-multi.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-props-no-spread-multi.md @@ -37,4 +37,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/jsx_props_no_spread_multi.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/jsx_props_no_spread_multi.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-array-index-key.md b/src/docs/guide/usage/linter/rules/react/no-array-index-key.md index b89ad17d68b..8200083e220 100644 --- a/src/docs/guide/usage/linter/rules/react/no-array-index-key.md +++ b/src/docs/guide/usage/linter/rules/react/no-array-index-key.md @@ -32,4 +32,4 @@ things.map((thing, index) => ); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_array_index_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_array_index_key.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-children-prop.md b/src/docs/guide/usage/linter/rules/react/no-children-prop.md index 79afa556c3c..db740ab2d4c 100644 --- a/src/docs/guide/usage/linter/rules/react/no-children-prop.md +++ b/src/docs/guide/usage/linter/rules/react/no-children-prop.md @@ -47,4 +47,4 @@ React.createElement("div", 'Child 1', 'Child 2') ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_children_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_children_prop.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-danger-with-children.md b/src/docs/guide/usage/linter/rules/react/no-danger-with-children.md index 5df633ce79d..561633f4de4 100644 --- a/src/docs/guide/usage/linter/rules/react/no-danger-with-children.md +++ b/src/docs/guide/usage/linter/rules/react/no-danger-with-children.md @@ -34,4 +34,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_danger_with_children.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_danger_with_children.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-danger.md b/src/docs/guide/usage/linter/rules/react/no-danger.md index 4bc7d008e02..7d899751367 100644 --- a/src/docs/guide/usage/linter/rules/react/no-danger.md +++ b/src/docs/guide/usage/linter/rules/react/no-danger.md @@ -35,4 +35,4 @@ const Hello =
Hello World
; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_danger.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_danger.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-direct-mutation-state.md b/src/docs/guide/usage/linter/rules/react/no-direct-mutation-state.md index 9f4de5efd5b..f6ec0d26045 100644 --- a/src/docs/guide/usage/linter/rules/react/no-direct-mutation-state.md +++ b/src/docs/guide/usage/linter/rules/react/no-direct-mutation-state.md @@ -64,4 +64,4 @@ calling setState() afterwards may replace the mutation you made ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_direct_mutation_state.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_direct_mutation_state.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-find-dom-node.md b/src/docs/guide/usage/linter/rules/react/no-find-dom-node.md index 07f58ee5064..28177031faf 100644 --- a/src/docs/guide/usage/linter/rules/react/no-find-dom-node.md +++ b/src/docs/guide/usage/linter/rules/react/no-find-dom-node.md @@ -33,4 +33,4 @@ class MyComponent extends Component { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_find_dom_node.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_find_dom_node.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-is-mounted.md b/src/docs/guide/usage/linter/rules/react/no-is-mounted.md index ff41aaf20b4..f1619fa202b 100644 --- a/src/docs/guide/usage/linter/rules/react/no-is-mounted.md +++ b/src/docs/guide/usage/linter/rules/react/no-is-mounted.md @@ -34,4 +34,4 @@ class Hello extends React.Component { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_is_mounted.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_is_mounted.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-render-return-value.md b/src/docs/guide/usage/linter/rules/react/no-render-return-value.md index fedd8251d00..4f4d7c96876 100644 --- a/src/docs/guide/usage/linter/rules/react/no-render-return-value.md +++ b/src/docs/guide/usage/linter/rules/react/no-render-return-value.md @@ -35,4 +35,4 @@ ReactDOM.render(, document.body); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_render_return_value.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_render_return_value.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-set-state.md b/src/docs/guide/usage/linter/rules/react/no-set-state.md index ef40ba1db28..6f0033e90b1 100644 --- a/src/docs/guide/usage/linter/rules/react/no-set-state.md +++ b/src/docs/guide/usage/linter/rules/react/no-set-state.md @@ -38,4 +38,4 @@ var Hello = createReactClass({ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_set_state.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_set_state.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-string-refs.md b/src/docs/guide/usage/linter/rules/react/no-string-refs.md index e723384172e..d53ff425ef0 100644 --- a/src/docs/guide/usage/linter/rules/react/no-string-refs.md +++ b/src/docs/guide/usage/linter/rules/react/no-string-refs.md @@ -62,4 +62,4 @@ var Hello = createReactClass({ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_string_refs.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_string_refs.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-unescaped-entities.md b/src/docs/guide/usage/linter/rules/react/no-unescaped-entities.md index 01cfbb8f7ba..a56ac68e1f0 100644 --- a/src/docs/guide/usage/linter/rules/react/no-unescaped-entities.md +++ b/src/docs/guide/usage/linter/rules/react/no-unescaped-entities.md @@ -33,4 +33,4 @@ Correct ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_unescaped_entities.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_unescaped_entities.rs) diff --git a/src/docs/guide/usage/linter/rules/react/no-unknown-property.md b/src/docs/guide/usage/linter/rules/react/no-unknown-property.md index b85efe37a49..61b39d6692e 100644 --- a/src/docs/guide/usage/linter/rules/react/no-unknown-property.md +++ b/src/docs/guide/usage/linter/rules/react/no-unknown-property.md @@ -29,4 +29,4 @@ const IconButton =
; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/no_unknown_property.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/no_unknown_property.rs) diff --git a/src/docs/guide/usage/linter/rules/react/prefer-es6-class.md b/src/docs/guide/usage/linter/rules/react/prefer-es6-class.md index 4033e189d75..c64f36371b5 100644 --- a/src/docs/guide/usage/linter/rules/react/prefer-es6-class.md +++ b/src/docs/guide/usage/linter/rules/react/prefer-es6-class.md @@ -26,4 +26,4 @@ var Hello = createReactClass({ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/prefer_es6_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/prefer_es6_class.rs) diff --git a/src/docs/guide/usage/linter/rules/react/react-in-jsx-scope.md b/src/docs/guide/usage/linter/rules/react/react-in-jsx-scope.md index 1ec2bf4622a..9c97a240d01 100644 --- a/src/docs/guide/usage/linter/rules/react/react-in-jsx-scope.md +++ b/src/docs/guide/usage/linter/rules/react/react-in-jsx-scope.md @@ -31,4 +31,4 @@ var a = ; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/react_in_jsx_scope.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/react_in_jsx_scope.rs) diff --git a/src/docs/guide/usage/linter/rules/react/require-render-return.md b/src/docs/guide/usage/linter/rules/react/require-render-return.md index 21e276c272f..00ec4f7e813 100644 --- a/src/docs/guide/usage/linter/rules/react/require-render-return.md +++ b/src/docs/guide/usage/linter/rules/react/require-render-return.md @@ -31,4 +31,4 @@ class Hello extends React.Component { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/require_render_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/require_render_return.rs) diff --git a/src/docs/guide/usage/linter/rules/react/rules-of-hooks.md b/src/docs/guide/usage/linter/rules/react/rules-of-hooks.md index 332a54f39e8..b65a2353e95 100644 --- a/src/docs/guide/usage/linter/rules/react/rules-of-hooks.md +++ b/src/docs/guide/usage/linter/rules/react/rules-of-hooks.md @@ -13,4 +13,4 @@ This enforces the Rules of Hooks ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/rules_of_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/rules_of_hooks.rs) diff --git a/src/docs/guide/usage/linter/rules/react/self-closing-comp.md b/src/docs/guide/usage/linter/rules/react/self-closing-comp.md index c81c7fcacb4..4c7b0932808 100644 --- a/src/docs/guide/usage/linter/rules/react/self-closing-comp.md +++ b/src/docs/guide/usage/linter/rules/react/self-closing-comp.md @@ -36,4 +36,4 @@ const dom_elem =
; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/self_closing_comp.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/self_closing_comp.rs) diff --git a/src/docs/guide/usage/linter/rules/react/style-prop-object.md b/src/docs/guide/usage/linter/rules/react/style-prop-object.md index 1ad33e01ac4..409f974ed16 100644 --- a/src/docs/guide/usage/linter/rules/react/style-prop-object.md +++ b/src/docs/guide/usage/linter/rules/react/style-prop-object.md @@ -47,4 +47,4 @@ React.createElement("div", { style: styles }); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/style_prop_object.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/style_prop_object.rs) diff --git a/src/docs/guide/usage/linter/rules/react/void-dom-elements-no-children.md b/src/docs/guide/usage/linter/rules/react/void-dom-elements-no-children.md index 9df25909d80..93d835352b1 100644 --- a/src/docs/guide/usage/linter/rules/react/void-dom-elements-no-children.md +++ b/src/docs/guide/usage/linter/rules/react/void-dom-elements-no-children.md @@ -43,4 +43,4 @@ React.createElement('div', { dangerouslySetInnerHTML: { __html: 'HTML' } }) ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react/void_dom_elements_no_children.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react/void_dom_elements_no_children.rs) diff --git a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.md b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.md index 067ea8112b5..f17037040b0 100644 --- a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.md +++ b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.md @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs) diff --git a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.md b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.md index 2b2f87a26fd..ba2fbb64644 100644 --- a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.md +++ b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.md @@ -38,4 +38,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs) diff --git a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.md b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.md index 872e7a7c104..da92a0445d3 100644 --- a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.md +++ b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.md @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs) diff --git a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.md b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.md index 2ba16ac42e7..ad0b2d3c84f 100644 --- a/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.md +++ b/src/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.md @@ -39,4 +39,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/adjacent-overload-signatures.md b/src/docs/guide/usage/linter/rules/typescript/adjacent-overload-signatures.md index 4ad4b8c11c2..955d52273f9 100644 --- a/src/docs/guide/usage/linter/rules/typescript/adjacent-overload-signatures.md +++ b/src/docs/guide/usage/linter/rules/typescript/adjacent-overload-signatures.md @@ -55,4 +55,4 @@ export function foo(sn: string | number): void; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/adjacent_overload_signatures.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/adjacent_overload_signatures.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/array-type.md b/src/docs/guide/usage/linter/rules/typescript/array-type.md index 89020a79ef3..de0d9af3bcf 100644 --- a/src/docs/guide/usage/linter/rules/typescript/array-type.md +++ b/src/docs/guide/usage/linter/rules/typescript/array-type.md @@ -25,4 +25,4 @@ const arr: number[] = new Array(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/array_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/array_type.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/ban-ts-comment.md b/src/docs/guide/usage/linter/rules/typescript/ban-ts-comment.md index 17ca8c6b1fc..5edcc8ce613 100644 --- a/src/docs/guide/usage/linter/rules/typescript/ban-ts-comment.md +++ b/src/docs/guide/usage/linter/rules/typescript/ban-ts-comment.md @@ -28,4 +28,4 @@ if (false) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/ban_ts_comment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/ban_ts_comment.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/ban-tslint-comment.md b/src/docs/guide/usage/linter/rules/typescript/ban-tslint-comment.md index 57444530e43..057e525e1d3 100644 --- a/src/docs/guide/usage/linter/rules/typescript/ban-tslint-comment.md +++ b/src/docs/guide/usage/linter/rules/typescript/ban-tslint-comment.md @@ -26,4 +26,4 @@ someCode(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/ban_tslint_comment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/ban_tslint_comment.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/ban-types.md b/src/docs/guide/usage/linter/rules/typescript/ban-types.md index 66c3a9b2ab7..bf41a3dd89c 100644 --- a/src/docs/guide/usage/linter/rules/typescript/ban-types.md +++ b/src/docs/guide/usage/linter/rules/typescript/ban-types.md @@ -26,4 +26,4 @@ let bar: Boolean = true; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/ban_types.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/ban_types.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/consistent-generic-constructors.md b/src/docs/guide/usage/linter/rules/typescript/consistent-generic-constructors.md index 8f877935500..ccb0c8b8eb1 100644 --- a/src/docs/guide/usage/linter/rules/typescript/consistent-generic-constructors.md +++ b/src/docs/guide/usage/linter/rules/typescript/consistent-generic-constructors.md @@ -36,4 +36,4 @@ const a: Foo = new Foo(); // prefer type annotation ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/consistent_generic_constructors.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/consistent_generic_constructors.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/consistent-indexed-object-style.md b/src/docs/guide/usage/linter/rules/typescript/consistent-indexed-object-style.md index 131b79fea3a..abc42a4b0b2 100644 --- a/src/docs/guide/usage/linter/rules/typescript/consistent-indexed-object-style.md +++ b/src/docs/guide/usage/linter/rules/typescript/consistent-indexed-object-style.md @@ -37,4 +37,4 @@ type Foo = Record; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/consistent_indexed_object_style.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/consistent_indexed_object_style.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/consistent-type-definitions.md b/src/docs/guide/usage/linter/rules/typescript/consistent-type-definitions.md index 6f92eaead84..b5f32e01f8a 100644 --- a/src/docs/guide/usage/linter/rules/typescript/consistent-type-definitions.md +++ b/src/docs/guide/usage/linter/rules/typescript/consistent-type-definitions.md @@ -32,4 +32,4 @@ interface T { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/consistent_type_definitions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/consistent_type_definitions.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/consistent-type-imports.md b/src/docs/guide/usage/linter/rules/typescript/consistent-type-imports.md index cf16e7812d5..00186c4eedc 100644 --- a/src/docs/guide/usage/linter/rules/typescript/consistent-type-imports.md +++ b/src/docs/guide/usage/linter/rules/typescript/consistent-type-imports.md @@ -27,4 +27,4 @@ type S = import("Foo"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/consistent_type_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/consistent_type_imports.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/explicit-function-return-type.md b/src/docs/guide/usage/linter/rules/typescript/explicit-function-return-type.md index bb52f8c9b14..0b64cb283d8 100644 --- a/src/docs/guide/usage/linter/rules/typescript/explicit-function-return-type.md +++ b/src/docs/guide/usage/linter/rules/typescript/explicit-function-return-type.md @@ -67,4 +67,4 @@ class Test { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/explicit_function_return_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/explicit_function_return_type.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion.md b/src/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion.md index 0eb6a97704d..c6f305f57b8 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion.md @@ -26,4 +26,4 @@ a! === b; // a non-null assertions(`!`) and an triple equals test(`===`) ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_confusing_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_confusing_non_null_assertion.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-duplicate-enum-values.md b/src/docs/guide/usage/linter/rules/typescript/no-duplicate-enum-values.md index 5102b75e92b..e1862a2eccc 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-duplicate-enum-values.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-duplicate-enum-values.md @@ -64,4 +64,4 @@ enum E { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_duplicate_enum_values.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_duplicate_enum_values.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-dynamic-delete.md b/src/docs/guide/usage/linter/rules/typescript/no-dynamic-delete.md index e61f8aa1e5d..9e80796d207 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-dynamic-delete.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-dynamic-delete.md @@ -24,4 +24,4 @@ delete container["aa" + "b"]; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_dynamic_delete.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_dynamic_delete.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-empty-interface.md b/src/docs/guide/usage/linter/rules/typescript/no-empty-interface.md index 02140269dda..5f4571a0c2d 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-empty-interface.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-empty-interface.md @@ -24,4 +24,4 @@ interface Bar extends Foo {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_empty_interface.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_empty_interface.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-empty-object-type.md b/src/docs/guide/usage/linter/rules/typescript/no-empty-object-type.md index c6677af19f2..6249faf3079 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-empty-object-type.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-empty-object-type.md @@ -54,4 +54,4 @@ type TypeWith = { property: boolean }; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_empty_object_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_empty_object_type.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-explicit-any.md b/src/docs/guide/usage/linter/rules/typescript/no-explicit-any.md index 66259de0f63..f4fdd297c6f 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-explicit-any.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-explicit-any.md @@ -68,4 +68,4 @@ Whether to enable auto-fixing in which the `any` type is converted to the `unkno ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_explicit_any.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_explicit_any.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-extra-non-null-assertion.md b/src/docs/guide/usage/linter/rules/typescript/no-extra-non-null-assertion.md index 25bdc4c6094..5f6c494fc7b 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-extra-non-null-assertion.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-extra-non-null-assertion.md @@ -25,4 +25,4 @@ const bar = foo!!!.bar; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_extra_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_extra_non_null_assertion.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-extraneous-class.md b/src/docs/guide/usage/linter/rules/typescript/no-extraneous-class.md index 9dce28cec10..b3b838d0b81 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-extraneous-class.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-extraneous-class.md @@ -50,4 +50,4 @@ abstract class Foo {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_extraneous_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_extraneous_class.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-import-type-side-effects.md b/src/docs/guide/usage/linter/rules/typescript/no-import-type-side-effects.md index 744b17ae96e..87d3c50602c 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-import-type-side-effects.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-import-type-side-effects.md @@ -50,4 +50,4 @@ import { type A as AA, type B as BB } from "mod"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_import_type_side_effects.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_import_type_side_effects.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-inferrable-types.md b/src/docs/guide/usage/linter/rules/typescript/no-inferrable-types.md index 9bf33ad1e46..afac114962c 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-inferrable-types.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-inferrable-types.md @@ -38,4 +38,4 @@ const fn = (a = 5, b = true, c = "foo") => {}; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_inferrable_types.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_inferrable_types.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-misused-new.md b/src/docs/guide/usage/linter/rules/typescript/no-misused-new.md index 067b762db37..8c30ad84fda 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-misused-new.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-misused-new.md @@ -37,4 +37,4 @@ interface I { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_misused_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_misused_new.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-namespace.md b/src/docs/guide/usage/linter/rules/typescript/no-namespace.md index fe10e5efcec..b7ab0196f5d 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-namespace.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-namespace.md @@ -26,4 +26,4 @@ declare namespace foo {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_namespace.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing.md b/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing.md index df9e5a06441..26d7a395354 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing.md @@ -24,4 +24,4 @@ x! ?? ""; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_nullish_coalescing.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_nullish_coalescing.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-optional-chain.md b/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-optional-chain.md index 0dffd7be7a4..4b838ce8b0a 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-optional-chain.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-optional-chain.md @@ -28,4 +28,4 @@ foo?.bar()!; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_optional_chain.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_optional_chain.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-non-null-assertion.md b/src/docs/guide/usage/linter/rules/typescript/no-non-null-assertion.md index f289a441202..7a30bdf21a8 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-non-null-assertion.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-non-null-assertion.md @@ -23,4 +23,4 @@ x.y!; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_non_null_assertion.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-require-imports.md b/src/docs/guide/usage/linter/rules/typescript/no-require-imports.md index 1f52ccde17d..f821d631891 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-require-imports.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-require-imports.md @@ -94,4 +94,4 @@ import foo from "foo"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_require_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_require_imports.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md b/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md index d924e49f2a3..a25deacf0e9 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-this-alias.md @@ -27,5 +27,5 @@ sampe with `obj. = this` ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_this_alias.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_this_alias.rs) ``` diff --git a/src/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-constraint.md b/src/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-constraint.md index c6a87298c3a..7a92ad6d31b 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-constraint.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-constraint.md @@ -30,4 +30,4 @@ function QuuzAny() {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_unnecessary_type_constraint.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_unnecessary_type_constraint.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-unsafe-declaration-merging.md b/src/docs/guide/usage/linter/rules/typescript/no-unsafe-declaration-merging.md index 75fdae9fd0a..4932422e020 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-unsafe-declaration-merging.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-unsafe-declaration-merging.md @@ -26,4 +26,4 @@ class Foo {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_unsafe_declaration_merging.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_unsafe_declaration_merging.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-unsafe-function-type.md b/src/docs/guide/usage/linter/rules/typescript/no-unsafe-function-type.md index cb6c6b75d22..cc41ce4e03e 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-unsafe-function-type.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-unsafe-function-type.md @@ -43,4 +43,4 @@ identity = (value) => value; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_unsafe_function_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_unsafe_function_type.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-useless-empty-export.md b/src/docs/guide/usage/linter/rules/typescript/no-useless-empty-export.md index d9ed32cdb38..704384a73c0 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-useless-empty-export.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-useless-empty-export.md @@ -50,4 +50,4 @@ export const value = "Hello, world!"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_useless_empty_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_useless_empty_export.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-var-requires.md b/src/docs/guide/usage/linter/rules/typescript/no-var-requires.md index bee4faaa948..8735d096ad9 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-var-requires.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-var-requires.md @@ -21,4 +21,4 @@ let foo = require("foo"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_var_requires.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_var_requires.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/no-wrapper-object-types.md b/src/docs/guide/usage/linter/rules/typescript/no-wrapper-object-types.md index 9b69dfd02ae..cd96b0df5fe 100644 --- a/src/docs/guide/usage/linter/rules/typescript/no-wrapper-object-types.md +++ b/src/docs/guide/usage/linter/rules/typescript/no-wrapper-object-types.md @@ -47,4 +47,4 @@ let myObject: object = "Type 'string' is not assignable to type 'object'."; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/no_wrapper_object_types.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/no_wrapper_object_types.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/prefer-as-const.md b/src/docs/guide/usage/linter/rules/typescript/prefer-as-const.md index 3b28296c7a2..cca3f4099e0 100644 --- a/src/docs/guide/usage/linter/rules/typescript/prefer-as-const.md +++ b/src/docs/guide/usage/linter/rules/typescript/prefer-as-const.md @@ -34,4 +34,4 @@ let foo = { bar: "baz" as "baz" }; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/prefer_as_const.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/prefer_as_const.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/prefer-enum-initializers.md b/src/docs/guide/usage/linter/rules/typescript/prefer-enum-initializers.md index 43089a9f557..a4664d5bb1c 100644 --- a/src/docs/guide/usage/linter/rules/typescript/prefer-enum-initializers.md +++ b/src/docs/guide/usage/linter/rules/typescript/prefer-enum-initializers.md @@ -28,4 +28,4 @@ enum Status { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/prefer_enum_initializers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/prefer_enum_initializers.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/prefer-for-of.md b/src/docs/guide/usage/linter/rules/typescript/prefer-for-of.md index 397e6c343ff..8710e719406 100644 --- a/src/docs/guide/usage/linter/rules/typescript/prefer-for-of.md +++ b/src/docs/guide/usage/linter/rules/typescript/prefer-for-of.md @@ -38,4 +38,4 @@ for (const item of arr) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/prefer_for_of.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/prefer_for_of.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/prefer-function-type.md b/src/docs/guide/usage/linter/rules/typescript/prefer-function-type.md index 2a74e8b9810..195778e1841 100644 --- a/src/docs/guide/usage/linter/rules/typescript/prefer-function-type.md +++ b/src/docs/guide/usage/linter/rules/typescript/prefer-function-type.md @@ -68,4 +68,4 @@ type Intersection = ((data: string) => number) & ((id: number) => string); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/prefer_function_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/prefer_function_type.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member.md b/src/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member.md index 5522c9b7c97..448bda5991e 100644 --- a/src/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member.md +++ b/src/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member.md @@ -29,4 +29,4 @@ enum Foo { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/prefer_literal_enum_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/prefer_literal_enum_member.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/prefer-namespace-keyword.md b/src/docs/guide/usage/linter/rules/typescript/prefer-namespace-keyword.md index 869f6ddf2df..d663d10d25c 100644 --- a/src/docs/guide/usage/linter/rules/typescript/prefer-namespace-keyword.md +++ b/src/docs/guide/usage/linter/rules/typescript/prefer-namespace-keyword.md @@ -26,4 +26,4 @@ module Example {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/prefer-ts-expect-error.md b/src/docs/guide/usage/linter/rules/typescript/prefer-ts-expect-error.md index 3c7a61efa92..6c9c5160efa 100644 --- a/src/docs/guide/usage/linter/rules/typescript/prefer-ts-expect-error.md +++ b/src/docs/guide/usage/linter/rules/typescript/prefer-ts-expect-error.md @@ -35,4 +35,4 @@ const multiLine: number = "value"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/prefer_ts_expect_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/prefer_ts_expect_error.rs) diff --git a/src/docs/guide/usage/linter/rules/typescript/triple-slash-reference.md b/src/docs/guide/usage/linter/rules/typescript/triple-slash-reference.md index fb1e7c0f68d..b2516f5fdae 100644 --- a/src/docs/guide/usage/linter/rules/typescript/triple-slash-reference.md +++ b/src/docs/guide/usage/linter/rules/typescript/triple-slash-reference.md @@ -25,4 +25,4 @@ globalThis.value; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/typescript/triple_slash_reference.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/typescript/triple_slash_reference.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/catch-error-name.md b/src/docs/guide/usage/linter/rules/unicorn/catch-error-name.md index c92d453c402..e9c38affef8 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/catch-error-name.md +++ b/src/docs/guide/usage/linter/rules/unicorn/catch-error-name.md @@ -32,4 +32,4 @@ try { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/catch_error_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/catch_error_name.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/consistent-empty-array-spread.md b/src/docs/guide/usage/linter/rules/unicorn/consistent-empty-array-spread.md index 998a9704aca..c403296499f 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/consistent-empty-array-spread.md +++ b/src/docs/guide/usage/linter/rules/unicorn/consistent-empty-array-spread.md @@ -37,4 +37,4 @@ const array = [a, ...(foo ? "bc" : "")]; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/consistent_empty_array_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/consistent_empty_array_spread.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/consistent-existence-index-check.md b/src/docs/guide/usage/linter/rules/unicorn/consistent-existence-index-check.md index 4244453d37a..0100fc5a1df 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/consistent-existence-index-check.md +++ b/src/docs/guide/usage/linter/rules/unicorn/consistent-existence-index-check.md @@ -48,4 +48,4 @@ if (index !== -1) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/consistent_existence_index_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/consistent_existence_index_check.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping.md b/src/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping.md index 21d6f797c6c..5da26f61d05 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping.md +++ b/src/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping.md @@ -109,4 +109,4 @@ function doFoo(FooComponent) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/consistent_function_scoping.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/consistent_function_scoping.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/empty-brace-spaces.md b/src/docs/guide/usage/linter/rules/unicorn/empty-brace-spaces.md index 9e0f919e50e..dbe23073c25 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/empty-brace-spaces.md +++ b/src/docs/guide/usage/linter/rules/unicorn/empty-brace-spaces.md @@ -25,4 +25,4 @@ class A {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/empty_brace_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/empty_brace_spaces.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/error-message.md b/src/docs/guide/usage/linter/rules/unicorn/error-message.md index f27c26bb046..cc1b25ed529 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/error-message.md +++ b/src/docs/guide/usage/linter/rules/unicorn/error-message.md @@ -29,4 +29,4 @@ throw new TypeError("Number expected"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/error_message.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/error_message.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/escape-case.md b/src/docs/guide/usage/linter/rules/unicorn/escape-case.md index 9aadc18939f..09d97154ea4 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/escape-case.md +++ b/src/docs/guide/usage/linter/rules/unicorn/escape-case.md @@ -36,4 +36,4 @@ const foo = "\cA"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/escape_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/escape_case.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/explicit-length-check.md b/src/docs/guide/usage/linter/rules/unicorn/explicit-length-check.md index cdff944ed16..48ede7ea5db 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/explicit-length-check.md +++ b/src/docs/guide/usage/linter/rules/unicorn/explicit-length-check.md @@ -44,4 +44,4 @@ const isEmpty = foo.length === 0; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/explicit_length_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/explicit_length_check.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/filename-case.md b/src/docs/guide/usage/linter/rules/unicorn/filename-case.md index aef1d4fa225..bf59498d193 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/filename-case.md +++ b/src/docs/guide/usage/linter/rules/unicorn/filename-case.md @@ -43,4 +43,4 @@ Examples of **correct** filenames for each case: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/filename_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/filename_case.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/new-for-builtins.md b/src/docs/guide/usage/linter/rules/unicorn/new-for-builtins.md index 33fd7a66b53..b9d078bec6b 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/new-for-builtins.md +++ b/src/docs/guide/usage/linter/rules/unicorn/new-for-builtins.md @@ -35,4 +35,4 @@ const bar = new Array(1, 2, 3); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/new_for_builtins.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/new_for_builtins.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable.md b/src/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable.md index 0678bcac615..1c6644e43f5 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable.md @@ -41,4 +41,4 @@ console.log(message); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_abusive_eslint_disable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_abusive_eslint_disable.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-anonymous-default-export.md b/src/docs/guide/usage/linter/rules/unicorn/no-anonymous-default-export.md index a4a53e27aa1..b37f5f9ffdf 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-anonymous-default-export.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-anonymous-default-export.md @@ -46,4 +46,4 @@ module.exports = foo; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_anonymous_default_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_anonymous_default_export.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-array-for-each.md b/src/docs/guide/usage/linter/rules/unicorn/no-array-for-each.md index 124ab23bb29..68321cc0b9b 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-array-for-each.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-array-for-each.md @@ -44,4 +44,4 @@ for (const element of foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_array_for_each.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_array_for_each.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-array-reduce.md b/src/docs/guide/usage/linter/rules/unicorn/no-array-reduce.md index a9c51b8d986..7f520372f7a 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-array-reduce.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-array-reduce.md @@ -24,4 +24,4 @@ array.reduceRight(reducer, initialValue); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_array_reduce.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_array_reduce.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-await-expression-member.md b/src/docs/guide/usage/linter/rules/unicorn/no-await-expression-member.md index 6cc18973674..ebf48cd255e 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-await-expression-member.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-await-expression-member.md @@ -31,4 +31,4 @@ async function good() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_await_expression_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_await_expression_member.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-await-in-promise-methods.md b/src/docs/guide/usage/linter/rules/unicorn/no-await-in-promise-methods.md index df99d7a5422..170a9b7931a 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-await-in-promise-methods.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-await-in-promise-methods.md @@ -44,4 +44,4 @@ async function foo() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_await_in_promise_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_await_in_promise_methods.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-console-spaces.md b/src/docs/guide/usage/linter/rules/unicorn/no-console-spaces.md index 2c3234955ed..81410f9ca68 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-console-spaces.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-console-spaces.md @@ -32,4 +32,4 @@ console.log("abc", "def"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_console_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_console_spaces.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-document-cookie.md b/src/docs/guide/usage/linter/rules/unicorn/no-document-cookie.md index 0f780431ec0..119b2b579ab 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-document-cookie.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-document-cookie.md @@ -46,4 +46,4 @@ async function storeCookies() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_document_cookie.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_document_cookie.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-empty-file.md b/src/docs/guide/usage/linter/rules/unicorn/no-empty-file.md index 73749baa3c8..da358b2e870 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-empty-file.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-empty-file.md @@ -25,4 +25,4 @@ Meaningless files clutter a codebase. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_empty_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_empty_file.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-hex-escape.md b/src/docs/guide/usage/linter/rules/unicorn/no-hex-escape.md index c3256e945a5..b80e4d3766d 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-hex-escape.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-hex-escape.md @@ -32,4 +32,4 @@ const foo = `\u001B${bar}`; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_hex_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_hex_escape.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-instanceof-array.md b/src/docs/guide/usage/linter/rules/unicorn/no-instanceof-array.md index 97a44f87544..0547e3d4f07 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-instanceof-array.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-instanceof-array.md @@ -25,4 +25,4 @@ array instanceof Array; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_instanceof_array.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_instanceof_array.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-invalid-remove-event-listener.md b/src/docs/guide/usage/linter/rules/unicorn/no-invalid-remove-event-listener.md index eba3bbc6120..d2088b655d1 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-invalid-remove-event-listener.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-invalid-remove-event-listener.md @@ -34,4 +34,4 @@ el.removeEventListener("click", handler.bind(this)); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_invalid_remove_event_listener.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_invalid_remove_event_listener.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-length-as-slice-end.md b/src/docs/guide/usage/linter/rules/unicorn/no-length-as-slice-end.md index f292a07f6bf..9d54be2fcc6 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-length-as-slice-end.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-length-as-slice-end.md @@ -32,4 +32,4 @@ foo.slice(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_length_as_slice_end.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_length_as_slice_end.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-lonely-if.md b/src/docs/guide/usage/linter/rules/unicorn/no-lonely-if.md index 8d450cea3f4..99020fc241a 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-lonely-if.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-lonely-if.md @@ -35,4 +35,4 @@ if (foo && bar) baz(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_lonely_if.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_lonely_if.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-magic-array-flat-depth.md b/src/docs/guide/usage/linter/rules/unicorn/no-magic-array-flat-depth.md index 95635f28012..f3f035568ae 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-magic-array-flat-depth.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-magic-array-flat-depth.md @@ -33,4 +33,4 @@ array.flat(Infinity); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_magic_array_flat_depth.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_magic_array_flat_depth.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-negation-in-equality-check.md b/src/docs/guide/usage/linter/rules/unicorn/no-negation-in-equality-check.md index 82a478affee..26ee4d75ab5 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-negation-in-equality-check.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-negation-in-equality-check.md @@ -40,4 +40,4 @@ if (!(foo === bar)) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_negation_in_equality_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_negation_in_equality_check.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-nested-ternary.md b/src/docs/guide/usage/linter/rules/unicorn/no-nested-ternary.md index 167b6be4e68..1bac664240a 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-nested-ternary.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-nested-ternary.md @@ -35,4 +35,4 @@ const foo = i > 5 ? (i < 100 ? true : false) : i < 100 ? true : false; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_nested_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_nested_ternary.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-new-array.md b/src/docs/guide/usage/linter/rules/unicorn/no-new-array.md index 0517c6c85b7..35f0ea71c1d 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-new-array.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-new-array.md @@ -38,4 +38,4 @@ const array = [42]; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_new_array.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_new_array.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-new-buffer.md b/src/docs/guide/usage/linter/rules/unicorn/no-new-buffer.md index 014a36ac5ef..8f2c179f9cb 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-new-buffer.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-new-buffer.md @@ -32,4 +32,4 @@ const buffer = Buffer.alloc(10); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_new_buffer.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_new_buffer.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-null.md b/src/docs/guide/usage/linter/rules/unicorn/no-null.md index 9c4dfb939d9..377787568b8 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-null.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-null.md @@ -36,4 +36,4 @@ let foo; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_null.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_null.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-object-as-default-parameter.md b/src/docs/guide/usage/linter/rules/unicorn/no-object-as-default-parameter.md index 604fc7686a4..e77e6eddc44 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-object-as-default-parameter.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-object-as-default-parameter.md @@ -29,4 +29,4 @@ function foo({ a = false } = {}) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_object_as_default_parameter.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_object_as_default_parameter.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-process-exit.md b/src/docs/guide/usage/linter/rules/unicorn/no-process-exit.md index 453af1492b2..2d48f9c0056 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-process-exit.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-process-exit.md @@ -37,4 +37,4 @@ if (problem) process.exit(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_process_exit.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_process_exit.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-single-promise-in-promise-methods.md b/src/docs/guide/usage/linter/rules/unicorn/no-single-promise-in-promise-methods.md index cd230f6639c..f4dceb17247 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-single-promise-in-promise-methods.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-single-promise-in-promise-methods.md @@ -47,4 +47,4 @@ async function good() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_single_promise_in_promise_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_single_promise_in_promise_methods.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-static-only-class.md b/src/docs/guide/usage/linter/rules/unicorn/no-static-only-class.md index 4feec1a6857..3feb1821df0 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-static-only-class.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-static-only-class.md @@ -52,4 +52,4 @@ class X { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_static_only_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_static_only_class.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-thenable.md b/src/docs/guide/usage/linter/rules/unicorn/no-thenable.md index 68d504f748e..84b70701c43 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-thenable.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-thenable.md @@ -34,4 +34,4 @@ async function example() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_thenable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_thenable.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-this-assignment.md b/src/docs/guide/usage/linter/rules/unicorn/no-this-assignment.md index c7ac1c79c0d..ba74d4d3668 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-this-assignment.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-this-assignment.md @@ -45,4 +45,4 @@ new Bar(this).method(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_this_assignment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_this_assignment.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-typeof-undefined.md b/src/docs/guide/usage/linter/rules/unicorn/no-typeof-undefined.md index d5d081a77a3..3733872f929 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-typeof-undefined.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-typeof-undefined.md @@ -32,4 +32,4 @@ foo === undefined; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_typeof_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_typeof_undefined.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-unnecessary-await.md b/src/docs/guide/usage/linter/rules/unicorn/no-unnecessary-await.md index 3de94b9c39f..2ddbab22f78 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-unnecessary-await.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-unnecessary-await.md @@ -29,4 +29,4 @@ async function bad() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_unnecessary_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_unnecessary_await.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-array-destructuring.md b/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-array-destructuring.md index fd2885e351d..2035fadce5f 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-array-destructuring.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-array-destructuring.md @@ -30,4 +30,4 @@ const [foo] = parts; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-iife.md b/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-iife.md index a445258b021..176eef023e6 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-iife.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-unreadable-iife.md @@ -39,4 +39,4 @@ const foo = ((bar) => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_unreadable_iife.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_unreadable_iife.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-useless-fallback-in-spread.md b/src/docs/guide/usage/linter/rules/unicorn/no-useless-fallback-in-spread.md index 5de7c0503bc..0c9485d847b 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-useless-fallback-in-spread.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-useless-fallback-in-spread.md @@ -36,4 +36,4 @@ const object = { ...(foo || { not: "empty" }) }; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_useless_fallback_in_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_useless_fallback_in_spread.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-useless-length-check.md b/src/docs/guide/usage/linter/rules/unicorn/no-useless-length-check.md index eeb452222cb..bd3ec17f004 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-useless-length-check.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-useless-length-check.md @@ -34,4 +34,4 @@ if (array.length === 0 || array.every(Boolean)) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_useless_length_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_useless_length_check.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject.md b/src/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject.md index a2f9f56dae4..c2746fbc633 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject.md @@ -32,4 +32,4 @@ async () => bar; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_useless_promise_resolve_reject.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_useless_promise_resolve_reject.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-useless-spread.md b/src/docs/guide/usage/linter/rules/unicorn/no-useless-spread.md index d2d9c89df6d..a927700ff2c 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-useless-spread.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-useless-spread.md @@ -82,4 +82,4 @@ function foo(bar) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_useless_spread/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_useless_spread/mod.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-useless-switch-case.md b/src/docs/guide/usage/linter/rules/unicorn/no-useless-switch-case.md index 75d2cd882cf..a15163dd0ed 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-useless-switch-case.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-useless-switch-case.md @@ -42,4 +42,4 @@ switch (foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_useless_switch_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_useless_switch_case.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-useless-undefined.md b/src/docs/guide/usage/linter/rules/unicorn/no-useless-undefined.md index 10955144688..4c212285399 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-useless-undefined.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-useless-undefined.md @@ -32,4 +32,4 @@ let foo; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_useless_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_useless_undefined.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-zero-fractions.md b/src/docs/guide/usage/linter/rules/unicorn/no-zero-fractions.md index 08247e844c5..f01dd9f2bd0 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-zero-fractions.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-zero-fractions.md @@ -37,4 +37,4 @@ const foo = 1.1; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/no_zero_fractions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/no_zero_fractions.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/number-literal-case.md b/src/docs/guide/usage/linter/rules/unicorn/number-literal-case.md index 3848579a382..c7f818be7c3 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/number-literal-case.md +++ b/src/docs/guide/usage/linter/rules/unicorn/number-literal-case.md @@ -47,4 +47,4 @@ const foo = 2e5; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/number_literal_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/number_literal_case.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/numeric-separators-style.md b/src/docs/guide/usage/linter/rules/unicorn/numeric-separators-style.md index ea5ed650683..b6ea3628d00 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/numeric-separators-style.md +++ b/src/docs/guide/usage/linter/rules/unicorn/numeric-separators-style.md @@ -28,4 +28,4 @@ const valid = [1_234_567, 1_234.567_89, 0xab_cd_ef, 0b1000_1111, 0o10_4421, 1_29 ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/numeric_separators_style.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/numeric_separators_style.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener.md index 2021d83b477..d5092fe824d 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener.md @@ -34,4 +34,4 @@ foo.addEventListener("click", () => {}); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_add_event_listener.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_add_event_listener.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat-map.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat-map.md index 75d3b4499a9..4a12b307598 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat-map.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat-map.md @@ -26,4 +26,4 @@ const bar = [1, 2, 3].flatMap((i) => [i]); // ✓ pass ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_array_flat_map.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_array_flat_map.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat.md index e80a36fec1b..19b6cdc6526 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-array-flat.md @@ -43,4 +43,4 @@ const foo = [maybeArray].flat(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_array_flat.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_array_flat.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-array-some.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-array-some.md index f616ff6a22a..99169781fe9 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-array-some.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-array-some.md @@ -41,4 +41,4 @@ foo.some((element) => element.bar === 1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_array_some.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_array_some.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-blob-reading-methods.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-blob-reading-methods.md index 27e36546219..d2435211972 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-blob-reading-methods.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-blob-reading-methods.md @@ -39,4 +39,4 @@ async function good() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_blob_reading_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_blob_reading_methods.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-code-point.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-code-point.md index 80b59fdcf75..2a1f97184ee 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-code-point.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-code-point.md @@ -37,4 +37,4 @@ String.fromCodePoint(0x1f984); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_code_point.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_code_point.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-date-now.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-date-now.md index 54a466e3a32..ef4f271eb29 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-date-now.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-date-now.md @@ -33,4 +33,4 @@ const ts = Date.now(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_date_now.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_date_now.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-append.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-append.md index d5ee2084419..2502d350d2e 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-append.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-append.md @@ -32,4 +32,4 @@ foo.append(bar); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_append.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_append.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-dataset.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-dataset.md index 6b7fd111457..1253a1d6536 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-dataset.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-dataset.md @@ -32,4 +32,4 @@ element.dataset.unicorn = "🦄"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_dataset.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_dataset.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-remove.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-remove.md index a17e0ac6a88..5f30d2ebe45 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-remove.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-remove.md @@ -29,4 +29,4 @@ childNode.remove(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_remove.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_remove.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-text-content.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-text-content.md index 74a31f31f1d..1f1f47c03e0 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-text-content.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-text-content.md @@ -36,4 +36,4 @@ const text = foo.textContent; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_text_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_text_content.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-event-target.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-event-target.md index 65df12b72db..ad40ab18b5b 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-event-target.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-event-target.md @@ -33,4 +33,4 @@ class Foo extends OtherClass {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_event_target.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_event_target.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-includes.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-includes.md index 12fb6848bf7..0f6ed02e51d 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-includes.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-includes.md @@ -35,4 +35,4 @@ if (str.includes("foo")) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_includes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_includes.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary.md index 6039292aab2..997bcefad3f 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary.md @@ -33,5 +33,5 @@ console.log(foo ?? bar); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_logical_operator_over_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_logical_operator_over_ternary.rs) ``` diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-math-min-max.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-math-min-max.md index 46f42bc92e9..4c468a26023 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-math-min-max.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-math-min-max.md @@ -32,4 +32,4 @@ Math.max(height, 50); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_math_min_max.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_math_min_max.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-math-trunc.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-math-trunc.md index 88b5ae2d3e3..b1f482d6e65 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-math-trunc.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-math-trunc.md @@ -40,4 +40,4 @@ const foo = Math.trunc(1.1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_math_trunc.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_math_trunc.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis.md index 6daca6b2e4d..b96c5e8516f 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis.md @@ -41,4 +41,4 @@ parentNode.replaceChild(newChildNode, oldChildNode); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_modern_dom_apis.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_modern_dom_apis.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-math-apis.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-math-apis.md index 8714ff4fa6b..eb797533e57 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-math-apis.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-modern-math-apis.md @@ -39,4 +39,4 @@ Math.hypot(a, b); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_modern_math_apis.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_modern_math_apis.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-native-coercion-functions.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-native-coercion-functions.md index 4d427a4d5fe..b25c8a03e49 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-native-coercion-functions.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-native-coercion-functions.md @@ -38,4 +38,4 @@ array.some(Boolean); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_native_coercion_functions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_native_coercion_functions.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-negative-index.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-negative-index.md index 21009135487..37a76130d67 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-negative-index.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-negative-index.md @@ -34,4 +34,4 @@ foo.at(-1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_negative_index.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_negative_index.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol.md index 7d5104850ba..f5f107307f0 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol.md @@ -32,4 +32,4 @@ import fs from "node:fs"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_node_protocol.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_node_protocol.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-number-properties.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-number-properties.md index 44ae91aa097..4101c9a5ada 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-number-properties.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-number-properties.md @@ -42,4 +42,4 @@ const bar = Number.parseFloat("10.5"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_number_properties.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_number_properties.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding.md index a3846779f44..fccaa2dc088 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding.md @@ -36,4 +36,4 @@ try { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_optional_catch_binding.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_optional_catch_binding.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-prototype-methods.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-prototype-methods.md index c7bf8225536..bbab9262e62 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-prototype-methods.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-prototype-methods.md @@ -37,4 +37,4 @@ const maxValue = Math.max.apply(Math, numbers); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_prototype_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_prototype_methods.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-query-selector.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-query-selector.md index ccbe2fab32e..4714be05298 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-query-selector.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-query-selector.md @@ -41,4 +41,4 @@ document.querySelector("li").querySelectorAll("a"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_query_selector.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_query_selector.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-reflect-apply.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-reflect-apply.md index e85bbf9a6d3..e2429fe72c6 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-reflect-apply.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-reflect-apply.md @@ -29,4 +29,4 @@ Reflect.apply(foo, null); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_reflect_apply.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_reflect_apply.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test.md index 0b7beece376..b5f9d57bc75 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test.md @@ -37,4 +37,4 @@ Boolean(string.match(/unicorn/)); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_regexp_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_regexp_test.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-set-has.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-set-has.md index d63810ca9f0..1a9f0836c36 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-set-has.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-set-has.md @@ -39,4 +39,4 @@ const hasOne = array.includes(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_set_has.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-set-size.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-set-size.md index f18ed8cd7c6..0e80676c74f 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-set-size.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-set-size.md @@ -35,4 +35,4 @@ const size = new Set([1, 2, 3]).size; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_set_size.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_set_size.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-spread.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-spread.md index 04d50ea0a36..653f3230ca9 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-spread.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-spread.md @@ -34,4 +34,4 @@ Array.from(...argumentsArray); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_spread.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-raw.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-raw.md index d61f06f1747..3b81e79cdda 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-raw.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-raw.md @@ -34,4 +34,4 @@ const regexp = new RegExp(String.raw`foo\.bar`); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_string_raw.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_string_raw.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-replace-all.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-replace-all.md index d69bd861862..06a74ec2c28 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-replace-all.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-replace-all.md @@ -36,4 +36,4 @@ foo.replace(pattern, bar); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_string_replace_all.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_string_replace_all.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-slice.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-slice.md index 7d42573a1f9..14b4d4e4239 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-slice.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-slice.md @@ -32,4 +32,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_string_slice.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_string_slice.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-starts-ends-with.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-starts-ends-with.md index 8982ecb6386..3436a1dfc4c 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-starts-ends-with.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-starts-ends-with.md @@ -37,4 +37,4 @@ foo.startsWith("abc"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_string_starts_ends_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_string_starts_ends_with.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-trim-start-end.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-trim-start-end.md index d0419feb8f4..8cfeed9fe8a 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-string-trim-start-end.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-string-trim-start-end.md @@ -34,4 +34,4 @@ str.trimEnd(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_string_trim_start_end.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_string_trim_start_end.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-structured-clone.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-structured-clone.md index 19bbf8a0f1c..90de90358bf 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-structured-clone.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-structured-clone.md @@ -34,4 +34,4 @@ const clone = structuredClone(foo); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_structured_clone.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_structured_clone.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/prefer-type-error.md b/src/docs/guide/usage/linter/rules/unicorn/prefer-type-error.md index acd6a8c4010..5284384cff2 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/prefer-type-error.md +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-type-error.md @@ -36,4 +36,4 @@ if (Array.isArray(foo)) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/prefer_type_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/prefer_type_error.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/require-array-join-separator.md b/src/docs/guide/usage/linter/rules/unicorn/require-array-join-separator.md index 9992f857ccd..f3386d32424 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/require-array-join-separator.md +++ b/src/docs/guide/usage/linter/rules/unicorn/require-array-join-separator.md @@ -33,4 +33,4 @@ foo.join(","); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/require_array_join_separator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/require_array_join_separator.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument.md b/src/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument.md index d1618da236e..c466972e503 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument.md +++ b/src/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument.md @@ -34,4 +34,4 @@ number.toFixed(2); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/require_number_to_fixed_digits_argument.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/require_number_to_fixed_digits_argument.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/switch-case-braces.md b/src/docs/guide/usage/linter/rules/unicorn/switch-case-braces.md index 1ae7e60b61c..bb709cdbee6 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/switch-case-braces.md +++ b/src/docs/guide/usage/linter/rules/unicorn/switch-case-braces.md @@ -30,4 +30,4 @@ switch (num) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/switch_case_braces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/switch_case_braces.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/text-encoding-identifier-case.md b/src/docs/guide/usage/linter/rules/unicorn/text-encoding-identifier-case.md index f1e2eb35192..171e6be1abf 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/text-encoding-identifier-case.md +++ b/src/docs/guide/usage/linter/rules/unicorn/text-encoding-identifier-case.md @@ -49,4 +49,4 @@ async function good() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/text_encoding_identifier_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/text_encoding_identifier_case.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/throw-new-error.md b/src/docs/guide/usage/linter/rules/unicorn/throw-new-error.md index 6d28fdcb0c0..71489ce1a8c 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/throw-new-error.md +++ b/src/docs/guide/usage/linter/rules/unicorn/throw-new-error.md @@ -36,4 +36,4 @@ throw new lib.TypeError("unicorn"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/unicorn/throw_new_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/unicorn/throw_new_error.rs) diff --git a/src/docs/guide/usage/linter/rules/vitest/no-conditional-tests.md b/src/docs/guide/usage/linter/rules/vitest/no-conditional-tests.md index 2be5eb673ad..d88f6a35776 100644 --- a/src/docs/guide/usage/linter/rules/vitest/no-conditional-tests.md +++ b/src/docs/guide/usage/linter/rules/vitest/no-conditional-tests.md @@ -45,4 +45,4 @@ describe("my tests", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/vitest/no_conditional_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/vitest/no_conditional_tests.rs) diff --git a/src/docs/guide/usage/linter/rules/vitest/no-import-node-test.md b/src/docs/guide/usage/linter/rules/vitest/no-import-node-test.md index 6c788edfc15..6ac14a0eb67 100644 --- a/src/docs/guide/usage/linter/rules/vitest/no-import-node-test.md +++ b/src/docs/guide/usage/linter/rules/vitest/no-import-node-test.md @@ -44,4 +44,4 @@ test("foo", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/vitest/no_import_node_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/vitest/no_import_node_test.rs) diff --git a/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-falsy.md b/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-falsy.md index 97da28ad08c..a2b1afa5798 100644 --- a/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-falsy.md +++ b/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-falsy.md @@ -37,4 +37,4 @@ expectTypeOf(foo).toBeFalsy(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/vitest/prefer_to_be_falsy.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/vitest/prefer_to_be_falsy.rs) diff --git a/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-object.md b/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-object.md index 41d7465be35..8bd21aa4f41 100644 --- a/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-object.md +++ b/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-object.md @@ -37,4 +37,4 @@ expectTypeOf({}).toBeObject(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/vitest/prefer_to_be_object.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/vitest/prefer_to_be_object.rs) diff --git a/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.md b/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.md index d42865380c3..6bfc99578b8 100644 --- a/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.md +++ b/src/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.md @@ -37,4 +37,4 @@ expectTypeOf(foo).toBeTruthy(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/vitest/prefer_to_be_truthy.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/vitest/prefer_to_be_truthy.rs) diff --git a/src/docs/guide/usage/linter/rules/vitest/require-local-test-context-for-concurrent-snapshots.md b/src/docs/guide/usage/linter/rules/vitest/require-local-test-context-for-concurrent-snapshots.md index fb4ab44c5e4..fc17e296d45 100644 --- a/src/docs/guide/usage/linter/rules/vitest/require-local-test-context-for-concurrent-snapshots.md +++ b/src/docs/guide/usage/linter/rules/vitest/require-local-test-context-for-concurrent-snapshots.md @@ -53,4 +53,4 @@ test.concurrent("myLogic", (context) => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4f6d164f52c4b120dc2976fc172fc0cf49f165b7/crates/oxc_linter/src/rules/vitest/require_local_test_context_for_concurrent_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/57b7ca8eae8a1d308119ac0e0a8e657e5e61b4bb/crates/oxc_linter/src/rules/vitest/require_local_test_context_for_concurrent_snapshots.rs)