From 3d0976e1b5f43210300033cda8e1348f7fc8e42b Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Fri, 22 Nov 2024 09:57:00 +0800 Subject: [PATCH] Release 0.13.0 (#245) Co-authored-by: oxc-bot <176400334+oxc-bot@users.noreply.github.com> --- .../guide/usage/linter/generated-config.md | 66 ++++++++++++- .../guide/usage/linter/generated-rules.md | 15 +-- .../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 | 5 +- .../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 +- .../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 +- .../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 | 4 +- .../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-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-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-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 | 35 +++++++ .../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 | 97 +++++++++++++++++++ .../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-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-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 +- 456 files changed, 661 insertions(+), 461 deletions(-) create mode 100644 src/docs/guide/usage/linter/rules/react/no-array-index-key.md create mode 100644 src/docs/guide/usage/linter/rules/typescript/no-require-imports.md diff --git a/src/docs/guide/usage/linter/generated-config.md b/src/docs/guide/usage/linter/generated-config.md index 15a704c12b..ed5cc58129 100644 --- a/src/docs/guide/usage/linter/generated-config.md +++ b/src/docs/guide/usage/linter/generated-config.md @@ -142,7 +142,35 @@ See [Oxlint Rules](https://oxc.rs/docs/guide/usage/linter/rules.html) type: `object` -Shared settings for plugins +Configure the behavior of linter plugins. + +## Example + +Here's an example if you're using Next.js in a monorepo: + +```json +{ + "settings": { + "next": { + "rootDir": "apps/dashboard/" + }, + "react": { + "linkComponents": [ + { + "name": "Link", + "linkAttribute": "to" + } + ] + }, + "jsx-a11y": { + "components": { + "Link": "a", + "Button": "button" + } + } + } +} +``` ### settings.jsdoc @@ -214,12 +242,22 @@ default: `{}` type: `object` +Configure JSX A11y plugin rules. + +See [eslint-plugin-jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y#configurations)'s configuration for a full reference. + #### settings.jsx-a11y.components type: `Record` default: `{}` +To have your custom components be checked as DOM elements, you can provide a mapping of your component names to the DOM element name. + +## Example + +`json { "settings": { "jsx-a11y": { "components": { "Link": "a", "IconButton": "button" } } } } ` + #### settings.jsx-a11y.polymorphicPropName type: `[ @@ -227,22 +265,42 @@ type: `[ null ]` +An optional setting that define the prop your code uses to create polymorphic components. This setting will be used to determine the element type in rules that require semantic context. + +For example, if you set the `polymorphicPropName` to `as`, then this element: + +`jsx Hello ` + +Will be treated as an `h3`. If not set, this component will be treated as a `Box`. + ### settings.next type: `object` +Configure Next.js plugin rules. + #### settings.next.rootDir ### settings.react type: `object` +Configure React plugin rules. + +Derived from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react#configuration-legacy-eslintrc-) + #### settings.react.formComponents type: `array` default: `[]` +Components used as alternatives to `
` for forms, such as ``. + +## Example + +`jsonc { "settings": { "react": { "formComponents": [ "CustomForm", // OtherForm is considered a form component and has an endpoint attribute { "name": "OtherForm", "formAttribute": "endpoint" }, // allows specifying multiple properties if necessary { "name": "Form", "formAttribute": ["registerEndpoint", "loginEndpoint"] } ] } } } ` + ##### settings.react.formComponents[n] #### settings.react.linkComponents @@ -251,4 +309,10 @@ type: `array` default: `[]` +Components used as alternatives to `` for linking, such as ``. + +## Example + +``jsonc { "settings": { "react": { "linkComponents": [ "HyperLink", // Use `linkAttribute` for components that use a different prop name // than `href`. { "name": "MyLink", "linkAttribute": "to" }, // allows specifying multiple properties if necessary { "name": "Link", "linkAttribute": ["to", "href"] } ] } } } `` + ##### settings.react.linkComponents[n] diff --git a/src/docs/guide/usage/linter/generated-rules.md b/src/docs/guide/usage/linter/generated-rules.md index da4c83b5ab..8f54657c38 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: 453 +- Total number of rules: 454 - Rules turned on by default: 97 ## Correctness (172): @@ -183,19 +183,20 @@ 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 (6): +## Perf (7): Code that can be written to run faster. | Rule name | Source | Default | Fixable? | | --------------------------- | ---------- | ------- | -------- | | [no-await-in-loop](/docs/guide/usage/linter/rules/eslint/no-await-in-loop.html) | eslint | | | | [no-accumulating-spread](/docs/guide/usage/linter/rules/oxc/no-accumulating-spread.html) | oxc | | | +| [no-array-index-key](/docs/guide/usage/linter/rules/react/no-array-index-key.html) | react | | | | [jsx-no-jsx-as-prop](/docs/guide/usage/linter/rules/react_perf/jsx-no-jsx-as-prop.html) | react_perf | | | | [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 | | | -## Restriction (60): +## Restriction (61): 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? | @@ -203,7 +204,7 @@ Lints which prevent the use of language and library features. Must not be enable | [default-case](/docs/guide/usage/linter/rules/eslint/default-case.html) | eslint | | | | [no-alert](/docs/guide/usage/linter/rules/eslint/no-alert.html) | eslint | | | | [no-bitwise](/docs/guide/usage/linter/rules/eslint/no-bitwise.html) | eslint | | | -| [no-console](/docs/guide/usage/linter/rules/eslint/no-console.html) | eslint | | | +| [no-console](/docs/guide/usage/linter/rules/eslint/no-console.html) | eslint | | 💡 | | [no-div-regex](/docs/guide/usage/linter/rules/eslint/no-div-regex.html) | eslint | | 🛠️ | | [no-empty](/docs/guide/usage/linter/rules/eslint/no-empty.html) | eslint | | 💡 | | [no-empty-function](/docs/guide/usage/linter/rules/eslint/no-empty-function.html) | eslint | | | @@ -247,6 +248,7 @@ Lints which prevent the use of language and library features. Must not be enable | [no-namespace](/docs/guide/usage/linter/rules/typescript/no-namespace.html) | typescript | | | | [no-non-null-asserted-nullish-coalescing](/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing.html) | typescript | | | | [no-non-null-assertion](/docs/guide/usage/linter/rules/typescript/no-non-null-assertion.html) | typescript | | | +| [no-require-imports](/docs/guide/usage/linter/rules/typescript/no-require-imports.html) | typescript | | 🚧 | | [no-var-requires](/docs/guide/usage/linter/rules/typescript/no-var-requires.html) | typescript | | | | [prefer-literal-enum-member](/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member.html) | typescript | | | | [no-abusive-eslint-disable](/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable.html) | unicorn | | | @@ -482,11 +484,11 @@ Code that should be written in a more idiomatic way. | [prefer-to-be-object](/docs/guide/usage/linter/rules/vitest/prefer-to-be-object.html) | vitest | | 🛠️ | | [prefer-to-be-truthy](/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.html) | vitest | | 🛠️ | -## Nursery (12): +## Nursery (11): New lints that are still under development. | Rule name | Source | Default | Fixable? | -| --------------------------------- | ------------ | ------- | -------- | +| ----------------------- | ---------- | ------- | -------- | | [constructor-super](/docs/guide/usage/linter/rules/eslint/constructor-super.html) | eslint | | | | [getter-return](/docs/guide/usage/linter/rules/eslint/getter-return.html) | eslint | | | | [no-undef](/docs/guide/usage/linter/rules/eslint/no-undef.html) | eslint | | | @@ -497,5 +499,4 @@ New lints that are still under development. | [exhaustive-deps](/docs/guide/usage/linter/rules/react/exhaustive-deps.html) | react | | | | [require-render-return](/docs/guide/usage/linter/rules/react/require-render-return.html) | react | | | | [rules-of-hooks](/docs/guide/usage/linter/rules/react/rules-of-hooks.html) | react | | | -| [no-side-effects-in-initialization](/docs/guide/usage/linter/rules/tree_shaking/no-side-effects-in-initialization.html) | tree_shaking | | | | [consistent-type-imports](/docs/guide/usage/linter/rules/typescript/consistent-type-imports.html) | typescript | | 🛠️ | 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 fa70bdbe2a..ca2d7e9df5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/array_callback_return/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b601c25562..757e2adb20 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/constructor_super.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 631717b506..fee55e7af3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/default_case_last.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 dadb76ee31..131a898e6e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/default_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4d4718ff96..b01f5f9b79 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/default_param_last.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 650badcb60..3a6a62dd04 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/eqeqeq.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0571708ce3..dba2bad8fd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/for_direction.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6f4064e524..b84b471f75 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/func_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 979de09ad0..c6684c020d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/getter_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c2c5e58cf5..1a95482606 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/guard_for_in.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e4bf4fd89c..6c94ab24fb 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/max_classes_per_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f8c7abe249..ac19ab550e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/max_lines.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 663509def6..53368af29c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/max_params.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b98d6fa32b..67e84aba18 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_alert.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6b62ae628e..fa106ab026 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_array_constructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 51ae442733..01aa756d5b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_async_promise_executor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6efc940775..a711d3fa63 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_await_in_loop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2e1e6189c5..27a618de56 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_bitwise.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d3d48881d3..0283ac7a5b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_caller.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 aa5ccb7022..ec670add7d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_case_declarations.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 11af76c223..a843736b6f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_class_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 06ad10643c..fc318bfe0c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_compare_neg_zero.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 99462b710a..c1f43784e1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_cond_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0debb3f93b..5cffcad8f4 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-console.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-console.md @@ -3,6 +3,9 @@ # eslint/no-console
+ +💡 A suggestion is available for this rule. +
### What it does @@ -24,4 +27,4 @@ console.log("here"); ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_console.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c1ed0b88bf..1593cc62c5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_const_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0a9a74e31c..8aba473e13 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_constant_binary_expression.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1d12b84770..da264250bb 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_constant_condition.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8260c973c3..4831390e7b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_constructor_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 058de859c6..2c9704b714 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_continue.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2c9bbdcc69..c3c9202455 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_control_regex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 42e85a6385..6b999d316a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_debugger.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1a1972fe32..459ce5907c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_delete_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fcd83e60ca..b9756b1009 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_div_regex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 26887be9ee..7b072d63bd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_dupe_class_members.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 faf4a61404..b136854d86 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_dupe_else_if.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e782268816..a0c6e25954 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_dupe_keys.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 86f7a40422..b49d848732 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_duplicate_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/eslint/no_duplicate_case.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 60995923b7..de77a1df9f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_else_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 15ec3da560..d5117696da 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_empty_character_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4f52e5d4ff..8e5dbadf84 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_empty_function.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1ee0581d77..0b1b8f2ce7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_empty_pattern.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 50fbd341f7..ced14f18bd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_empty_static_block.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 cc079b7210..2c7ccaa5f4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_empty.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d5e5d1055a..443585cc9a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_eq_null.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f97fc0eb8e..5af8fcba9a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_eval.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 85801701ea..36d551bc92 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_ex_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9b349fc543..e863bab051 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_extend_native.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7b90ba9c4a..bfa5adb0c1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_extra_boolean_cast.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 91028f19ad..5b61a085ed 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_fallthrough.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 89967256ea..faee72806e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_func_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6d45b63a5a..5d31524941 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_global_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 111e814ad5..dee3b7d08e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_import_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 dca966ed20..50383b52bb 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_inner_declarations.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c9724fbb1a..b6c215a745 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_invalid_regexp.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b4815e0406..70f50f0db2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_irregular_whitespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fb961c851a..a48c70b908 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_iterator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b877cfa3d6..e1a38fd192 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_label_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9aec398e96..8646288f9a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_loss_of_precision.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b8d8554f0f..dd8fe758af 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_magic_numbers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 976cbe9bf2..7124c1f40d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_multi_str.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 180a88499a..229362052b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_new_func.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 89eb7bf227..f6269bdf56 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_new_native_nonconstructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3d8a9b20c1..a2161adaf8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_new_wrappers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 27d9e70a2d..d04c719315 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 41cfb35828..eba4ae6d1b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_nonoctal_decimal_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4d675e6fad..84664cd112 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_obj_calls.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/eslint/no_obj_calls.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 11923e5336..205db34e1d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_plusplus.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a8ea536f9f..f9dda0b6e2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_proto.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0c13d15bb5..1da7f6ff17 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_prototype_builtins.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5e19729def..6bb960dbc6 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_redeclare.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1aebee3857..4e19cfbabc 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_regex_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2863c69135..7fe1412bee 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_restricted_globals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4f71ff082e..80313f9615 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_return_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c006673c5c..18daf722c6 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_script_url.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3d56845cd8..7bd7e44c48 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_self_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e2107f872f..ba999b14ba 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_self_compare.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0c228f1e35..caa7db8092 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_setter_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 af7459cf36..314fe9cccf 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_shadow_restricted_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 57d820f80d..2394dd5107 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_sparse_arrays.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 567ff18925..a4c9fd83e8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_template_curly_in_string.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1adb563663..7793689d56 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1b8437b6b0..67b4269334 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_this_before_super.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 874254a268..6f80807a25 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_throw_literal.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ab70ec459d..3408fd8fc3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_undef.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c1346ae3ad..76e70f930e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 848f6974c3..ca031c9c42 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unexpected_multiline.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1a90bb8795..6a036e9d74 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unreachable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 70ce157d21..661d782b40 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unsafe_finally.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 780732954f..23b9c0ef6e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unsafe_negation.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c857454b8a..c91f9e88c7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unsafe_optional_chaining.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 59b629c216..538407579a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unused_labels.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7c414681ce..0a11c3ac39 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unused_private_class_members.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 150c832461..d461c989a5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_unused_vars/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8293f42cd2..fbf9c76a5f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_useless_catch.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 892e372444..9e5705d3a6 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_useless_concat.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 60f86af1d8..724d4713db 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_useless_constructor.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 03aeb60c1d..d5e82ae8a1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_useless_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3cc8da9407..6b512990e2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_useless_rename.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 56d8ff6836..138476845e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_var.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 34e0c10226..28a66d3fd1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_void.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f40368c568..b8376bbc82 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/no_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fb0aca2b68..ae6dece130 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/prefer_exponentiation_operator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b656c25198..eae35ae432 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/prefer_numeric_literals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 95c8f5df40..36ee3bc54b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/prefer_object_has_own.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6d8cdf5fea..c2a7e1d163 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/radix.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5572f4101e..90bb6d72db 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/require_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4d01caa38a..45d23adbf1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/require_yield.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 696b3236b6..2bf63af795 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/sort_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 39870f4fd0..d012633ba5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/sort_keys.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ff98e9dbda..f6db562845 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/sort_vars.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b475cffbc1..8043139cb2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/symbol_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f6734fda80..7546ec0f5f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/unicode_bom.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ba18856fb3..619504d4a2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/use_isnan.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0ec96fc586..a46aaab1f8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/eslint/valid_typeof.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 27ea2cb27c..c6a4efa63c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/default.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 90e8449705..ca7bb64def 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b7842a531f..603aae858a 100644 --- a/src/docs/guide/usage/linter/rules/import/first.md +++ b/src/docs/guide/usage/linter/rules/import/first.md @@ -39,7 +39,7 @@ export { x, y }; ### Options -with `"absolute-import"`: +with `"absolute-first"`: Examples of **incorrect** code for this rule: @@ -57,4 +57,4 @@ import { x } from "./foo"; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/first.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a736193f09..a147762387 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/import_no_namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 83d787f73d..686c9be303 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/max_dependencies.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 db267fd6d4..186849ee24 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/named.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7e194f69fb..2c3adc0851 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9dbb92eb8d..6be29477e7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_amd.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6e9a90153c..51493d5a3c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_commonjs.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d01839c396..75aab77b92 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_cycle.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 98ffe8aa68..ef80bd7e4e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_default_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c2c0cf8be9..e7add36489 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_duplicates.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7b5dc1a5dc..6f69d9e592 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_dynamic_require.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 025fab6e8d..63dc576c5e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_named_as_default_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 717757cc9a..2b1eaf9f46 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_named_as_default.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5021f52aea..6381bff9a4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_self_import.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0548b1b05a..faaa3edc14 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/no_webpack_loader_syntax.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ee0559b830..502af6a94e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/import/unambiguous.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2ef0380c77..0fe2295281 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/consistent_test_it.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0014771e29..2690ced72f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/expect_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c03dd4cf12..c384023eff 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/max_expects.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6cb7a8db16..3c7f9a407f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/max_nested_describe.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2605229573..f5010ee990 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_alias_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 64a76a5c74..7515d9f712 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_commented_out_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fb37d2e821..1f467556cc 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_conditional_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c493f37e36..d1794b9521 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_conditional_in_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b0961b1e42..7a7cab9cdb 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_confusing_set_timeout.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7036d3dee0..ff9e026b0b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a657b463f3..3f8d0bb488 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_disabled_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 57dc7bfe2f..5aa5dd65d1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_done_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3c1ebcfe00..e890bee49a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_duplicate_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0d47493adb..41534f4068 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3bf3a251a7..3c69765758 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_focused_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 32a68138b4..efc5d87655 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 081be73a1b..1a23ffc192 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_identical_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8b4e499524..bf2c6f96f4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_interpolation_in_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 080178c9b9..206462de3b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_jasmine_globals.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4cea787a0b..94afe87f85 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_large_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ab9f4aa1b0..e838c1eb71 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_mocks_import.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6c441ddfff..f4f13fe7b3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_restricted_jest_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a9cd8a9c18..43ae8e62f8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_restricted_matchers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9d9134c1a7..b538a2c506 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_standalone_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 099da25c39..8ca0c1f4ce 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_test_prefixes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 85a5f6e2a4..854ceb1632 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_test_return_statement.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3fdd09a772..51b40116d0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/no_untyped_mock_factory.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 329355bdc4..1c0bd96232 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_called_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 beb038fac0..cc596952ff 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_comparison_matcher.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 16a71014f9..471d954c23 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_equality_matcher.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0a157a8310..80f5b056b5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_expect_resolves.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c28b0374f5..1a0307eb47 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_hooks_in_order.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9d70024605..af4a2b3465 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_hooks_on_top.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 527fb9eb24..5a48fbb7d2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_jest_mocked.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2890909c9a..448414ffbc 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_lowercase_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0570034c39..33a32c7cc2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_mock_promise_shorthand.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5cd46bf7bc..5a653a0591 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_spy_on.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3c14a641f1..53411ff06b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 54c763f2dd..6218312643 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_to_be.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 685d967ba0..ab177cedbc 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_to_contain.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4ed56a7c4a..802eba3554 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_to_have_length.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 672cb9e025..65eea943b1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/prefer_todo.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 66483bb7f0..7a693987d6 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/require_hook.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 576f5444ff..45a88a4d6a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/require_to_throw_message.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b6a059a937..77f48c052b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/require_top_level_describe.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c3ac2ee914..faf11d839f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/valid_describe_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0a375d2833..a29ea784c3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/valid_expect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b420b97a45..1b4e579187 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jest/valid_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 49a6ac335a..d91e609889 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/check_access.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 cdebd0e217..eab32f8127 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/check_property_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4eb2ce4058..589220de51 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/check_tag_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e247e94400..eaedfbd598 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/empty_tags.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7d72f880bb..09aedbe384 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/implements_on_classes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 41239ab687..9848b91501 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/no_defaults.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3fe13b71fe..095312b665 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_param_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d24c14b6ab..3914098767 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_param_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 138984a7ae..48208b155b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_param_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6818a536c9..3a84caa0ec 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_param.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a874de966d..b1285f5c16 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_property_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fdddbe68d6..5213da151b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_property_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8da9f573de..010396850e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_property_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 759eac10ac..713a7db145 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_property.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9a07cdc32c..62434c083e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_returns_description.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 da5eb106f1..68703cb92e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_returns_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3b6fbe172f..6047585218 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_returns.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b6d72c1832..7a9e4a4806 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsdoc/require_yields.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ea25499d27..321d6d12bf 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/alt_text.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/jsx_a11y/alt_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 2f15924ec6..942fe79183 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/anchor_has_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 17976d1f68..ca785a9097 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/anchor_is_valid.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 41bf75c79f..a2487c1598 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/aria_activedescendant_has_tabindex.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b481888389..9be821321a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d400001f02..efc0282112 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/aria_role.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fbf7cdcdac..290371e8b0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/aria_unsupported_elements.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2b6166724b..3dbf3bb12c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/autocomplete_valid.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 308a0c3b8c..642682e6f7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/click_events_have_key_events.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0c3fbfb5a6..ee87076646 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/heading_has_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2dfcf4ae58..c8d93b5eff 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/html_has_lang.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ba1791f012..0dbc9561f7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/iframe_has_title.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4195527aad..0bf20a1651 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/img_redundant_alt.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 51c974c433..9fca37eb8a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/label_has_associated_control.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 812e6caae2..0b427e4012 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/lang.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 91283242b9..8d28d19212 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/media_has_caption.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 08d0af0f4c..023f4a782f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/mouse_events_have_key_events.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4925381763..175bd3c0ca 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/no_access_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 08b50b8277..4bd25de570 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/no_aria_hidden_on_focusable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 73ac112d26..6905baa4f1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/no_autofocus.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 169d974152..31817d6bf5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/no_distracting_elements.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8c5dfd25dd..96994f1eb2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/no_redundant_roles.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 79513b081e..e4b58bbb20 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/prefer_tag_over_role.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d771cae89b..0067ad92a7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/role_has_required_aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a28eaed745..fd166629a3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/role_supports_aria_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 98c8931ef5..99cc195fcd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/scope.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 93f922a139..8bad89f5e5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/jsx_a11y/tabindex_no_positive.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ddd1f683c4..3927b16827 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/google_font_display.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 34339df352..574b9228e0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/google_font_preconnect.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 32814d0cc9..0cab3223a8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/inline_script_id.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 eac579656a..86876573e3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/next_script_for_ga.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b3165f5e3d..7997490faa 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_assign_module_variable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 967929824f..dd37f76474 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_async_client_component.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d832b5b9f3..898758b567 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_before_interactive_script_outside_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4a6d5fb972..9326ea5716 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_css_tags.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b8acac53ed..7e26d4f628 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_document_import_in_page.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2a96e81b20..515ac6c625 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_duplicate_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3a17093750..dbf80b7810 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_head_element.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ce1c65305e..1912d353dd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_head_import_in_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4ae0016c48..1b5dac6b1a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_img_element.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 cd05980806..6309898312 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_page_custom_font.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8dbd0045ea..7684454a5c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_script_component_in_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f160c43dc6..3446b281f0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_styled_jsx_in_document.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 46115fe2c4..bdccf70066 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_sync_scripts.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 63c2269512..62176a1107 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_title_in_document_head.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ddce2937fd..e64b076314 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_typos.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0311fa6fac..4ff6b2027e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/nextjs/no_unwanted_polyfillio.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ab1a38b38b..f7b4d80524 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/node/no_exports_assign.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 10d47b74d0..8bbdbc40d8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/node/no_new_require.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 cb1a3c32ac..da7dce6ec6 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/approx_constant.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ccef52e839..f93d100880 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/bad_array_method_on_arguments.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 68536ea87e..7a2254f083 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/bad_bitwise_operator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 912b38f68f..d6ce25a504 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/bad_char_at_comparison.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e7fe119bcd..ed45f68c73 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/bad_comparison_sequence.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e7ec01bb98..6755826f15 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/bad_min_max_func.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 57abf24126..e9bb115117 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/bad_object_literal_comparison.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2ab1a9f66d..284ae82640 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/bad_replace_all_arg.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 483a563d56..303ed3620f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/const_comparisons.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 496073350e..d29920c48a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/double_comparisons.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9e65b9cd7a..294ae2affe 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/erasing_op.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8feed79bc4..04f4e4cfd7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/misrefactored_assign_op.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f9026b63fd..8a3ef29da8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/missing_throw.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 144b0c99c7..d130ec2dfc 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_accumulating_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 91cd00f669..e4d93fe782 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_async_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 38fa044ce2..435625b645 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_async_endpoint_handlers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 da031a8f05..6e1e0e0fad 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_barrel_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0e2675ce30..cf3bced5b1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_const_enum.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 81433fa120..5d5a7e5935 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_map_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 715283e762..79cfe1fd84 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_optional_chaining.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4cfc7b0d2d..f9c14eb6f1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/no_rest_spread_properties.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8a38b2dcdf..9a6b0b5cf5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/number_arg_out_of_range.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e64edc0a47..ac833f03a3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/only_used_in_recursion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e1eb37c2a0..a54ce1687d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/oxc/uninvoked_array_callback.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 eee6464ce7..c77d4d35de 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/avoid_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 bb4e42e2ef..d27ae2a738 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/catch_or_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 340f19f201..165d9ebbab 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/no_callback_in_promise.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4e5b8299f0..e1fc90c645 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/no_new_statics.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/promise/no_new_statics.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 fb4a1f8528..69269acd57 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/no_return_in_finally.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 af5a6b0bb9..e62faff6c7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/param_names.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8e6d229ac7..a9df38b087 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/prefer_await_to_callbacks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9d51a58c6a..a53a7b78a5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/prefer_await_to_then.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 77057ae6d2..a1da690af0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/spec_only.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fad0454fd5..3dd7cdd933 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/promise/valid_params.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 00ddfbfb0c..4d1f51baaf 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/button_has_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0e8fed3ffe..1ef9a6b299 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/checked_requires_onchange_or_readonly.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1d4ce4bb16..283d6e53e1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/exhaustive_deps.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 361786ba2d..6c03f73032 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/iframe_missing_sandbox.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1f7a8c0e18..742cb22ff4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_boolean_value.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6442ee8262..6f3d0a2dd2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_curly_brace_presence.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9317305e2e..f5dfffa62e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_key.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9fc49ae32b..a72954b7da 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_no_comment_textnodes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fa4f0b838c..8c8bee6172 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_no_duplicate_props.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/react/jsx_no_duplicate_props.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 e0c5359a72..863bf261cf 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_no_target_blank.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 179c38a1d2..42de26f84b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_no_undef.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ca95daa751..0d6fe4156d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_no_useless_fragment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f3046fa02c..0be582b17b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/jsx_props_no_spread_multi.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 new file mode 100644 index 0000000000..6af134ec67 --- /dev/null +++ b/src/docs/guide/usage/linter/rules/react/no-array-index-key.md @@ -0,0 +1,35 @@ + + +# react/no-array-index-key + +
+
+ +### What it does + +Warn if an element uses an Array index in its key. + +### Why is this bad? + +It's a bad idea to use the array index since it doesn't uniquely identify your elements. +In cases where the array is sorted or an element is added to the beginning of the array, +the index will be changed even though the element representing that index may be the same. +This results in unnecessary renders. + +### Examples + +Examples of **incorrect** code for this rule: + +```jsx +things.map((thing, index) => ); +``` + +Examples of **correct** code for this rule: + +```jsx +things.map((thing, index) => ); +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 abeb13600d..143dcc1dd2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_children_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 fb1f55b283..3becea2024 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_danger_with_children.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3506a8e810..cc5c642956 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_danger.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 336341b805..8cc0ed923b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_direct_mutation_state.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4f789bb064..487191f1cb 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_find_dom_node.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 72cadc005e..264b94138a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_is_mounted.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 decc1f6e3b..b2e53f9808 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_render_return_value.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c2f9fa0f50..bf7cb8c997 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_set_state.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c93c5a7725..0857c07056 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_string_refs.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c3f9db096e..6d6a927913 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_unescaped_entities.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2bd5b11006..62893783cf 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/no_unknown_property.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b856df42d1..3bd937cec4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/prefer_es6_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 dd3eb4ab94..11ce85bf62 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/react_in_jsx_scope.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e2ea2a8cf9..9dc68e1f5d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/require_render_return.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 64437743a3..5148f6cd8f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/rules_of_hooks.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 127726aa85..500ebfeed2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/self_closing_comp.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0be4690279..380a21d157 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/style_prop_object.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b170c97ffb..3263fa7014 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react/void_dom_elements_no_children.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c8be5fbba2..5771870b53 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react_perf/jsx_no_jsx_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e4b1b5bef1..0e6af55092 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react_perf/jsx_no_new_array_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 de3423282a..bbc0cf56b4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react_perf/jsx_no_new_function_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0e233f9c07..4b84a1fd53 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/react_perf/jsx_no_new_object_as_prop.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9a07ff16df..e126f31766 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/security/api_keys/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 af598dec28..3422c492a7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/adjacent_overload_signatures.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f99036c9b6..85ae0797ef 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/array_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ac414c1377..fe9702b383 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/ban_ts_comment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d3a4dd3a50..ad4336dca7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/ban_tslint_comment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 cf197eacfa..aa915eaa12 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/ban_types.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 46724cb028..1c1b027d22 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/consistent_indexed_object_style.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 dcbe0f11f6..4e5d6301dd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/consistent_type_definitions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5b812006f7..c94460f792 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/consistent_type_imports.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 992aa7f9b3..3955ebf7b0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/explicit_function_return_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 74ec3b0d9e..f2f38de4a1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_confusing_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1b81bc1a7f..ca8a8c0833 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_duplicate_enum_values.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9e73cfd3f6..169c4f55ab 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_dynamic_delete.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3a2f0a065a..05c1296eab 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_empty_interface.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 189c60c57c..278fbb9f41 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_empty_object_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9c249f8f4b..703f1c39e0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_explicit_any.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d79c9e779c..c2b8a86175 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_extra_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5ad8f85301..6f04f842c1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_extraneous_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6482b3a6b7..5a97d5b36e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_import_type_side_effects.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b8087962d0..2d1e556795 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_misused_new.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e6cbf8887d..6e9d40fb5c 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_namespace.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0740cc48cb..a4fff474e7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_nullish_coalescing.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 50abafa305..e493ff27ef 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_non_null_asserted_optional_chain.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d8cdef1d21..73dfe18065 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_non_null_assertion.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 new file mode 100644 index 0000000000..e8402defb6 --- /dev/null +++ b/src/docs/guide/usage/linter/rules/typescript/no-require-imports.md @@ -0,0 +1,97 @@ + + +# typescript/no-require-imports + +
+ +🚧 An auto-fix is still under development. + +
+ +### What it does + +Forbids the use of CommonJS `require` calls. + +### Why is this bad? + +`require` imports, while functional in Node.js and older JavaScript environments, are generally +considered less desirable than ES modules (`import`) for several key reasons in modern JavaScript development: + +1. **Static vs. Dynamic**: `require` is a **runtime** function. It executes when the code runs, which means errors related to missing modules or incorrect paths are only discovered during runtime. ES modules (`import`) are static imports. Their resolution and potential errors are checked during the compilation or bundling process, making them easier to catch during development. + +2. **Code Organization and Readability**: `require` statements are scattered throughout the code, potentially making it harder to quickly identify the dependencies of a given module. `import` statements are typically grouped at the top of a file, improving code organization and readability. + +3. **Tree Shaking and Optimization**: Modern bundlers like Webpack and Rollup use tree-shaking to remove unused code from the final bundle. Tree-shaking works significantly better with ES modules because their dependencies are declared statically and explicitly. `require` makes it harder for bundlers to accurately identify and remove unused code, resulting in larger bundle sizes and slower load times. + +4. **Cyclic Dependencies**: Handling cyclic dependencies (where module A imports B, and B imports A) is significantly more challenging with `require`. ES modules, through their declarative nature and the use of dynamic imports (`import()`), provide better mechanisms to handle cyclic imports and manage asynchronous loading. + +5. **Maintainability and Refactoring**: Changing module names or paths is simpler with ES modules because the changes are declared directly and the compiler or bundler catches any errors. With `require`, you might have to track down all instances of a specific `require` statement for a particular module, making refactoring more error-prone. + +6. Modern JavaScript Standards: import is the standard way to import modules in modern JavaScript, aligned with current best practices and language specifications. Using require necessitates additional build steps or tools to translate it to a format that the browser or modern JavaScript environments can understand. + +7. Error Handling: ES modules provide a more structured way to handle errors during module loading using `try...catch` blocks with dynamic imports, enhancing error management. `require` errors can be less predictable. + +In summary, while `require` works, the benefits of ES modules in terms of static analysis, better bundling, improved code organization, and easier maintainability make it the preferred method for importing modules in modern JavaScript projects. + +### Examples + +Examples of **incorrect** code for this rule: + +```ts +const lib1 = require("lib1"); +const { lib2 } = require("lib2"); +import lib3 = require("lib3"); +``` + +Examples of **correct** code for this rule: + +```ts +import * as lib1 from "lib1"; +import { lib2 } from "lib2"; +import * as lib3 from "lib3"; +``` + +### Options + +#### `allow` + +array of strings + +These strings will be compiled into regular expressions with the u flag and be used to test against the imported path. +A common use case is to allow importing `package.json`. This is because `package.json` commonly lives outside of the TS root directory, +so statically importing it would lead to root directory conflicts, especially with `resolveJsonModule` enabled. +You can also use it to allow importing any JSON if your environment doesn't support JSON modules, or use it for other cases where `import` statements cannot work. + +With { allow: ['/package\\.json$'] }: + +Examples of **correct** code for this rule: + +```ts +console.log(require("../package.json").version); +``` + +#### `allowAsImport` + +When set to `true`, `import ... = require(...)` declarations won't be reported. +This is useful if you use certain module options that require strict CommonJS interop semantics. + +With `{ allowAsImport: true }`: + +Examples of **incorrect** code for this rule: + +```ts +var foo = require("foo"); +const foo = require("foo"); +let foo = require("foo"); +``` + +Examples of **correct** code for this rule: + +```ts +import foo = require("foo"); +import foo from "foo"; +``` + +## References + +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a346a8ddab..c9ccb3db28 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_this_alias.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7bc919df9e..e458ecbc3a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_unnecessary_type_constraint.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ffa98b1608..f2b6476ccb 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_unsafe_declaration_merging.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2e411c4e28..476f3c3a4a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_unsafe_function_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 29c3bb054f..00b83f5cce 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_useless_empty_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4b9fc6c135..62251264e4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_var_requires.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 06451b481a..10291400ec 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/no_wrapper_object_types.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 46ac61a052..661c88ef77 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/prefer_as_const.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ecc93b15f5..8211cb0794 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/prefer_enum_initializers.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5070eea491..1b108c3e63 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/prefer_for_of.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 18d68c25ad..3d54247b32 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/prefer_function_type.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 771b4e18dd..68211e9672 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/prefer_literal_enum_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 00d5dd68da..63f3d5c4ce 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/prefer_namespace_keyword.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6b58051421..8a37811646 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/prefer_ts_expect_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b9f54384bc..6551e61b6a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/typescript/triple_slash_reference.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7d7796bfab..3f2e0e86fd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/catch_error_name.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 54ba8359bc..9031285c8e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/consistent_empty_array_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b0d5e28688..d0c4ef10ad 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/consistent_existence_index_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f042687fa4..958a77f2c9 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/consistent_function_scoping.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e50cae90c1..ee16ce8648 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/empty_brace_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a06bebb086..a02c896772 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/error_message.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0ee27afd4d..b636ab95a2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/escape_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3895e281c2..6f59d7c20b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/explicit_length_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2e2ece3748..da688f77fe 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/filename_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 616b7d0cd9..5b2a92d788 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/new_for_builtins.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 db24f123e9..46836b7397 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_abusive_eslint_disable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 e9063e4223..ad5656add9 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_anonymous_default_export.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f4c5e8f976..67410c92a7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_array_for_each.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 bf2f631dbc..85f552df9a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_array_reduce.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 72af8b2cb0..2de4b9c68e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_await_expression_member.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c2a954907e..4eb3107ec3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_await_in_promise_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3605026575..52e42b561b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_console_spaces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ede569898d..d70f20a42d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_document_cookie.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 916fbc102c..3894a1bafb 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_empty_file.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f3cba5ef36..9d36239e53 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_hex_escape.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 23197e1201..df4d9ccc16 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_instanceof_array.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f301bf5268..b0648637da 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_invalid_remove_event_listener.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d70eb37c53..abdd438956 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_length_as_slice_end.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 33fd05967e..7e70a1eabd 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_lonely_if.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5e4eef951a..81ca49d747 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_magic_array_flat_depth.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f1c4d18fbd..937665c9ec 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_negated_condition.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7d3159c0c4..4668ab4991 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_negation_in_equality_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 696b662f6d..46f4f30efe 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_nested_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 70d7b3d560..05e5b1badf 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_new_array.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6565ae25ed..d97d346f64 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_new_buffer.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c292250981..a449124bc2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_null.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2af652682f..8e18b3adc8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_object_as_default_parameter.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6a5d831074..7d348e9e63 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_process_exit.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ce9cdfd37a..b05a10e6d1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_single_promise_in_promise_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ab466c1a65..173e3f3f03 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_static_only_class.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1044c7683e..4180050075 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_thenable.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c7c0a4e675..f20cda3d30 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_this_assignment.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ecb57703cb..f2e499c2e9 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_typeof_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 13c5dd7b1e..756aedb36a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_unnecessary_await.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4c3259d4f1..a87df22880 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_unreadable_array_destructuring.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 68f0568c35..b523fa60f1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_unreadable_iife.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 04271742d2..967d020834 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_useless_fallback_in_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a1bec5f109..754a34ea73 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_useless_length_check.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 942e58bb94..87ca17e744 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_useless_promise_resolve_reject.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 dff0e2ce87..a8fbd9626f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_useless_spread/mod.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 9d1ccfcf1a..da9de8a6c3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_useless_switch_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 172dd732d6..dc32f1e129 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_useless_undefined.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c34cc62579..16379ce992 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/no_zero_fractions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 77673afc30..b42dfb90d1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/number_literal_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 49649ae092..3290b1f16f 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/numeric_separators_style.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5abd581db3..bb967e37e2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_add_event_listener.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ed191e2bf6..31c1cd029a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_array_flat_map.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 eeb042322e..0adb86a9d0 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_array_flat.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 1b098650bc..5983f846c8 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 @@ -32,4 +32,4 @@ const foo = array.some(fn) ? bar : baz; ## References -- [Rule Source](https://github.com/oxc-project/oxc/blob/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_array_some.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3fc18e7c94..3a83733b5e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_blob_reading_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4eeafbc9b0..dacacb20a4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_code_point.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 c1aab3f705..9ade1a5443 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_date_now.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f1ed757b76..0fe82438b7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_append.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 14fbdc893a..e98ea85bc4 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_dataset.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 efab668873..6037785149 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_remove.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0b147826eb..e51dd520b3 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_dom_node_text_content.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 236b1f720b..82423dfdff 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_event_target.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 cf9f189ed8..d2c25786c2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_includes.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 4739908df5..bc92eeacd1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_logical_operator_over_ternary.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 70821a33dc..0673b4c6a8 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_math_min_max.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 692dbdafe8..8560a2dd02 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_math_trunc.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 47fc668596..b350003075 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_modern_dom_apis.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8264011916..be757edb6a 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_modern_math_apis.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 374409d383..e97c68b8ef 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_native_coercion_functions.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/unicorn/prefer_native_coercion_functions.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 0f6953aa17..91fbf2ead5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_node_protocol.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 7886122217..d825669e02 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_number_properties.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6fe9ca331c..5c95a5f762 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_optional_catch_binding.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 b9023fcec5..7ec1d2826b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_prototype_methods.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0458499595..eabc42bc13 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_query_selector.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 5dcfcd2a04..1cde704fdf 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_reflect_apply.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 d02598e2d7..d5f47a75d1 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_regexp_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/unicorn/prefer_regexp_test.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 a8bf83e115..53d558c441 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_set_size.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2d53f5ab2c..9e116fc5a7 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_spread.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3d91ddb373..043f7375f5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_string_raw.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 df44c74a9c..16dd3ca742 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_string_replace_all.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6455b7beeb..52dd2386ec 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_string_slice.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 bb91f72a88..5e916aaaa2 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_string_starts_ends_with.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 955ce10c2d..54c4631bda 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_string_trim_start_end.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 ff9bd155ea..b7d45957a6 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_structured_clone.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 8a7854ae2d..aee1aaa041 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/prefer_type_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 2f4eb61bff..3994a0ce8d 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/require_array_join_separator.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 f1d3efe144..c9dd87f73e 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/require_number_to_fixed_digits_argument.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 688aabee38..1c23fbff30 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/switch_case_braces.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 3d4542042d..3dde75a7ac 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/text_encoding_identifier_case.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 18dff4cbb5..7c5616e42b 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/unicorn/throw_new_error.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 6e4bd66793..f811cf4c93 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/vitest/no_conditional_tests.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 591fe22cfd..1bb6af31a9 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/vitest/no_import_node_test.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 401681b5d2..ab4a9deee5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/vitest/prefer_each.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 21b38ac070..56e1bc0ee5 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/vitest/prefer_to_be_falsy.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 a489ec1d86..74747dec69 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/vitest/prefer_to_be_object.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 0e3b834529..eb7c630050 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/vitest/prefer_to_be_truthy.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/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 89b3b76911..733d550331 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/5190b7fb280dcd15c6de81717c073b06a161ced6/crates/oxc_linter/src/rules/vitest/require_local_test_context_for_concurrent_snapshots.rs) +- [Rule Source](https://github.com/oxc-project/oxc/blob/e91c2878d8c49213790df4d192bb3136503aa08b/crates/oxc_linter/src/rules/vitest/require_local_test_context_for_concurrent_snapshots.rs)