From 3ce0790a8478725467a560b61101cf92693f5c76 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Tue, 26 Nov 2024 15:49:04 +0800 Subject: [PATCH] Release 0.13.2 (#247) --------- Co-authored-by: Boshen Co-authored-by: oxc-bot <176400334+oxc-bot@users.noreply.github.com> --- .typos.toml | 2 +- .../guide/usage/linter/generated-rules.md | 18 +++++--- .../rules/eslint/array-callback-return.md | 2 +- .../linter/rules/eslint/constructor-super.md | 2 +- .../linter/rules/eslint/default-case-last.md | 2 +- .../usage/linter/rules/eslint/default-case.md | 2 +- .../linter/rules/eslint/default-param-last.md | 2 +- .../guide/usage/linter/rules/eslint/eqeqeq.md | 2 +- .../linter/rules/eslint/for-direction.md | 2 +- .../usage/linter/rules/eslint/func-names.md | 2 +- .../linter/rules/eslint/getter-return.md | 2 +- .../usage/linter/rules/eslint/guard-for-in.md | 2 +- .../rules/eslint/max-classes-per-file.md | 2 +- .../usage/linter/rules/eslint/max-lines.md | 2 +- .../usage/linter/rules/eslint/max-params.md | 2 +- .../usage/linter/rules/eslint/no-alert.md | 2 +- .../rules/eslint/no-array-constructor.md | 2 +- .../rules/eslint/no-async-promise-executor.md | 2 +- .../linter/rules/eslint/no-await-in-loop.md | 2 +- .../usage/linter/rules/eslint/no-bitwise.md | 2 +- .../usage/linter/rules/eslint/no-caller.md | 2 +- .../rules/eslint/no-case-declarations.md | 2 +- .../linter/rules/eslint/no-class-assign.md | 2 +- .../rules/eslint/no-compare-neg-zero.md | 2 +- .../linter/rules/eslint/no-cond-assign.md | 2 +- .../usage/linter/rules/eslint/no-console.md | 2 +- .../linter/rules/eslint/no-const-assign.md | 2 +- .../eslint/no-constant-binary-expression.md | 2 +- .../rules/eslint/no-constant-condition.md | 2 +- .../rules/eslint/no-constructor-return.md | 2 +- .../usage/linter/rules/eslint/no-continue.md | 2 +- .../linter/rules/eslint/no-control-regex.md | 2 +- .../usage/linter/rules/eslint/no-debugger.md | 2 +- .../linter/rules/eslint/no-delete-var.md | 2 +- .../usage/linter/rules/eslint/no-div-regex.md | 2 +- .../rules/eslint/no-dupe-class-members.md | 2 +- .../linter/rules/eslint/no-dupe-else-if.md | 2 +- .../usage/linter/rules/eslint/no-dupe-keys.md | 2 +- .../linter/rules/eslint/no-duplicate-case.md | 2 +- .../rules/eslint/no-duplicate-imports.md | 38 +++++++++++++++++ .../linter/rules/eslint/no-else-return.md | 2 +- .../rules/eslint/no-empty-character-class.md | 2 +- .../linter/rules/eslint/no-empty-function.md | 2 +- .../linter/rules/eslint/no-empty-pattern.md | 2 +- .../rules/eslint/no-empty-static-block.md | 2 +- .../usage/linter/rules/eslint/no-empty.md | 2 +- .../usage/linter/rules/eslint/no-eq-null.md | 2 +- .../usage/linter/rules/eslint/no-eval.md | 2 +- .../usage/linter/rules/eslint/no-ex-assign.md | 2 +- .../linter/rules/eslint/no-extend-native.md | 2 +- .../rules/eslint/no-extra-boolean-cast.md | 2 +- .../linter/rules/eslint/no-fallthrough.md | 2 +- .../linter/rules/eslint/no-func-assign.md | 2 +- .../linter/rules/eslint/no-global-assign.md | 2 +- .../linter/rules/eslint/no-import-assign.md | 2 +- .../rules/eslint/no-inner-declarations.md | 2 +- .../linter/rules/eslint/no-invalid-regexp.md | 2 +- .../rules/eslint/no-irregular-whitespace.md | 2 +- .../usage/linter/rules/eslint/no-iterator.md | 2 +- .../usage/linter/rules/eslint/no-label-var.md | 2 +- .../rules/eslint/no-loss-of-precision.md | 2 +- .../linter/rules/eslint/no-magic-numbers.md | 2 +- .../usage/linter/rules/eslint/no-multi-str.md | 2 +- .../usage/linter/rules/eslint/no-new-func.md | 2 +- .../eslint/no-new-native-nonconstructor.md | 2 +- .../linter/rules/eslint/no-new-wrappers.md | 2 +- .../guide/usage/linter/rules/eslint/no-new.md | 2 +- .../eslint/no-nonoctal-decimal-escape.md | 2 +- .../usage/linter/rules/eslint/no-obj-calls.md | 2 +- .../rules/eslint/no-object-constructor.md | 39 +++++++++++++++++ .../usage/linter/rules/eslint/no-plusplus.md | 2 +- .../usage/linter/rules/eslint/no-proto.md | 2 +- .../rules/eslint/no-prototype-builtins.md | 2 +- .../usage/linter/rules/eslint/no-redeclare.md | 2 +- .../linter/rules/eslint/no-regex-spaces.md | 2 +- .../rules/eslint/no-restricted-globals.md | 2 +- .../linter/rules/eslint/no-return-assign.md | 2 +- .../linter/rules/eslint/no-script-url.md | 2 +- .../linter/rules/eslint/no-self-assign.md | 2 +- .../linter/rules/eslint/no-self-compare.md | 2 +- .../linter/rules/eslint/no-setter-return.md | 2 +- .../eslint/no-shadow-restricted-names.md | 2 +- .../linter/rules/eslint/no-sparse-arrays.md | 2 +- .../eslint/no-template-curly-in-string.md | 2 +- .../usage/linter/rules/eslint/no-ternary.md | 2 +- .../rules/eslint/no-this-before-super.md | 2 +- .../linter/rules/eslint/no-throw-literal.md | 2 +- .../usage/linter/rules/eslint/no-undef.md | 2 +- .../usage/linter/rules/eslint/no-undefined.md | 2 +- .../rules/eslint/no-unexpected-multiline.md | 2 +- .../linter/rules/eslint/no-unreachable.md | 2 +- .../linter/rules/eslint/no-unsafe-finally.md | 2 +- .../linter/rules/eslint/no-unsafe-negation.md | 2 +- .../eslint/no-unsafe-optional-chaining.md | 2 +- .../linter/rules/eslint/no-unused-labels.md | 2 +- .../eslint/no-unused-private-class-members.md | 2 +- .../linter/rules/eslint/no-unused-vars.md | 2 +- .../linter/rules/eslint/no-useless-catch.md | 2 +- .../linter/rules/eslint/no-useless-concat.md | 2 +- .../rules/eslint/no-useless-constructor.md | 2 +- .../linter/rules/eslint/no-useless-escape.md | 2 +- .../linter/rules/eslint/no-useless-rename.md | 2 +- .../guide/usage/linter/rules/eslint/no-var.md | 2 +- .../usage/linter/rules/eslint/no-void.md | 2 +- .../usage/linter/rules/eslint/no-with.md | 2 +- .../eslint/prefer-exponentiation-operator.md | 2 +- .../rules/eslint/prefer-numeric-literals.md | 2 +- .../rules/eslint/prefer-object-has-own.md | 2 +- .../guide/usage/linter/rules/eslint/radix.md | 2 +- .../linter/rules/eslint/require-await.md | 2 +- .../linter/rules/eslint/require-yield.md | 2 +- .../usage/linter/rules/eslint/sort-imports.md | 2 +- .../usage/linter/rules/eslint/sort-keys.md | 2 +- .../usage/linter/rules/eslint/sort-vars.md | 2 +- .../linter/rules/eslint/symbol-description.md | 2 +- .../usage/linter/rules/eslint/unicode-bom.md | 2 +- .../usage/linter/rules/eslint/use-isnan.md | 2 +- .../usage/linter/rules/eslint/valid-typeof.md | 2 +- .../usage/linter/rules/import/default.md | 2 +- .../guide/usage/linter/rules/import/export.md | 2 +- .../guide/usage/linter/rules/import/first.md | 2 +- .../rules/import/import-no-namespace.md | 2 +- .../linter/rules/import/max-dependencies.md | 2 +- .../guide/usage/linter/rules/import/named.md | 2 +- .../usage/linter/rules/import/namespace.md | 2 +- .../guide/usage/linter/rules/import/no-amd.md | 2 +- .../usage/linter/rules/import/no-commonjs.md | 2 +- .../usage/linter/rules/import/no-cycle.md | 2 +- .../linter/rules/import/no-default-export.md | 2 +- .../linter/rules/import/no-duplicates.md | 2 +- .../linter/rules/import/no-dynamic-require.md | 2 +- .../import/no-named-as-default-member.md | 2 +- .../rules/import/no-named-as-default.md | 2 +- .../linter/rules/import/no-self-import.md | 2 +- .../rules/import/no-webpack-loader-syntax.md | 2 +- .../usage/linter/rules/import/unambiguous.md | 2 +- .../linter/rules/jest/consistent-test-it.md | 2 +- .../usage/linter/rules/jest/expect-expect.md | 2 +- .../usage/linter/rules/jest/max-expects.md | 2 +- .../linter/rules/jest/max-nested-describe.md | 2 +- .../linter/rules/jest/no-alias-methods.md | 2 +- .../rules/jest/no-commented-out-tests.md | 2 +- .../rules/jest/no-conditional-expect.md | 2 +- .../rules/jest/no-conditional-in-test.md | 2 +- .../rules/jest/no-confusing-set-timeout.md | 2 +- .../rules/jest/no-deprecated-functions.md | 2 +- .../linter/rules/jest/no-disabled-tests.md | 2 +- .../linter/rules/jest/no-done-callback.md | 2 +- .../linter/rules/jest/no-duplicate-hooks.md | 2 +- .../usage/linter/rules/jest/no-export.md | 2 +- .../linter/rules/jest/no-focused-tests.md | 2 +- .../guide/usage/linter/rules/jest/no-hooks.md | 2 +- .../linter/rules/jest/no-identical-title.md | 2 +- .../jest/no-interpolation-in-snapshots.md | 2 +- .../linter/rules/jest/no-jasmine-globals.md | 2 +- .../linter/rules/jest/no-large-snapshots.md | 2 +- .../linter/rules/jest/no-mocks-import.md | 2 +- .../rules/jest/no-restricted-jest-methods.md | 2 +- .../rules/jest/no-restricted-matchers.md | 2 +- .../linter/rules/jest/no-standalone-expect.md | 2 +- .../linter/rules/jest/no-test-prefixes.md | 2 +- .../rules/jest/no-test-return-statement.md | 2 +- .../rules/jest/no-untyped-mock-factory.md | 2 +- .../linter/rules/jest/prefer-called-with.md | 2 +- .../rules/jest/prefer-comparison-matcher.md | 2 +- .../rules/jest/prefer-equality-matcher.md | 2 +- .../rules/jest/prefer-expect-resolves.md | 2 +- .../rules/jest/prefer-hooks-in-order.md | 2 +- .../linter/rules/jest/prefer-hooks-on-top.md | 2 +- .../linter/rules/jest/prefer-jest-mocked.md | 2 +- .../rules/jest/prefer-lowercase-title.md | 2 +- .../jest/prefer-mock-promise-shorthand.md | 2 +- .../usage/linter/rules/jest/prefer-spy-on.md | 2 +- .../linter/rules/jest/prefer-strict-equal.md | 2 +- .../usage/linter/rules/jest/prefer-to-be.md | 2 +- .../linter/rules/jest/prefer-to-contain.md | 2 +- .../rules/jest/prefer-to-have-length.md | 2 +- .../usage/linter/rules/jest/prefer-todo.md | 2 +- .../usage/linter/rules/jest/require-hook.md | 2 +- .../rules/jest/require-to-throw-message.md | 2 +- .../rules/jest/require-top-level-describe.md | 2 +- .../rules/jest/valid-describe-callback.md | 2 +- .../usage/linter/rules/jest/valid-expect.md | 2 +- .../usage/linter/rules/jest/valid-title.md | 2 +- .../usage/linter/rules/jsdoc/check-access.md | 2 +- .../rules/jsdoc/check-property-names.md | 2 +- .../linter/rules/jsdoc/check-tag-names.md | 2 +- .../usage/linter/rules/jsdoc/empty-tags.md | 2 +- .../rules/jsdoc/implements-on-classes.md | 2 +- .../usage/linter/rules/jsdoc/no-defaults.md | 2 +- .../rules/jsdoc/require-param-description.md | 2 +- .../linter/rules/jsdoc/require-param-name.md | 2 +- .../linter/rules/jsdoc/require-param-type.md | 2 +- .../usage/linter/rules/jsdoc/require-param.md | 2 +- .../jsdoc/require-property-description.md | 2 +- .../rules/jsdoc/require-property-name.md | 2 +- .../rules/jsdoc/require-property-type.md | 2 +- .../linter/rules/jsdoc/require-property.md | 2 +- .../jsdoc/require-returns-description.md | 2 +- .../rules/jsdoc/require-returns-type.md | 2 +- .../linter/rules/jsdoc/require-returns.md | 2 +- .../linter/rules/jsdoc/require-yields.md | 2 +- .../usage/linter/rules/jsx_a11y/alt-text.md | 2 +- .../rules/jsx_a11y/anchor-ambiguous-text.md | 42 +++++++++++++++++++ .../rules/jsx_a11y/anchor-has-content.md | 2 +- .../linter/rules/jsx_a11y/anchor-is-valid.md | 2 +- .../aria-activedescendant-has-tabindex.md | 2 +- .../usage/linter/rules/jsx_a11y/aria-props.md | 2 +- .../usage/linter/rules/jsx_a11y/aria-role.md | 2 +- .../jsx_a11y/aria-unsupported-elements.md | 2 +- .../rules/jsx_a11y/autocomplete-valid.md | 2 +- .../jsx_a11y/click-events-have-key-events.md | 2 +- .../rules/jsx_a11y/heading-has-content.md | 2 +- .../linter/rules/jsx_a11y/html-has-lang.md | 2 +- .../linter/rules/jsx_a11y/iframe-has-title.md | 2 +- .../rules/jsx_a11y/img-redundant-alt.md | 2 +- .../jsx_a11y/label-has-associated-control.md | 2 +- .../guide/usage/linter/rules/jsx_a11y/lang.md | 2 +- .../rules/jsx_a11y/media-has-caption.md | 2 +- .../jsx_a11y/mouse-events-have-key-events.md | 2 +- .../linter/rules/jsx_a11y/no-access-key.md | 2 +- .../jsx_a11y/no-aria-hidden-on-focusable.md | 2 +- .../linter/rules/jsx_a11y/no-autofocus.md | 2 +- .../rules/jsx_a11y/no-distracting-elements.md | 2 +- .../rules/jsx_a11y/no-redundant-roles.md | 2 +- .../rules/jsx_a11y/prefer-tag-over-role.md | 2 +- .../jsx_a11y/role-has-required-aria-props.md | 2 +- .../jsx_a11y/role-supports-aria-props.md | 2 +- .../usage/linter/rules/jsx_a11y/scope.md | 2 +- .../rules/jsx_a11y/tabindex-no-positive.md | 2 +- .../rules/nextjs/google-font-display.md | 2 +- .../rules/nextjs/google-font-preconnect.md | 2 +- .../linter/rules/nextjs/inline-script-id.md | 2 +- .../linter/rules/nextjs/next-script-for-ga.md | 2 +- .../rules/nextjs/no-assign-module-variable.md | 2 +- .../rules/nextjs/no-async-client-component.md | 2 +- ...ore-interactive-script-outside-document.md | 2 +- .../usage/linter/rules/nextjs/no-css-tags.md | 2 +- .../nextjs/no-document-import-in-page.md | 2 +- .../linter/rules/nextjs/no-duplicate-head.md | 2 +- .../linter/rules/nextjs/no-head-element.md | 2 +- .../nextjs/no-head-import-in-document.md | 2 +- .../linter/rules/nextjs/no-img-element.md | 2 +- .../rules/nextjs/no-page-custom-font.md | 2 +- .../nextjs/no-script-component-in-head.md | 2 +- .../rules/nextjs/no-styled-jsx-in-document.md | 2 +- .../linter/rules/nextjs/no-sync-scripts.md | 2 +- .../rules/nextjs/no-title-in-document-head.md | 2 +- .../usage/linter/rules/nextjs/no-typos.md | 2 +- .../rules/nextjs/no-unwanted-polyfillio.md | 2 +- .../linter/rules/node/no-exports-assign.md | 2 +- .../usage/linter/rules/node/no-new-require.md | 2 +- .../usage/linter/rules/oxc/approx-constant.md | 2 +- .../oxc/bad-array-method-on-arguments.md | 2 +- .../linter/rules/oxc/bad-bitwise-operator.md | 2 +- .../rules/oxc/bad-char-at-comparison.md | 2 +- .../rules/oxc/bad-comparison-sequence.md | 2 +- .../linter/rules/oxc/bad-min-max-func.md | 2 +- .../oxc/bad-object-literal-comparison.md | 2 +- .../linter/rules/oxc/bad-replace-all-arg.md | 2 +- .../linter/rules/oxc/const-comparisons.md | 2 +- .../linter/rules/oxc/double-comparisons.md | 2 +- .../usage/linter/rules/oxc/erasing-op.md | 2 +- .../rules/oxc/misrefactored-assign-op.md | 2 +- .../usage/linter/rules/oxc/missing-throw.md | 2 +- .../rules/oxc/no-accumulating-spread.md | 2 +- .../usage/linter/rules/oxc/no-async-await.md | 2 +- .../rules/oxc/no-async-endpoint-handlers.md | 2 +- .../usage/linter/rules/oxc/no-barrel-file.md | 2 +- .../usage/linter/rules/oxc/no-const-enum.md | 2 +- .../usage/linter/rules/oxc/no-map-spread.md | 2 +- .../linter/rules/oxc/no-optional-chaining.md | 2 +- .../rules/oxc/no-rest-spread-properties.md | 2 +- .../rules/oxc/number-arg-out-of-range.md | 2 +- .../rules/oxc/only-used-in-recursion.md | 2 +- .../rules/oxc/uninvoked-array-callback.md | 2 +- .../usage/linter/rules/promise/avoid-new.md | 2 +- .../linter/rules/promise/catch-or-return.md | 2 +- .../rules/promise/no-callback-in-promise.md | 2 +- .../linter/rules/promise/no-new-statics.md | 2 +- .../rules/promise/no-promise-in-callback.md | 2 +- .../rules/promise/no-return-in-finally.md | 2 +- .../usage/linter/rules/promise/param-names.md | 2 +- .../promise/prefer-await-to-callbacks.md | 2 +- .../rules/promise/prefer-await-to-then.md | 2 +- .../usage/linter/rules/promise/spec-only.md | 2 +- .../linter/rules/promise/valid-params.md | 2 +- .../linter/rules/react/button-has-type.md | 2 +- .../checked-requires-onchange-or-readonly.md | 2 +- .../linter/rules/react/exhaustive-deps.md | 2 +- .../rules/react/iframe-missing-sandbox.md | 2 +- .../linter/rules/react/jsx-boolean-value.md | 2 +- .../rules/react/jsx-curly-brace-presence.md | 2 +- .../guide/usage/linter/rules/react/jsx-key.md | 2 +- .../rules/react/jsx-no-comment-textnodes.md | 2 +- .../rules/react/jsx-no-duplicate-props.md | 2 +- .../linter/rules/react/jsx-no-script-url.md | 37 ++++++++++++++++ .../linter/rules/react/jsx-no-target-blank.md | 2 +- .../usage/linter/rules/react/jsx-no-undef.md | 2 +- .../rules/react/jsx-no-useless-fragment.md | 2 +- .../rules/react/jsx-props-no-spread-multi.md | 2 +- .../linter/rules/react/no-array-index-key.md | 2 +- .../linter/rules/react/no-children-prop.md | 2 +- .../rules/react/no-danger-with-children.md | 2 +- .../usage/linter/rules/react/no-danger.md | 2 +- .../rules/react/no-direct-mutation-state.md | 2 +- .../linter/rules/react/no-find-dom-node.md | 2 +- .../usage/linter/rules/react/no-is-mounted.md | 2 +- .../rules/react/no-render-return-value.md | 2 +- .../usage/linter/rules/react/no-set-state.md | 2 +- .../linter/rules/react/no-string-refs.md | 2 +- .../rules/react/no-unescaped-entities.md | 2 +- .../linter/rules/react/no-unknown-property.md | 2 +- .../linter/rules/react/prefer-es6-class.md | 2 +- .../linter/rules/react/react-in-jsx-scope.md | 2 +- .../rules/react/require-render-return.md | 2 +- .../linter/rules/react/rules-of-hooks.md | 2 +- .../linter/rules/react/self-closing-comp.md | 2 +- .../linter/rules/react/style-prop-object.md | 2 +- .../react/void-dom-elements-no-children.md | 2 +- .../rules/react_perf/jsx-no-jsx-as-prop.md | 2 +- .../react_perf/jsx-no-new-array-as-prop.md | 2 +- .../react_perf/jsx-no-new-function-as-prop.md | 2 +- .../react_perf/jsx-no-new-object-as-prop.md | 2 +- .../usage/linter/rules/security/api-keys.md | 2 +- .../adjacent-overload-signatures.md | 2 +- .../linter/rules/typescript/array-type.md | 2 +- .../linter/rules/typescript/ban-ts-comment.md | 2 +- .../rules/typescript/ban-tslint-comment.md | 2 +- .../linter/rules/typescript/ban-types.md | 2 +- .../consistent-indexed-object-style.md | 2 +- .../typescript/consistent-type-definitions.md | 2 +- .../typescript/consistent-type-imports.md | 2 +- .../explicit-function-return-type.md | 2 +- .../no-confusing-non-null-assertion.md | 2 +- .../typescript/no-duplicate-enum-values.md | 2 +- .../rules/typescript/no-dynamic-delete.md | 2 +- .../rules/typescript/no-empty-interface.md | 2 +- .../rules/typescript/no-empty-object-type.md | 2 +- .../rules/typescript/no-explicit-any.md | 2 +- .../typescript/no-extra-non-null-assertion.md | 2 +- .../rules/typescript/no-extraneous-class.md | 2 +- .../typescript/no-import-type-side-effects.md | 2 +- .../linter/rules/typescript/no-misused-new.md | 2 +- .../linter/rules/typescript/no-namespace.md | 2 +- ...no-non-null-asserted-nullish-coalescing.md | 2 +- .../no-non-null-asserted-optional-chain.md | 2 +- .../rules/typescript/no-non-null-assertion.md | 2 +- .../rules/typescript/no-require-imports.md | 2 +- .../linter/rules/typescript/no-this-alias.md | 2 +- .../no-unnecessary-type-constraint.md | 2 +- .../no-unsafe-declaration-merging.md | 2 +- .../typescript/no-unsafe-function-type.md | 2 +- .../typescript/no-useless-empty-export.md | 2 +- .../rules/typescript/no-var-requires.md | 2 +- .../typescript/no-wrapper-object-types.md | 2 +- .../rules/typescript/prefer-as-const.md | 2 +- .../typescript/prefer-enum-initializers.md | 2 +- .../linter/rules/typescript/prefer-for-of.md | 2 +- .../rules/typescript/prefer-function-type.md | 2 +- .../typescript/prefer-literal-enum-member.md | 2 +- .../typescript/prefer-namespace-keyword.md | 2 +- .../typescript/prefer-ts-expect-error.md | 2 +- .../typescript/triple-slash-reference.md | 2 +- .../linter/rules/unicorn/catch-error-name.md | 2 +- .../unicorn/consistent-empty-array-spread.md | 2 +- .../consistent-existence-index-check.md | 2 +- .../unicorn/consistent-function-scoping.md | 2 +- .../rules/unicorn/empty-brace-spaces.md | 2 +- .../linter/rules/unicorn/error-message.md | 2 +- .../usage/linter/rules/unicorn/escape-case.md | 2 +- .../rules/unicorn/explicit-length-check.md | 2 +- .../linter/rules/unicorn/filename-case.md | 2 +- .../linter/rules/unicorn/new-for-builtins.md | 2 +- .../unicorn/no-abusive-eslint-disable.md | 2 +- .../unicorn/no-anonymous-default-export.md | 2 +- .../linter/rules/unicorn/no-array-for-each.md | 2 +- .../linter/rules/unicorn/no-array-reduce.md | 2 +- .../unicorn/no-await-expression-member.md | 2 +- .../unicorn/no-await-in-promise-methods.md | 2 +- .../linter/rules/unicorn/no-console-spaces.md | 2 +- .../rules/unicorn/no-document-cookie.md | 2 +- .../linter/rules/unicorn/no-empty-file.md | 2 +- .../linter/rules/unicorn/no-hex-escape.md | 2 +- .../rules/unicorn/no-instanceof-array.md | 2 +- .../no-invalid-remove-event-listener.md | 2 +- .../rules/unicorn/no-length-as-slice-end.md | 2 +- .../linter/rules/unicorn/no-lonely-if.md | 2 +- .../unicorn/no-magic-array-flat-depth.md | 2 +- .../rules/unicorn/no-negated-condition.md | 2 +- .../unicorn/no-negation-in-equality-check.md | 2 +- .../linter/rules/unicorn/no-nested-ternary.md | 2 +- .../linter/rules/unicorn/no-new-array.md | 2 +- .../linter/rules/unicorn/no-new-buffer.md | 2 +- .../usage/linter/rules/unicorn/no-null.md | 2 +- .../unicorn/no-object-as-default-parameter.md | 2 +- .../linter/rules/unicorn/no-process-exit.md | 2 +- .../no-single-promise-in-promise-methods.md | 2 +- .../rules/unicorn/no-static-only-class.md | 2 +- .../usage/linter/rules/unicorn/no-thenable.md | 2 +- .../rules/unicorn/no-this-assignment.md | 2 +- .../rules/unicorn/no-typeof-undefined.md | 2 +- .../rules/unicorn/no-unnecessary-await.md | 2 +- .../no-unreadable-array-destructuring.md | 2 +- .../rules/unicorn/no-unreadable-iife.md | 2 +- .../unicorn/no-useless-fallback-in-spread.md | 2 +- .../rules/unicorn/no-useless-length-check.md | 2 +- .../no-useless-promise-resolve-reject.md | 2 +- .../linter/rules/unicorn/no-useless-spread.md | 2 +- .../rules/unicorn/no-useless-switch-case.md | 2 +- .../rules/unicorn/no-useless-undefined.md | 2 +- .../linter/rules/unicorn/no-zero-fractions.md | 2 +- .../rules/unicorn/number-literal-case.md | 2 +- .../rules/unicorn/numeric-separators-style.md | 2 +- .../unicorn/prefer-add-event-listener.md | 2 +- .../rules/unicorn/prefer-array-flat-map.md | 2 +- .../linter/rules/unicorn/prefer-array-flat.md | 2 +- .../linter/rules/unicorn/prefer-array-some.md | 2 +- .../unicorn/prefer-blob-reading-methods.md | 2 +- .../linter/rules/unicorn/prefer-code-point.md | 2 +- .../linter/rules/unicorn/prefer-date-now.md | 2 +- .../rules/unicorn/prefer-dom-node-append.md | 2 +- .../rules/unicorn/prefer-dom-node-dataset.md | 2 +- .../rules/unicorn/prefer-dom-node-remove.md | 2 +- .../unicorn/prefer-dom-node-text-content.md | 2 +- .../rules/unicorn/prefer-event-target.md | 2 +- .../linter/rules/unicorn/prefer-includes.md | 2 +- .../prefer-logical-operator-over-ternary.md | 2 +- .../rules/unicorn/prefer-math-min-max.md | 2 +- .../linter/rules/unicorn/prefer-math-trunc.md | 2 +- .../rules/unicorn/prefer-modern-dom-apis.md | 2 +- .../rules/unicorn/prefer-modern-math-apis.md | 2 +- .../prefer-native-coercion-functions.md | 2 +- .../rules/unicorn/prefer-negative-index.md | 37 ++++++++++++++++ .../rules/unicorn/prefer-node-protocol.md | 2 +- .../rules/unicorn/prefer-number-properties.md | 2 +- .../unicorn/prefer-optional-catch-binding.md | 2 +- .../rules/unicorn/prefer-prototype-methods.md | 2 +- .../rules/unicorn/prefer-query-selector.md | 2 +- .../rules/unicorn/prefer-reflect-apply.md | 2 +- .../rules/unicorn/prefer-regexp-test.md | 2 +- .../linter/rules/unicorn/prefer-set-has.md | 42 +++++++++++++++++++ .../linter/rules/unicorn/prefer-set-size.md | 2 +- .../linter/rules/unicorn/prefer-spread.md | 2 +- .../linter/rules/unicorn/prefer-string-raw.md | 2 +- .../unicorn/prefer-string-replace-all.md | 2 +- .../rules/unicorn/prefer-string-slice.md | 2 +- .../unicorn/prefer-string-starts-ends-with.md | 2 +- .../unicorn/prefer-string-trim-start-end.md | 2 +- .../rules/unicorn/prefer-structured-clone.md | 2 +- .../linter/rules/unicorn/prefer-type-error.md | 2 +- .../unicorn/require-array-join-separator.md | 2 +- ...require-number-to-fixed-digits-argument.md | 2 +- .../rules/unicorn/switch-case-braces.md | 2 +- .../unicorn/text-encoding-identifier-case.md | 2 +- .../linter/rules/unicorn/throw-new-error.md | 2 +- .../rules/vitest/no-conditional-tests.md | 2 +- .../rules/vitest/no-import-node-test.md | 2 +- .../usage/linter/rules/vitest/prefer-each.md | 2 +- .../linter/rules/vitest/prefer-to-be-falsy.md | 2 +- .../rules/vitest/prefer-to-be-object.md | 2 +- .../rules/vitest/prefer-to-be-truthy.md | 2 +- ...l-test-context-for-concurrent-snapshots.md | 2 +- 463 files changed, 703 insertions(+), 462 deletions(-) create mode 100644 src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md create mode 100644 src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md create mode 100644 src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md create mode 100644 src/docs/guide/usage/linter/rules/react/jsx-no-script-url.md create mode 100644 src/docs/guide/usage/linter/rules/unicorn/prefer-negative-index.md create mode 100644 src/docs/guide/usage/linter/rules/unicorn/prefer-set-has.md diff --git a/.typos.toml b/.typos.toml index ea6db68b99..84ce2e0d4f 100644 --- a/.typos.toml +++ b/.typos.toml @@ -7,4 +7,4 @@ trivias = "trivias" trivia = "trivia" [files] -extend-exclude = ["src/docs/guide/usage/linter/rules"] +extend-exclude = ["src/docs/guide/usage/linter/rules", "pnpm-lock.yaml"] diff --git a/src/docs/guide/usage/linter/generated-rules.md b/src/docs/guide/usage/linter/generated-rules.md index 777d6fd7c3..0304a2fbb0 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: 455 +- Total number of rules: 461 - Rules turned on by default: 97 ## Correctness (172): @@ -183,7 +183,7 @@ 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 (7): +## Perf (8): Code that can be written to run faster. | Rule name | Source | Default | Fixable? | @@ -195,8 +195,9 @@ Code that can be written to run faster. | [jsx-no-new-array-as-prop](/docs/guide/usage/linter/rules/react_perf/jsx-no-new-array-as-prop.html) | react_perf | | | | [jsx-no-new-function-as-prop](/docs/guide/usage/linter/rules/react_perf/jsx-no-new-function-as-prop.html) | react_perf | | | | [jsx-no-new-object-as-prop](/docs/guide/usage/linter/rules/react_perf/jsx-no-new-object-as-prop.html) | react_perf | | | +| [prefer-set-has](/docs/guide/usage/linter/rules/unicorn/prefer-set-has.html) | unicorn | | ⚠️🛠️️ | -## Restriction (61): +## Restriction (62): Lints which prevent the use of language and library features. Must not be enabled as a whole, should be considered on a case-by-case basis before enabling. | Rule name | Source | Default | Fixable? | @@ -228,6 +229,7 @@ Lints which prevent the use of language and library features. Must not be enable | [unambiguous](/docs/guide/usage/linter/rules/import/unambiguous.html) | import | | | | [check-access](/docs/guide/usage/linter/rules/jsdoc/check-access.html) | jsdoc | | | | [empty-tags](/docs/guide/usage/linter/rules/jsdoc/empty-tags.html) | jsdoc | | | +| [anchor-ambiguous-text](/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.html) | jsx_a11y | | | | [no-new-require](/docs/guide/usage/linter/rules/node/no-new-require.html) | node | | | | [bad-bitwise-operator](/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator.html) | oxc | | | | [no-async-await](/docs/guide/usage/linter/rules/oxc/no-async-await.html) | oxc | | | @@ -263,7 +265,7 @@ Lints which prevent the use of language and library features. Must not be enable | [prefer-node-protocol](/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol.html) | unicorn | | 🛠️ | | [prefer-number-properties](/docs/guide/usage/linter/rules/unicorn/prefer-number-properties.html) | unicorn | | 🚧 | -## Suspicious (23): +## Suspicious (24): code that is most likely wrong or useless. | Rule name | Source | Default | Fixable? | @@ -284,6 +286,7 @@ code that is most likely wrong or useless. | [no-promise-in-callback](/docs/guide/usage/linter/rules/promise/no-promise-in-callback.html) | promise | | | | [iframe-missing-sandbox](/docs/guide/usage/linter/rules/react/iframe-missing-sandbox.html) | react | | 🚧 | | [jsx-no-comment-textnodes](/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes.html) | react | | | +| [jsx-no-script-url](/docs/guide/usage/linter/rules/react/jsx-no-script-url.html) | react | | 🚧 | | [react-in-jsx-scope](/docs/guide/usage/linter/rules/react/react-in-jsx-scope.html) | react | | | | [style-prop-object](/docs/guide/usage/linter/rules/react/style-prop-object.html) | react | | | | [no-confusing-non-null-assertion](/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion.html) | typescript | | 🚧 | @@ -292,7 +295,7 @@ code that is most likely wrong or useless. | [consistent-function-scoping](/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping.html) | unicorn | | 🚧 | | [prefer-add-event-listener](/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener.html) | unicorn | | 🚧 | -## Pedantic (73): +## Pedantic (74): Lints which are rather strict or have occasional false positives. | Rule name | Source | Default | Fixable? | @@ -308,6 +311,7 @@ Lints which are rather strict or have occasional false positives. | [no-fallthrough](/docs/guide/usage/linter/rules/eslint/no-fallthrough.html) | eslint | | 🚧 | | [no-inner-declarations](/docs/guide/usage/linter/rules/eslint/no-inner-declarations.html) | eslint | | | | [no-new-wrappers](/docs/guide/usage/linter/rules/eslint/no-new-wrappers.html) | eslint | | 🚧 | +| [no-object-constructor](/docs/guide/usage/linter/rules/eslint/no-object-constructor.html) | eslint | | 🚧 | | [no-prototype-builtins](/docs/guide/usage/linter/rules/eslint/no-prototype-builtins.html) | eslint | | | | [no-redeclare](/docs/guide/usage/linter/rules/eslint/no-redeclare.html) | eslint | | | | [no-self-compare](/docs/guide/usage/linter/rules/eslint/no-self-compare.html) | eslint | | | @@ -371,7 +375,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 (108): +## Style (110): Code that should be written in a more idiomatic way. | Rule name | Source | Default | Fixable? | @@ -382,6 +386,7 @@ Code that should be written in a more idiomatic way. | [guard-for-in](/docs/guide/usage/linter/rules/eslint/guard-for-in.html) | eslint | | | | [max-params](/docs/guide/usage/linter/rules/eslint/max-params.html) | eslint | | | | [no-continue](/docs/guide/usage/linter/rules/eslint/no-continue.html) | eslint | | | +| [no-duplicate-imports](/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.html) | eslint | | 🚧 | | [no-label-var](/docs/guide/usage/linter/rules/eslint/no-label-var.html) | eslint | | | | [no-magic-numbers](/docs/guide/usage/linter/rules/eslint/no-magic-numbers.html) | eslint | | 🚧 | | [no-multi-str](/docs/guide/usage/linter/rules/eslint/no-multi-str.html) | eslint | | | @@ -469,6 +474,7 @@ Code that should be written in a more idiomatic way. | [prefer-includes](/docs/guide/usage/linter/rules/unicorn/prefer-includes.html) | unicorn | | 🚧 | | [prefer-logical-operator-over-ternary](/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary.html) | unicorn | | 🚧 | | [prefer-modern-dom-apis](/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis.html) | unicorn | | 🚧 | +| [prefer-negative-index](/docs/guide/usage/linter/rules/unicorn/prefer-negative-index.html) | unicorn | | 🛠️ | | [prefer-optional-catch-binding](/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding.html) | unicorn | | 🛠️ | | [prefer-reflect-apply](/docs/guide/usage/linter/rules/unicorn/prefer-reflect-apply.html) | unicorn | | | | [prefer-spread](/docs/guide/usage/linter/rules/unicorn/prefer-spread.html) | unicorn | | 🛠️ | 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 4a3345f89b..9eccb6d3ef 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/array_callback_return/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c77bbfe8f7..2481fbc53a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/constructor_super.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 aba4f69315..1333316384 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/default_case_last.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ec77aa4b43..8f7129b897 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/default_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 01c3b8905d..28260a76de 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/default_param_last.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5eb80f995c..a0cfcdaac2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/eqeqeq.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8c4af36871..362f6a0c05 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/for_direction.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 36ca208def..72da2b8d89 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/func_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 990ad02b96..828e876de1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/getter_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 88f25e0b91..f0b7b84a80 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/guard_for_in.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 74010a8e37..8418d1280a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/max_classes_per_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4db54ee9c8..82b24e0bd5 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/max_lines.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 aee80c36ac..8b9df073dd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/max_params.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/max_params.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 0f78cffc93..a388badc8f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_alert.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3595424cdd..69fe1dd3db 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_array_constructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d7d2167eac..da647940bd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_async_promise_executor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d3a9399df5..401aa614a0 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_await_in_loop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 59497e238a..e449a876dc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_bitwise.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7657bfc713..13218adbcc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_caller.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4e56a875d7..97fc2b4e7f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_case_declarations.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 85bcff99de..bb95d5d740 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_class_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 39b0de2c0f..e217f1a5c6 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_compare_neg_zero.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ef202381ef..b6e217cd5d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_cond_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 42d96f5d61..fbd8e48bae 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_console.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1ce57f076b..779c9ba742 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_const_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f2eede5fcf..19fdc9ef8e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_constant_binary_expression.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 64f9d98586..1122528897 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_constant_condition.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3cffa9dbd7..04ee9b7c82 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_constructor_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 46da85ed7c..cb054145f2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_continue.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5742d84cd5..d6991612bc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_control_regex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1ee0914c92..cf1b51d68f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_debugger.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6722088587..07df3750b1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_delete_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cf60e9023e..cbafa81918 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_div_regex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ea81125848..41a0331a80 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_dupe_class_members.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b138fe0ee6..b606cd88da 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_dupe_else_if.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6e7bd21547..3da39a565c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_dupe_keys.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f1c9f14f69..b2b325bae7 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_duplicate_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 new file mode 100644 index 0000000000..31021394e6 --- /dev/null +++ b/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md @@ -0,0 +1,38 @@ + + +# eslint/no-duplicate-imports + +
+ +🚧 An auto-fix is still under development. + +
+ +### What it does + +Disallow duplicate module imports + +### Why is this bad? + +Using a single import statement per module will make the code clearer because you can see everything being imported from that module on one line. + +### Examples + +Examples of **incorrect** code for this rule: + +```js +import { merge } from "module"; +import something from "another-module"; +import { find } from "module"; +``` + +Examples of **correct** code for this rule: + +```js +import { merge, find } from "module"; +import something from "another-module"; +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b05a219d0e..d2c04c6efb 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_else_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0666a695cc..7279cd94ec 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_empty_character_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8cbf102227..5b277d4925 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_empty_function.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f75cd7ad8b..2d41e6b1f1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_empty_pattern.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b8e34ac891..afdba1e250 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_empty_static_block.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 10a8613ffd..6a027ba8a9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_empty.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a7a815b29e..f8458e3b7a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_eq_null.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d653e0ae31..9fa97ac3cc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_eval.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e4304198ba..86f5436ba1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_ex_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d03e55820d..3ee36628e4 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_extend_native.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3f48d2960a..c07fdcc887 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_extra_boolean_cast.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/no_extra_boolean_cast.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 ec1746c551..1980e3cd18 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_fallthrough.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 48b026f2d8..a1a6fb998b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_func_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7bebfb101e..51f46f560b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_global_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6e777e8eee..1cd0b19139 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_import_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7a5379e63e..5c228180d3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_inner_declarations.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 dcd6195807..29e6beef86 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_invalid_regexp.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 451dc14f23..94e46758fc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_irregular_whitespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d00b9cf0bc..46595a4e15 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_iterator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2a231b4582..42417e4479 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_label_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/no_label_var.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 dc9ce8f143..76eccc2c3e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_loss_of_precision.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8c150fc210..0670f37c5d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_magic_numbers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/no_magic_numbers.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 d0eb45f9c8..64af87fc01 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_multi_str.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/no_multi_str.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 fb8613dcec..68b75a008a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_new_func.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 dfdfdad376..c7b979d504 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_new_native_nonconstructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cb0b324464..c84c1d473a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_new_wrappers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4db6e6ede5..14f5a95b85 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 18d0cb9120..19a3c63cfb 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_nonoctal_decimal_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3b4160893d..1d519b0f58 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_obj_calls.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 new file mode 100644 index 0000000000..0f3ca3a8bb --- /dev/null +++ b/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md @@ -0,0 +1,39 @@ + + +# eslint/no-object-constructor + +
+ +🚧 An auto-fix is still under development. + +
+ +### What it does + +Disallow calls to the Object constructor without an argument + +### Why is this bad? + +Use of the Object constructor to construct a new empty object is generally discouraged in favor of object literal notation because of conciseness and because the Object global may be redefined. The exception is when the Object constructor is used to intentionally wrap a specified value which is passed as an argument. + +### Examples + +Examples of **incorrect** code for this rule: + +```js +Object(); +new Object(); +``` + +Examples of **correct** code for this rule: + +```js +Object("foo"); +const obj = { a: 1, b: 2 }; +const isObject = (value) => value === Object(value); +const createObject = (Object) => new Object(); +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c4202f69d9..5311cf5144 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_plusplus.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e47c17b733..3809c709d4 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_proto.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 07cda0c0a7..64187e9256 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_prototype_builtins.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b17cf872f3..2cc87b72ce 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_redeclare.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3d057a376d..f7028a63ff 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 bf190ec20c..4f43082e3d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_restricted_globals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/no_restricted_globals.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 cc5bc0ae45..3538b566b8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_return_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 de2993b141..c5eb8979fa 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_script_url.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 057e22dae6..5f4f12a550 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_self_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7705f5ddd5..83d22a2911 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_self_compare.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3c6294df78..d7562f162f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_setter_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7cc9600375..c0d186ac35 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_shadow_restricted_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a2edba7a62..5b1694a00c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_sparse_arrays.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 084848b481..2e93863888 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_template_curly_in_string.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8bacdf2558..8fa07031f9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9c58df347c..99953e331d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_this_before_super.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1229d71dda..572c642348 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_throw_literal.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3470babe83..1d69808375 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_undef.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3277b82ee8..c83ecbd728 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ef55e4285a..209f3bceda 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unexpected_multiline.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c161ba6a99..f399574280 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md @@ -11,4 +11,4 @@ Disallow unreachable code after `return`, `throw`, `continue`, and `break` state ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unreachable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5fdaa94578..281e951ba9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unsafe_finally.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 223ff2da29..8be039148d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unsafe_negation.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ddbf74e2ff..de478657af 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.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 03bccf34b3..8c4f3a3bfb 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unused_labels.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1b2c14bc52..5901da7c6a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unused_private_class_members.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b3560c7bd9..817b0ae331 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_unused_vars/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/no_unused_vars/mod.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 cde9203ca9..17f0e9c005 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_useless_catch.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0925ce6044..235fa38206 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_useless_concat.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4d2728c3af..acef2ce14b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_useless_constructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c4a00fecbe..9440ecc5af 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_useless_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2bcbfdf45b..dcd0d583a3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_useless_rename.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d528f33545..0a681c777a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c7d4214c9f..cfa3542071 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-void.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-void.md @@ -27,4 +27,4 @@ var foo = void 0; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_void.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 786ce8cab1..fe1e72d884 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/no_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a250b0f8a7..d107ad6edf 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/prefer_exponentiation_operator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cc10be8fd8..dd15b0453b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/prefer_numeric_literals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d922a8cd49..8259f61069 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/prefer_object_has_own.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/prefer_object_has_own.rs) diff --git a/src/docs/guide/usage/linter/rules/eslint/radix.md b/src/docs/guide/usage/linter/rules/eslint/radix.md index 3451a6e124..ec94fdaa21 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/radix.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 33da80f509..99e3cd1328 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/require_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 898e184f2c..c10a2cc837 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/require_yield.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7bb0364dcb..bb83f48d5c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/sort_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d52704ed36..bab6b35f0d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/sort_keys.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c8de7de6fc..295c46239c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/sort_vars.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 07b836d781..cda852a5fd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/symbol_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1345ee4400..1b916e6034 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/unicode_bom.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2866b62143..f4dd067068 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/use_isnan.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 12c85b33f4..169ee647f4 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/eslint/valid_typeof.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/eslint/valid_typeof.rs) diff --git a/src/docs/guide/usage/linter/rules/import/default.md b/src/docs/guide/usage/linter/rules/import/default.md index 0f8970f7c3..0dd5a27695 100644 --- a/src/docs/guide/usage/linter/rules/import/default.md +++ b/src/docs/guide/usage/linter/rules/import/default.md @@ -45,4 +45,4 @@ import { bar } from "./bar"; // correct usage of named import ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/default.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fe90468c80..bb37c83d6b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d1d2358edf..c3fe857439 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/first.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/import/first.rs) diff --git a/src/docs/guide/usage/linter/rules/import/import-no-namespace.md b/src/docs/guide/usage/linter/rules/import/import-no-namespace.md index babae5a4e1..9c1d1f385f 100644 --- a/src/docs/guide/usage/linter/rules/import/import-no-namespace.md +++ b/src/docs/guide/usage/linter/rules/import/import-no-namespace.md @@ -62,4 +62,4 @@ import defaultExport, { isUser } from "./user"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/import_no_namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/import/import_no_namespace.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 1717bdc210..621aac0d27 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/max_dependencies.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 41cb83e99e..b22ac1cb3c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/named.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 05b2677917..7b745b258d 100644 --- a/src/docs/guide/usage/linter/rules/import/namespace.md +++ b/src/docs/guide/usage/linter/rules/import/namespace.md @@ -60,4 +60,4 @@ foo[method](); // Valid: method refers to an exported function ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 541539f277..41cd65b77a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_amd.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 bd453e6e9e..09299d9fea 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_commonjs.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 258cc5efe7..2a5d7843b9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_cycle.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 83bd70bb57..39c159c4a3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_default_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cdf8ce6913..a8b86b88a8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_duplicates.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0ae03b8767..ab279c24b7 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_dynamic_require.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5ef28388ce..6631e84956 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 addd51cbf3..348d3d0bc8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_named_as_default.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/import/no_named_as_default.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 f1bef72ae1..e1a8c97c51 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_self_import.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f3e92bf993..a56ed20e7d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/no_webpack_loader_syntax.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 32cc9816fe..6b3592e4b5 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/import/unambiguous.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 41fa4b11a0..aa4713ac65 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 @@ -87,5 +87,5 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/consistent_test_it.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 206ab7a121..fa8a8339d7 100644 --- a/src/docs/guide/usage/linter/rules/jest/expect-expect.md +++ b/src/docs/guide/usage/linter/rules/jest/expect-expect.md @@ -35,4 +35,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/expect_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 575a7ca282..dbd063dbf0 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/max_expects.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 827028f070..27a2834f21 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 @@ -86,4 +86,4 @@ describe("foo", function () { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/max_nested_describe.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 616b31130e..435951084d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_alias_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 443f0d86f3..0c93000654 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6ccfc7a3d2..4b2ab51c79 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 @@ -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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e7bf30aa80..0e4c5e31a1 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 @@ -79,4 +79,4 @@ it("baz", async () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_conditional_in_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 94b7ee10e1..f6f83e05f1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_confusing_set_timeout.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 14fc9bebbb..06f1480e3d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fd6e17ba4a..ec0d3076ef 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 @@ -52,4 +52,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9f28122043..311f380e8d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_done_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6f0bd30121..e87cb19ab2 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 @@ -77,4 +77,4 @@ describe("foo", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_duplicate_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0307118e3d..afb95a8d2f 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-export.md +++ b/src/docs/guide/usage/linter/rules/jest/no-export.md @@ -26,4 +26,4 @@ describe("a test", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 123db9e2c1..7dc9b5fdaa 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 @@ -50,4 +50,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_focused_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f552951575..d8149cbc17 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a4ef1ce694..e67be37d2b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_identical_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9159697c9e..4c6164993e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_interpolation_in_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 48528f2b23..ccb56cf508 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_jasmine_globals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 35ab210d10..599649e3a5 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 @@ -82,4 +82,4 @@ line 4 ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_large_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5966ded924..28baee950d 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 @@ -19,4 +19,4 @@ require("__mocks__"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_mocks_import.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 492ee02904..d16b85a0de 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_restricted_jest_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c96ca649c7..7b8ec2843c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_restricted_matchers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 914de6afa6..dbc9a428a9 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 @@ -24,4 +24,4 @@ describe("a test", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_standalone_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 288283390d..6bd2c0784c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c5718d7664..9f157b45d2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_test_return_statement.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e6508ecc2d..3f3db6601f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/no_untyped_mock_factory.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f4e1d6d84f..974505e990 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_called_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 950d10f815..f328bbf96c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_comparison_matcher.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/jest/prefer_comparison_matcher.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 6ce215a274..359b397a5b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_equality_matcher.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 92b5309ffb..8a72fc2245 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_expect_resolves.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 97a8f234b5..2b91c9f78b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_hooks_in_order.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e830850347..c657fcde54 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_hooks_on_top.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7c1ccee70d..de5978e503 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_jest_mocked.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e43ea7fa3e..c7c6e6d700 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 @@ -107,4 +107,4 @@ describe("MyClass", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_lowercase_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/jest/prefer_lowercase_title.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 9fcde53ef0..9e6298cbd4 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_mock_promise_shorthand.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f274208baa..639cb0db91 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_spy_on.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ff3434a546..d86dff35b8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cdf2164c12..b93801fe3e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_to_be.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0a4b63c815..707838e0f9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_to_contain.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c898b69c3c..8dc7bfe4a5 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_to_have_length.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7669a76bbc..8844506424 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/prefer_todo.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 28d8843b32..4409e9a5f2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/require_hook.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b2ec941924..eee3ebec97 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 @@ -31,4 +31,4 @@ test("all the things", async () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/require_to_throw_message.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 08ee1019bc..d58bac79dc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/require_top_level_describe.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5f9edc3bcf..44150b0cae 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 @@ -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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 26ec1c5ea1..343e418644 100644 --- a/src/docs/guide/usage/linter/rules/jest/valid-expect.md +++ b/src/docs/guide/usage/linter/rules/jest/valid-expect.md @@ -33,4 +33,4 @@ to use it, add the following configuration to your `.eslintrc.json`: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/valid_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 eb61fbb3a3..f3f5915937 100644 --- a/src/docs/guide/usage/linter/rules/jest/valid-title.md +++ b/src/docs/guide/usage/linter/rules/jest/valid-title.md @@ -33,4 +33,4 @@ xtest("", () => {}); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jest/valid_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9c2e09b52d..d0fe5c1ba4 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/check_access.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 27cc131629..54ea09eb00 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 @@ -47,4 +47,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/check_property_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 551cf93887..ecc264de1e 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 @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/check_tag_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0bec311cf3..a278c742a3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/empty_tags.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a071f75603..4169a39bfb 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 @@ -43,4 +43,4 @@ function quux() {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/implements_on_classes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f46a6a8053..969eaf7d40 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md @@ -36,4 +36,4 @@ function quux(foo) {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/no_defaults.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 adf49747a2..48f22bba43 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_param_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 04213ea57f..4ef61c2edf 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_param_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 240665c16a..3322f62f27 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_param_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4e41b8a1ef..e27f0d8517 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_param.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d974fbb739..1c0be32933 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 @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_property_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0eab022c87..12ccd5038b 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 @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_property_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2b940d79bd..ed741537ab 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 @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_property_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7520265055..c89ba8a040 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-property.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-property.md @@ -44,4 +44,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_property.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 30cf483d6e..e2a77de98b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_returns_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a3ada6f9ad..567d4ed870 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_returns_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2eaa2da22a..a469c4ad5f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_returns.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c293a0c0c9..8a8b3c0634 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md @@ -41,4 +41,4 @@ function* quux(foo) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsdoc/require_yields.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4339558e5b..d2c8b7b1c6 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 @@ -42,4 +42,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/alt_text.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 new file mode 100644 index 0000000000..f6d9e93710 --- /dev/null +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md @@ -0,0 +1,42 @@ + + +# jsx_a11y/anchor-ambiguous-text + +
+
+ +### What it does + +Inspects anchor link text for the use of ambiguous words. + +This rule checks the text from the anchor element `aria-label` if available. +In absence of an anchor `aria-label` it combines the following text of it's children: + +- `aria-label` if available +- if the child is an image, the `alt` text +- the text content of the HTML element + +### Why is this bad? + +Screen readers users rely on link text for context, ambiguous words such as "click here" do +not provide enough context. + +### Examples + +Examples of **incorrect** code for this rule: + +```jsx +link +click here +``` + +Examples of **correct** code for this rule: + +```jsx +read this tutorial +click here +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3a3af540c9..be34b99c9d 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 @@ -38,4 +38,4 @@ Alternatively, you may use the `title` prop or the `aria-label` prop. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/anchor_has_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 83f26ec75b..885a8657a5 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 @@ -82,4 +82,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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/anchor_is_valid.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c55766e7ec..73f2fe93f5 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 @@ -37,4 +37,4 @@ const Bad =
; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/aria_activedescendant_has_tabindex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 de83625136..d50a5efdf4 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 @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 bfd1f5ce26..85dfb5febe 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 @@ -83,4 +83,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/aria_role.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 bc7cfd202b..d01e024e46 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 @@ -31,4 +31,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/aria_unsupported_elements.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e47f75b277..4c096bd4c5 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 @@ -29,4 +29,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/autocomplete_valid.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d31590d266..1871a8049b 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 @@ -30,4 +30,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/click_events_have_key_events.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6a0a456dea..26ea9d4f57 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 @@ -34,4 +34,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/heading_has_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0d44ac1c2d..1510b8c8dd 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 @@ -32,4 +32,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/html_has_lang.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f23c2c3f39..878ca3816c 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 @@ -43,4 +43,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 379ace55e8..4921872311 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 @@ -41,4 +41,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/img_redundant_alt.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 39000e25d9..6aee9c0fda 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 @@ -43,4 +43,4 @@ function Foo(props) { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/label_has_associated_control.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3e6fd5b5ce..d92a208433 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md @@ -39,4 +39,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/lang.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cca07515a3..c75cab18ba 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 @@ -33,4 +33,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/media_has_caption.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 51b57c4705..32ada4b56d 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 @@ -30,4 +30,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/mouse_events_have_key_events.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a1b8263508..6771d851a0 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 @@ -33,4 +33,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/no_access_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 84707a4907..c9c73686b3 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 @@ -32,4 +32,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/no_aria_hidden_on_focusable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2dbb401184..6363841e58 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 @@ -53,4 +53,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/no_autofocus.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 295d472e59..75656e8d61 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 @@ -43,4 +43,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/no_distracting_elements.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/jsx_a11y/no_distracting_elements.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 6b1b276843..36278effc8 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 @@ -33,4 +33,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/no_redundant_roles.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 69114876b0..761697b3e9 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 @@ -29,4 +29,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/prefer_tag_over_role.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 02b3d601fc..cf6bc74f80 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 @@ -31,4 +31,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/role_has_required_aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 75981bf431..d24d1e5622 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 @@ -33,4 +33,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/role_supports_aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5695662bfc..ca4effba8f 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/scope.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/scope.md @@ -35,4 +35,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/scope.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5f1ba53b9f..f19cb7b62c 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 @@ -36,4 +36,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/jsx_a11y/tabindex_no_positive.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 436d6ef856..a2fa00d249 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 @@ -47,4 +47,4 @@ export default Test = () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/google_font_display.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1ddd71bca5..cbf8066d60 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/google_font_preconnect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2cbd4d79a3..0eff1700ac 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/inline_script_id.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b97a9980c1..10288cccd8 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/next_script_for_ga.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fa6db7b437..179051663f 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_assign_module_variable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2a57ec732e..e3a51e3b54 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_async_client_component.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 612d856d19..a35fd7e143 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 @@ -19,4 +19,4 @@ Prevent usage of `next/script`'s `beforeInteractive` strategy outside of `pages/ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_before_interactive_script_outside_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 993907fe37..1543a542b7 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_css_tags.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 61df4dd2b9..3753c4d16c 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 @@ -19,4 +19,4 @@ Prevent importing `next/document` outside of `pages/_document.js`. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_document_import_in_page.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a38e438057..028b1ba676 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 @@ -36,4 +36,4 @@ export default MyDocument; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_duplicate_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8acd14bae3..df4ba8ec56 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 @@ -19,4 +19,4 @@ Prevent usage of `` element. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_head_element.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a3ff0a87a3..c07e27bbfa 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_head_import_in_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 68237ac53a..fc38b83326 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_img_element.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b0fa9dbbac..d03e7126bc 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 @@ -22,4 +22,4 @@ Prevent page-only custom fonts. ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_page_custom_font.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b023d32f39..e66188fcd5 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_script_component_in_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4a51f0460d..558907a885 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 @@ -21,4 +21,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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_styled_jsx_in_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 198c923be3..38d24f4417 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_sync_scripts.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 96879efb11..72fd77b984 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 @@ -17,4 +17,4 @@ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_title_in_document_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 49be4fcce0..e18f51d979 100644 --- a/src/docs/guide/usage/linter/rules/nextjs/no-typos.md +++ b/src/docs/guide/usage/linter/rules/nextjs/no-typos.md @@ -25,4 +25,4 @@ export async function getServurSideProps() {} ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_typos.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f3c2f8b036..41296c1c90 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 @@ -23,4 +23,4 @@ You are using polyfills from Polyfill.io and including polyfills already shipped ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/nextjs/no_unwanted_polyfillio.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d9d4f120eb..30785fa9e1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/node/no_exports_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 279c4ffdd8..ec16caa0fb 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/node/no_new_require.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 19dcb6b4b8..64fcf39db3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/approx_constant.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e6e87f32d4..66668164cb 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/bad_array_method_on_arguments.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1db854aad2..5ad01cd364 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/bad_bitwise_operator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8ce7ae54b9..355afa1e2e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/bad_char_at_comparison.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 de0b751311..1e9852258e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/bad_comparison_sequence.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ece463dbe5..046a6bf820 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 @@ -22,4 +22,4 @@ Math.max(1000, Math.min(0, z)); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/bad_min_max_func.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 eb422650b0..e19aeea6f0 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/bad_object_literal_comparison.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d011d11b48..0bbe35aadb 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/bad_replace_all_arg.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9395d1e2b0..728470bde5 100644 --- a/src/docs/guide/usage/linter/rules/oxc/const-comparisons.md +++ b/src/docs/guide/usage/linter/rules/oxc/const-comparisons.md @@ -39,4 +39,4 @@ status_code >= 400 && status_code < 500; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/const_comparisons.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 97f63f6d73..b97a9a7128 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/double_comparisons.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 806929faef..3557855ef2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/erasing_op.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1bea92bce8..2100a23e97 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/misrefactored_assign_op.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7745cebcee..9c93175321 100644 --- a/src/docs/guide/usage/linter/rules/oxc/missing-throw.md +++ b/src/docs/guide/usage/linter/rules/oxc/missing-throw.md @@ -28,4 +28,4 @@ const foo = () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/missing_throw.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a9805ac70c..12eaff2dc3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_accumulating_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ca77cadc2b..dc2b5b8827 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_async_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0b2ce6da57..53f70eec96 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_async_endpoint_handlers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4f33c37fbc..9be4ddc249 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_barrel_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 abf9b43069..2088d79e22 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_const_enum.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 df62996505..ddf3bd44ad 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_map_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fd0d75ed45..20811b9a4d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_optional_chaining.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 dbcaff477e..ea2ad41531 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/no_rest_spread_properties.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7f07dedebc..175c1cce73 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 @@ -22,4 +22,4 @@ var s = x.toString(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/number_arg_out_of_range.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 94834c27a5..2a4d45029f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/only_used_in_recursion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 305b5dba96..75d6b967b8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/oxc/uninvoked_array_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 463b90ed36..b9a9dec4ed 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/avoid_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 13624b99a5..f2b6c6292b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/catch_or_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 20b002c0e5..b52d5c01be 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 @@ -46,4 +46,4 @@ Promise.resolve() ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/no_callback_in_promise.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 85bb1aa517..23290ace6a 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 @@ -33,4 +33,4 @@ const x = Promise.resolve(value); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/no_new_statics.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b1e517cc5a..6cc98fd2d8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/no_promise_in_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 dbf4991a55..8a2a992200 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/no_return_in_finally.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 19a9f11a74..221ad93935 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/param_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a1d368a552..02200734b3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/prefer_await_to_callbacks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e2f8cff439..756cddcb15 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 @@ -33,4 +33,4 @@ async function hi() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/prefer_await_to_then.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ba9fe02570..af2c3718bc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/spec_only.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c0f62cb001..92f1fa448d 100644 --- a/src/docs/guide/usage/linter/rules/promise/valid-params.md +++ b/src/docs/guide/usage/linter/rules/promise/valid-params.md @@ -30,4 +30,4 @@ Promise.resolve(1); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/promise/valid_params.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2074fd32a8..47c90cebeb 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/button_has_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6e489cd36e..1ebeacb100 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/checked_requires_onchange_or_readonly.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2f05b03077..a041499e6a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/exhaustive_deps.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2b406e076d..06a5f20b06 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/iframe_missing_sandbox.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 561685de79..f6e3953f08 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 @@ -20,4 +20,4 @@ const Hello = ; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_boolean_value.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9e3b732c55..144c86740d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_curly_brace_presence.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 94d7115de9..bc8738659a 100644 --- a/src/docs/guide/usage/linter/rules/react/jsx-key.md +++ b/src/docs/guide/usage/linter/rules/react/jsx-key.md @@ -30,4 +30,4 @@ Examples of **correct** code for this rule: ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c7a020b696..0c503ec5a4 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_no_comment_textnodes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 53fd8f0e4c..36521a81e2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_no_duplicate_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 new file mode 100644 index 0000000000..8375e2dcfc --- /dev/null +++ b/src/docs/guide/usage/linter/rules/react/jsx-no-script-url.md @@ -0,0 +1,37 @@ + + +# react/jsx-no-script-url + +
+ +🚧 An auto-fix is still under development. + +
+ +### What it does + +Disallow usage of `javascript:` URLs + +### Why is this bad? + +URLs starting with `javascript:` are a dangerous attack surface because it’s easy to accidentally include unsanitized output in a tag like `` and create a security hole. +In React 16.9 any URLs starting with `javascript:` scheme log a warning. +In a future major release, React will throw an error if it encounters a `javascript:` URL. + +### Examples + +Examples of **incorrect** code for this rule: + +```jsx +Test +``` + +Examples of **correct** code for this rule: + +```jsx + +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2ee56e5b2d..485ca62b3d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_no_target_blank.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8be2eb052e..e8afd2948b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_no_undef.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 82a35e60ac..a29722af03 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_no_useless_fragment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0c8338e309..210020699a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/jsx_props_no_spread_multi.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9a655a04ae..45cd039898 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_array_index_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 63ab2f160e..ac43beb542 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 @@ -45,4 +45,4 @@ React.createElement("div", 'Child 1', 'Child 2') ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_children_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5f75a53b0f..bc81b5363d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_danger_with_children.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 90db2f0bca..0c12be2e5c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_danger.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d24b77547e..d52deef4ae 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_direct_mutation_state.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 915b7a7c28..d0aa334393 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_find_dom_node.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 859c118728..fa58822c3a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_is_mounted.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fbf0222a0b..a62641e155 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 @@ -31,4 +31,4 @@ ReactDOM.render(, document.body); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_render_return_value.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9143d23424..fd5b650280 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_set_state.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 af10326c61..0ec0ddfcb9 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 @@ -58,4 +58,4 @@ var Hello = createReactClass({ ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_string_refs.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 80b70e185c..7d17e1dadd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_unescaped_entities.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 05fdc8c5bf..dd6831effa 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/no_unknown_property.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 06a0bc1fca..e82ad374c9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/prefer_es6_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7c33b51ca9..92040a5986 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/react_in_jsx_scope.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 50dfde0af0..2350976069 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/require_render_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8f790151f9..1ca1788632 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 enforcecs the Rules of Hooks ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/rules_of_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 720d408b69..beb96e26ae 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/self_closing_comp.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9d07865304..0cbacac40c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/style_prop_object.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 848f5bfeca..ef0f927059 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react/void_dom_elements_no_children.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 15f4ba080c..875e0e185d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 bdd230e21d..f4d2ece215 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8c323529cc..202eeb171b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0d72c22291..dab98da3cf 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs) diff --git a/src/docs/guide/usage/linter/rules/security/api-keys.md b/src/docs/guide/usage/linter/rules/security/api-keys.md index 74aed7bba5..5e0f680d7e 100644 --- a/src/docs/guide/usage/linter/rules/security/api-keys.md +++ b/src/docs/guide/usage/linter/rules/security/api-keys.md @@ -69,4 +69,4 @@ const OPENAI_API_KEY = await getSecret("open-ai-api-key"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/security/api_keys/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/security/api_keys/mod.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 50c0073086..3ea9a71824 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/adjacent_overload_signatures.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3d2c0031f3..c25eb00efe 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/array_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 5dd27f7566..45c3c124ff 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/ban_ts_comment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0bf4663a35..8c4c6ac0fd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/ban_tslint_comment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0dbff4b776..69ee845e46 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/ban_types.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/typescript/ban_types.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 6a8a368d45..3a177b147b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/consistent_indexed_object_style.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b66083f24a..d393a41f9c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/consistent_type_definitions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b95acaa0d6..edb3a01582 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/consistent_type_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 32f3d1268f..5af5bf59d0 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/explicit_function_return_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 513d250bb1..bebb73d085 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_confusing_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 48c3a15e93..41fc9d0c69 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_duplicate_enum_values.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 eea526eda6..4b9848f790 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_dynamic_delete.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3f8dc27431..5a93fd77cc 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_empty_interface.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a33ffcc530..eaa0ee4dee 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_empty_object_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 648295b49d..37826e3cba 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_explicit_any.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 24e1ce29a2..16029fa3a8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_extra_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ef2665baa0..042c65c0b7 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_extraneous_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3c1834133f..b2493cb2cd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_import_type_side_effects.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/typescript/no_import_type_side_effects.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 d0b14bc6d7..bef45dfb80 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_misused_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2f241e2c7f..e90c0bad6b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e157688b05..6c80bbf5d0 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_nullish_coalescing.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f119df3954..573760d94c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_optional_chain.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2493266aab..148df1be20 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3a3253ff82..89b68fedfd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_require_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 44c1aef8ad..4ad1590bdd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_this_alias.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fcd3c685fa..222c831f15 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_unnecessary_type_constraint.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1abd9d44ca..0a3e04bc60 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_unsafe_declaration_merging.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 306ffa5e60..60a36d236d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_unsafe_function_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7428bed57c..b3614143d3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_useless_empty_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ce88fd92f3..b0b5850260 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_var_requires.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 803d0cf794..877c9dd420 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/no_wrapper_object_types.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6284638d8c..ec29938759 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/prefer_as_const.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b8285a0fee..9074412773 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/prefer_enum_initializers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 665a1f73e7..d05228a21a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/prefer_for_of.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 09d5e46603..4a6e83eb7c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/prefer_function_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7949ba6d20..7d13d290f1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/prefer_literal_enum_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 916b8e6967..0a3daea50e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8b58365e2a..57bf4363a5 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/prefer_ts_expect_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b9b524737c..ff85defe73 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/typescript/triple_slash_reference.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0a25faedc9..06e9cd80e9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/catch_error_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 538e336e2c..aa98a97945 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 @@ -33,4 +33,4 @@ const array = [a, ...(foo ? "bc" : "")]; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/consistent_empty_array_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d07b60af33..bafd9addf4 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/consistent_existence_index_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 35b04f09a8..9577ce8503 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/consistent_function_scoping.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 44ad1b2eab..a54d05fd78 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/empty_brace_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fe6c8a0628..0eccb6da28 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/error_message.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 85ce645533..8930a0dbf2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/escape_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b4c022e66a..34b6077004 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/explicit_length_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3567d01243..2f9f3e7a07 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/filename_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e411ed722d..c50d553e03 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/new_for_builtins.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d255873dcf..104880a07e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_abusive_eslint_disable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 35681db27c..9c14028347 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_anonymous_default_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d2e0e8c8ad..db14263d24 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_array_for_each.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2d2361e8c6..24f54a9ec8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_array_reduce.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cd1ea6c167..35846d24ca 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_await_expression_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7e16015bba..46c1030803 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_await_in_promise_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 59254d1c3d..b8a2b8a1a1 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_console_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4a05227dea..675bd5a631 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_document_cookie.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 564b4c8503..b7cf64d4bf 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_empty_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ad2624586b..bb780fb1bd 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_hex_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ced8ce3863..396d05f713 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_instanceof_array.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 642fd3f5bc..4bdf400e24 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_invalid_remove_event_listener.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 271c245a13..671f8dbdb2 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_length_as_slice_end.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d541f6fc4a..f259788942 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_lonely_if.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6de4d4316b..67d52d629e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_magic_array_flat_depth.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/unicorn/no_magic_array_flat_depth.rs) diff --git a/src/docs/guide/usage/linter/rules/unicorn/no-negated-condition.md b/src/docs/guide/usage/linter/rules/unicorn/no-negated-condition.md index 1d2f69d6ab..c9f034d7f4 100644 --- a/src/docs/guide/usage/linter/rules/unicorn/no-negated-condition.md +++ b/src/docs/guide/usage/linter/rules/unicorn/no-negated-condition.md @@ -44,4 +44,4 @@ a ? doSomethingB() : doSomethingC(); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_negated_condition.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/unicorn/no_negated_condition.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 947476b3f4..dc0cd7785f 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_negation_in_equality_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ed324ea360..78b4094f26 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_nested_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8e7cafd743..bf73725d92 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_new_array.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e65d0605b1..2ba6d9ba4e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_new_buffer.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7f567e112a..26ad537e96 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_null.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8d60b4c997..f5cdc3cf05 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_object_as_default_parameter.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4a444103fb..64c95cf402 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_process_exit.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 64e764fdbd..7037730f52 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_single_promise_in_promise_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 31e3e672c1..08d02beee8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_static_only_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 822cf3528f..e71493d718 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_thenable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9fe68ea1d6..26a2a8c4d7 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_this_assignment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fc336814e6..cd27a093de 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_typeof_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1b467fc9ad..1b8b85b6a9 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_unnecessary_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ba57f73f34..54ad6af84a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 62e3ea5d4b..c4d19aa18e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_unreadable_iife.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 8728867e16..a8d1052629 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_useless_fallback_in_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 69ad3defab..fd837c8e8b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_useless_length_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1c0bc9c2c2..5a486a14d3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_useless_promise_resolve_reject.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 bc73dace6b..4c7e83ebdf 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_useless_spread/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 45381d5d87..b4bbe1f364 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_useless_switch_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 b86baadfd9..9b2ed56871 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_useless_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cd795aa9da..0d7236155b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/no_zero_fractions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a0cb51bf7f..cc00c28622 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/number_literal_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fdc5a12082..a89284d644 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/numeric_separators_style.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 535ff4c0a3..3f33a58975 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_add_event_listener.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6bfad00f12..ef6b747f42 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_array_flat_map.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 3f0f764e8e..f80e4abf2a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_array_flat.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ad3c239b27..ed2cc80aab 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_array_some.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a5475dda86..37073a7a13 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_blob_reading_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0d5717ff26..b3a1c922c3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_code_point.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a25895d73f..bc2d696d27 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_date_now.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 95b9720589..251b89046b 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_append.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c353e7a301..8f39d8c761 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_dataset.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ea45409fa0..1839264c10 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_remove.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0278989a46..6693b53732 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_text_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6f03482019..0f1c22063d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_event_target.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6abe5180d1..57fe351f97 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_includes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 04a77171b0..1eb5f1d96a 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_logical_operator_over_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fea3dde825..1ffe508ac6 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_math_min_max.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c95698395f..197b7c35b5 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_math_trunc.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 d981cba1db..617ae8a5ba 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_modern_dom_apis.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 288393a86e..a44836ce02 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_modern_math_apis.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ef2d3cebc6..c2e360ab8e 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_native_coercion_functions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 new file mode 100644 index 0000000000..a325390758 --- /dev/null +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-negative-index.md @@ -0,0 +1,37 @@ + + +# unicorn/prefer-negative-index + +
+ +🛠️ An auto-fix is available for this rule. + +
+ +### What it does + +Prefer negative index over `.length` - index when possible + +### Why is this bad? + +Conciseness and readability + +### Examples + +Examples of **incorrect** code for this rule: + +```js +foo.slice(foo.length - 2, foo.length - 1); +foo.at(foo.length - 1); +``` + +Examples of **correct** code for this rule: + +```js +foo.slice(-2, -1); +foo.at(-1); +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e7be47c6b7..c9a6910276 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 @@ -28,4 +28,4 @@ import fs from "node:fs"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_node_protocol.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 1fde4b42b9..7570022c86 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_number_properties.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e8305e3b59..40b38ff8da 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_optional_catch_binding.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 2e5180654d..abab026633 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_prototype_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 7541a1eeb4..8b5df70928 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 @@ -36,4 +36,4 @@ document.querySelector("li").querySelectorAll("a"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_query_selector.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 e1aff43b18..f32923d781 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_reflect_apply.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 cbc1e6211e..a8fea3ab67 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_regexp_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 new file mode 100644 index 0000000000..645a1de460 --- /dev/null +++ b/src/docs/guide/usage/linter/rules/unicorn/prefer-set-has.md @@ -0,0 +1,42 @@ + + +# unicorn/prefer-set-has + +
+ +⚠️🛠️️ A dangerous auto-fix is available for this rule. + +
+ +### What it does + +Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence. + +### Why is this bad? + +Set#has() is faster than Array#includes(). + +### Examples + +Examples of **incorrect** code for this rule: + +```js +const array = [1, 2, 3]; +const hasValue = (value) => array.includes(value); +``` + +Examples of **correct** code for this rule: + +```js +const set = new Set([1, 2, 3]); +const hasValue = (value) => set.has(value); +``` + +```js +const array = [1, 2, 3]; +const hasOne = array.includes(1); +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f32f748635..9bff98e27c 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_set_size.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 0ac42e149c..707a975f26 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 6b1fb8e9de..a305b91ed7 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_string_raw.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fed6ddb40d..696ad17179 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_string_replace_all.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 fb104a8901..789cd7f2e0 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_string_slice.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 28e17a22f5..1159e0bb56 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_string_starts_ends_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ceb22e96ce..7bef81f9c3 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_string_trim_start_end.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a9ba0c0dc9..87846ee9f7 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_structured_clone.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 4f1f924eb4..613b67ab93 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/prefer_type_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 dac043828f..04ce60e8a8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/require_array_join_separator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 c56ed7b797..e8be758570 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/require_number_to_fixed_digits_argument.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 9a61ed5987..f215d920ce 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/switch_case_braces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 276c871044..0b37bae9d7 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 @@ -38,4 +38,4 @@ async function good() { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/text_encoding_identifier_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 ec7845e585..9a9bf9bd1d 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/unicorn/throw_new_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 029c2ac289..2ff77871e1 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 @@ -42,4 +42,4 @@ describe("my tests", () => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/vitest/no_conditional_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 a66ac765a9..8b0599ea62 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/vitest/no_import_node_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/vitest/no_import_node_test.rs) diff --git a/src/docs/guide/usage/linter/rules/vitest/prefer-each.md b/src/docs/guide/usage/linter/rules/vitest/prefer-each.md index 04bb4c124a..a5234b28d0 100644 --- a/src/docs/guide/usage/linter/rules/vitest/prefer-each.md +++ b/src/docs/guide/usage/linter/rules/vitest/prefer-each.md @@ -37,4 +37,4 @@ describe.each(items)("item", (item) => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/vitest/prefer_each.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/vitest/prefer_each.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 049189beea..b80fd7f7f8 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/vitest/prefer_to_be_falsy.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 f8d7bbaea2..2c277c6ffa 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/vitest/prefer_to_be_object.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 eb416d209d..8405497624 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/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/vitest/prefer_to_be_truthy.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/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 15bed6c0e7..8dd7fb9b26 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 @@ -50,4 +50,4 @@ test.concurrent("myLogic", (context) => { ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/4bb1dca6730cf630cc8c53db2bfd03f2d0f3dd8f/crates/oxc_linter/src/rules/vitest/require_local_test_context_for_concurrent_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/45ef3eb2becc663e756a3da557df5a03fb40fd84/crates/oxc_linter/src/rules/vitest/require_local_test_context_for_concurrent_snapshots.rs)