From 6ed3ec9369ae718f9a37fb83190ae6ac274fc89f Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Sun, 7 Dec 2025 11:27:09 -0700 Subject: [PATCH] docs(linter): Regenerate docs for rules to update the CLI/config block at the bottom. Ths updates every rule in the codebase, I made sure to generate this commit after regenerating the site with all other recent changes, so it should only include the changes for the bottom block. --- .../usage/linter/rules/eslint/array-callback-return.md | 10 +++++----- .../usage/linter/rules/eslint/arrow-body-style.md | 10 +++++----- .../usage/linter/rules/eslint/block-scoped-var.md | 10 +++++----- .../linter/rules/eslint/class-methods-use-this.md | 10 +++++----- .../usage/linter/rules/eslint/constructor-super.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/curly.md | 10 +++++----- .../usage/linter/rules/eslint/default-case-last.md | 10 +++++----- .../guide/usage/linter/rules/eslint/default-case.md | 10 +++++----- .../usage/linter/rules/eslint/default-param-last.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/eqeqeq.md | 10 +++++----- .../guide/usage/linter/rules/eslint/for-direction.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/func-names.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/func-style.md | 10 +++++----- .../guide/usage/linter/rules/eslint/getter-return.md | 10 +++++----- .../linter/rules/eslint/grouped-accessor-pairs.md | 10 +++++----- .../guide/usage/linter/rules/eslint/guard-for-in.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/id-length.md | 10 +++++----- .../usage/linter/rules/eslint/init-declarations.md | 10 +++++----- .../usage/linter/rules/eslint/max-classes-per-file.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/max-depth.md | 10 +++++----- .../linter/rules/eslint/max-lines-per-function.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/max-lines.md | 10 +++++----- .../usage/linter/rules/eslint/max-nested-callbacks.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/max-params.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/new-cap.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-alert.md | 10 +++++----- .../usage/linter/rules/eslint/no-array-constructor.md | 10 +++++----- .../linter/rules/eslint/no-async-promise-executor.md | 10 +++++----- .../usage/linter/rules/eslint/no-await-in-loop.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-bitwise.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-caller.md | 10 +++++----- .../usage/linter/rules/eslint/no-case-declarations.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-class-assign.md | 10 +++++----- .../usage/linter/rules/eslint/no-compare-neg-zero.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-cond-assign.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-console.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-const-assign.md | 10 +++++----- .../rules/eslint/no-constant-binary-expression.md | 10 +++++----- .../usage/linter/rules/eslint/no-constant-condition.md | 10 +++++----- .../usage/linter/rules/eslint/no-constructor-return.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-continue.md | 10 +++++----- .../usage/linter/rules/eslint/no-control-regex.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-debugger.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-delete-var.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-div-regex.md | 10 +++++----- .../usage/linter/rules/eslint/no-dupe-class-members.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-dupe-else-if.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-dupe-keys.md | 10 +++++----- .../usage/linter/rules/eslint/no-duplicate-case.md | 10 +++++----- .../usage/linter/rules/eslint/no-duplicate-imports.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-else-return.md | 10 +++++----- .../linter/rules/eslint/no-empty-character-class.md | 10 +++++----- .../usage/linter/rules/eslint/no-empty-function.md | 10 +++++----- .../usage/linter/rules/eslint/no-empty-pattern.md | 10 +++++----- .../usage/linter/rules/eslint/no-empty-static-block.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-empty.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-eq-null.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-eval.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-ex-assign.md | 10 +++++----- .../usage/linter/rules/eslint/no-extend-native.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-extra-bind.md | 10 +++++----- .../usage/linter/rules/eslint/no-extra-boolean-cast.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-extra-label.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-fallthrough.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-func-assign.md | 10 +++++----- .../usage/linter/rules/eslint/no-global-assign.md | 10 +++++----- .../usage/linter/rules/eslint/no-import-assign.md | 10 +++++----- .../usage/linter/rules/eslint/no-inner-declarations.md | 10 +++++----- .../usage/linter/rules/eslint/no-invalid-regexp.md | 10 +++++----- .../linter/rules/eslint/no-irregular-whitespace.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-iterator.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-label-var.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-labels.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-lone-blocks.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-lonely-if.md | 10 +++++----- .../usage/linter/rules/eslint/no-loss-of-precision.md | 10 +++++----- .../usage/linter/rules/eslint/no-magic-numbers.md | 10 +++++----- .../rules/eslint/no-misleading-character-class.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-multi-assign.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-multi-str.md | 10 +++++----- .../usage/linter/rules/eslint/no-negated-condition.md | 10 +++++----- .../usage/linter/rules/eslint/no-nested-ternary.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-new-func.md | 10 +++++----- .../rules/eslint/no-new-native-nonconstructor.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-new-wrappers.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-new.md | 10 +++++----- .../linter/rules/eslint/no-nonoctal-decimal-escape.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-obj-calls.md | 10 +++++----- .../usage/linter/rules/eslint/no-object-constructor.md | 10 +++++----- .../usage/linter/rules/eslint/no-param-reassign.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-plusplus.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-proto.md | 10 +++++----- .../usage/linter/rules/eslint/no-prototype-builtins.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-redeclare.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-regex-spaces.md | 10 +++++----- .../usage/linter/rules/eslint/no-restricted-globals.md | 10 +++++----- .../usage/linter/rules/eslint/no-restricted-imports.md | 10 +++++----- .../usage/linter/rules/eslint/no-return-assign.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-script-url.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-self-assign.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-self-compare.md | 10 +++++----- .../usage/linter/rules/eslint/no-setter-return.md | 10 +++++----- .../linter/rules/eslint/no-shadow-restricted-names.md | 10 +++++----- .../usage/linter/rules/eslint/no-sparse-arrays.md | 10 +++++----- .../linter/rules/eslint/no-template-curly-in-string.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-ternary.md | 10 +++++----- .../usage/linter/rules/eslint/no-this-before-super.md | 10 +++++----- .../usage/linter/rules/eslint/no-throw-literal.md | 10 +++++----- .../usage/linter/rules/eslint/no-unassigned-vars.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-undef.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-undefined.md | 10 +++++----- .../linter/rules/eslint/no-unexpected-multiline.md | 10 +++++----- .../usage/linter/rules/eslint/no-unneeded-ternary.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-unreachable.md | 10 +++++----- .../usage/linter/rules/eslint/no-unsafe-finally.md | 10 +++++----- .../usage/linter/rules/eslint/no-unsafe-negation.md | 10 +++++----- .../linter/rules/eslint/no-unsafe-optional-chaining.md | 10 +++++----- .../usage/linter/rules/eslint/no-unused-expressions.md | 10 +++++----- .../usage/linter/rules/eslint/no-unused-labels.md | 10 +++++----- .../rules/eslint/no-unused-private-class-members.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-unused-vars.md | 10 +++++----- .../linter/rules/eslint/no-useless-backreference.md | 10 +++++----- .../guide/usage/linter/rules/eslint/no-useless-call.md | 10 +++++----- .../usage/linter/rules/eslint/no-useless-catch.md | 10 +++++----- .../linter/rules/eslint/no-useless-computed-key.md | 10 +++++----- .../usage/linter/rules/eslint/no-useless-concat.md | 10 +++++----- .../linter/rules/eslint/no-useless-constructor.md | 10 +++++----- .../usage/linter/rules/eslint/no-useless-escape.md | 10 +++++----- .../usage/linter/rules/eslint/no-useless-rename.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-var.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-void.md | 10 +++++----- .../usage/linter/rules/eslint/no-warning-comments.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/no-with.md | 10 +++++----- .../usage/linter/rules/eslint/operator-assignment.md | 10 +++++----- .../usage/linter/rules/eslint/prefer-destructuring.md | 10 +++++----- .../rules/eslint/prefer-exponentiation-operator.md | 10 +++++----- .../linter/rules/eslint/prefer-numeric-literals.md | 10 +++++----- .../usage/linter/rules/eslint/prefer-object-has-own.md | 10 +++++----- .../usage/linter/rules/eslint/prefer-object-spread.md | 10 +++++----- .../rules/eslint/prefer-promise-reject-errors.md | 10 +++++----- .../usage/linter/rules/eslint/prefer-rest-params.md | 10 +++++----- .../guide/usage/linter/rules/eslint/prefer-spread.md | 10 +++++----- .../guide/usage/linter/rules/eslint/prefer-template.md | 10 +++++----- .../usage/linter/rules/eslint/preserve-caught-error.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/radix.md | 10 +++++----- .../guide/usage/linter/rules/eslint/require-await.md | 10 +++++----- .../guide/usage/linter/rules/eslint/require-yield.md | 10 +++++----- .../guide/usage/linter/rules/eslint/sort-imports.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/sort-keys.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/sort-vars.md | 10 +++++----- .../usage/linter/rules/eslint/symbol-description.md | 10 +++++----- .../guide/usage/linter/rules/eslint/unicode-bom.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/use-isnan.md | 10 +++++----- .../guide/usage/linter/rules/eslint/valid-typeof.md | 10 +++++----- .../guide/usage/linter/rules/eslint/vars-on-top.md | 10 +++++----- src/docs/guide/usage/linter/rules/eslint/yoda.md | 10 +++++----- .../rules/import/consistent-type-specifier-style.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/default.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/export.md | 10 +++++----- .../guide/usage/linter/rules/import/exports-last.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/extensions.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/first.md | 10 +++++----- .../guide/usage/linter/rules/import/group-exports.md | 10 +++++----- .../usage/linter/rules/import/max-dependencies.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/named.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/namespace.md | 10 +++++----- .../usage/linter/rules/import/no-absolute-path.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/no-amd.md | 10 +++++----- .../linter/rules/import/no-anonymous-default-export.md | 10 +++++----- .../guide/usage/linter/rules/import/no-commonjs.md | 10 +++++----- src/docs/guide/usage/linter/rules/import/no-cycle.md | 10 +++++----- .../usage/linter/rules/import/no-default-export.md | 10 +++++----- .../guide/usage/linter/rules/import/no-duplicates.md | 10 +++++----- .../usage/linter/rules/import/no-dynamic-require.md | 10 +++++----- .../usage/linter/rules/import/no-empty-named-blocks.md | 10 +++++----- .../usage/linter/rules/import/no-mutable-exports.md | 10 +++++----- .../linter/rules/import/no-named-as-default-member.md | 10 +++++----- .../usage/linter/rules/import/no-named-as-default.md | 10 +++++----- .../usage/linter/rules/import/no-named-default.md | 10 +++++----- .../guide/usage/linter/rules/import/no-named-export.md | 10 +++++----- .../guide/usage/linter/rules/import/no-namespace.md | 10 +++++----- .../guide/usage/linter/rules/import/no-self-import.md | 10 +++++----- .../usage/linter/rules/import/no-unassigned-import.md | 10 +++++----- .../linter/rules/import/no-webpack-loader-syntax.md | 10 +++++----- .../usage/linter/rules/import/prefer-default-export.md | 10 +++++----- .../guide/usage/linter/rules/import/unambiguous.md | 10 +++++----- .../usage/linter/rules/jest/consistent-test-it.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/max-expects.md | 10 +++++----- .../usage/linter/rules/jest/max-nested-describe.md | 10 +++++----- .../guide/usage/linter/rules/jest/no-alias-methods.md | 10 +++++----- .../usage/linter/rules/jest/no-commented-out-tests.md | 10 +++++----- .../usage/linter/rules/jest/no-conditional-expect.md | 10 +++++----- .../usage/linter/rules/jest/no-conditional-in-test.md | 10 +++++----- .../linter/rules/jest/no-confusing-set-timeout.md | 10 +++++----- .../usage/linter/rules/jest/no-deprecated-functions.md | 10 +++++----- .../guide/usage/linter/rules/jest/no-disabled-tests.md | 10 +++++----- .../guide/usage/linter/rules/jest/no-done-callback.md | 10 +++++----- .../usage/linter/rules/jest/no-duplicate-hooks.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/no-export.md | 10 +++++----- .../guide/usage/linter/rules/jest/no-focused-tests.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/no-hooks.md | 10 +++++----- .../usage/linter/rules/jest/no-identical-title.md | 10 +++++----- .../linter/rules/jest/no-interpolation-in-snapshots.md | 10 +++++----- .../usage/linter/rules/jest/no-jasmine-globals.md | 10 +++++----- .../usage/linter/rules/jest/no-large-snapshots.md | 10 +++++----- .../guide/usage/linter/rules/jest/no-mocks-import.md | 10 +++++----- .../linter/rules/jest/no-restricted-jest-methods.md | 10 +++++----- .../usage/linter/rules/jest/no-restricted-matchers.md | 10 +++++----- .../usage/linter/rules/jest/no-standalone-expect.md | 10 +++++----- .../guide/usage/linter/rules/jest/no-test-prefixes.md | 10 +++++----- .../linter/rules/jest/no-test-return-statement.md | 10 +++++----- .../usage/linter/rules/jest/no-untyped-mock-factory.md | 10 +++++----- .../linter/rules/jest/padding-around-test-blocks.md | 10 +++++----- .../usage/linter/rules/jest/prefer-called-with.md | 10 +++++----- .../linter/rules/jest/prefer-comparison-matcher.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/prefer-each.md | 10 +++++----- .../usage/linter/rules/jest/prefer-equality-matcher.md | 10 +++++----- .../usage/linter/rules/jest/prefer-expect-resolves.md | 10 +++++----- .../usage/linter/rules/jest/prefer-hooks-in-order.md | 10 +++++----- .../usage/linter/rules/jest/prefer-hooks-on-top.md | 10 +++++----- .../usage/linter/rules/jest/prefer-jest-mocked.md | 10 +++++----- .../usage/linter/rules/jest/prefer-lowercase-title.md | 10 +++++----- .../linter/rules/jest/prefer-mock-promise-shorthand.md | 10 +++++----- .../guide/usage/linter/rules/jest/prefer-spy-on.md | 10 +++++----- .../usage/linter/rules/jest/prefer-strict-equal.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/prefer-to-be.md | 10 +++++----- .../guide/usage/linter/rules/jest/prefer-to-contain.md | 10 +++++----- .../usage/linter/rules/jest/prefer-to-have-length.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/prefer-todo.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/require-hook.md | 10 +++++----- .../linter/rules/jest/require-to-throw-message.md | 10 +++++----- .../linter/rules/jest/require-top-level-describe.md | 10 +++++----- .../usage/linter/rules/jest/valid-describe-callback.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/valid-expect.md | 10 +++++----- src/docs/guide/usage/linter/rules/jest/valid-title.md | 10 +++++----- .../guide/usage/linter/rules/jsdoc/check-access.md | 10 +++++----- .../usage/linter/rules/jsdoc/check-property-names.md | 10 +++++----- .../guide/usage/linter/rules/jsdoc/check-tag-names.md | 10 +++++----- src/docs/guide/usage/linter/rules/jsdoc/empty-tags.md | 10 +++++----- .../usage/linter/rules/jsdoc/implements-on-classes.md | 10 +++++----- src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md | 10 +++++----- .../linter/rules/jsdoc/require-param-description.md | 10 +++++----- .../usage/linter/rules/jsdoc/require-param-name.md | 10 +++++----- .../usage/linter/rules/jsdoc/require-param-type.md | 10 +++++----- .../guide/usage/linter/rules/jsdoc/require-param.md | 10 +++++----- .../linter/rules/jsdoc/require-property-description.md | 10 +++++----- .../usage/linter/rules/jsdoc/require-property-name.md | 10 +++++----- .../usage/linter/rules/jsdoc/require-property-type.md | 10 +++++----- .../guide/usage/linter/rules/jsdoc/require-property.md | 10 +++++----- .../linter/rules/jsdoc/require-returns-description.md | 10 +++++----- .../usage/linter/rules/jsdoc/require-returns-type.md | 10 +++++----- .../guide/usage/linter/rules/jsdoc/require-returns.md | 10 +++++----- .../guide/usage/linter/rules/jsdoc/require-yields.md | 10 +++++----- src/docs/guide/usage/linter/rules/jsx_a11y/alt-text.md | 10 +++++----- .../linter/rules/jsx_a11y/anchor-ambiguous-text.md | 10 +++++----- .../usage/linter/rules/jsx_a11y/anchor-has-content.md | 10 +++++----- .../usage/linter/rules/jsx_a11y/anchor-is-valid.md | 10 +++++----- .../jsx_a11y/aria-activedescendant-has-tabindex.md | 10 +++++----- .../guide/usage/linter/rules/jsx_a11y/aria-props.md | 10 +++++----- .../guide/usage/linter/rules/jsx_a11y/aria-role.md | 10 +++++----- .../linter/rules/jsx_a11y/aria-unsupported-elements.md | 10 +++++----- .../usage/linter/rules/jsx_a11y/autocomplete-valid.md | 10 +++++----- .../rules/jsx_a11y/click-events-have-key-events.md | 10 +++++----- .../usage/linter/rules/jsx_a11y/heading-has-content.md | 10 +++++----- .../guide/usage/linter/rules/jsx_a11y/html-has-lang.md | 10 +++++----- .../usage/linter/rules/jsx_a11y/iframe-has-title.md | 10 +++++----- .../rules/jsx_a11y/label-has-associated-control.md | 10 +++++----- src/docs/guide/usage/linter/rules/jsx_a11y/lang.md | 10 +++++----- .../usage/linter/rules/jsx_a11y/media-has-caption.md | 10 +++++----- .../rules/jsx_a11y/mouse-events-have-key-events.md | 10 +++++----- .../guide/usage/linter/rules/jsx_a11y/no-access-key.md | 10 +++++----- .../rules/jsx_a11y/no-aria-hidden-on-focusable.md | 10 +++++----- .../guide/usage/linter/rules/jsx_a11y/no-autofocus.md | 10 +++++----- .../linter/rules/jsx_a11y/no-distracting-elements.md | 10 +++++----- .../rules/jsx_a11y/no-noninteractive-tabindex.md | 10 +++++----- .../usage/linter/rules/jsx_a11y/no-redundant-roles.md | 10 +++++----- .../linter/rules/jsx_a11y/prefer-tag-over-role.md | 10 +++++----- .../rules/jsx_a11y/role-has-required-aria-props.md | 10 +++++----- .../linter/rules/jsx_a11y/role-supports-aria-props.md | 10 +++++----- src/docs/guide/usage/linter/rules/jsx_a11y/scope.md | 10 +++++----- .../linter/rules/jsx_a11y/tabindex-no-positive.md | 10 +++++----- .../usage/linter/rules/nextjs/google-font-display.md | 10 +++++----- .../linter/rules/nextjs/google-font-preconnect.md | 10 +++++----- .../usage/linter/rules/nextjs/inline-script-id.md | 10 +++++----- .../usage/linter/rules/nextjs/next-script-for-ga.md | 10 +++++----- .../linter/rules/nextjs/no-assign-module-variable.md | 10 +++++----- .../linter/rules/nextjs/no-async-client-component.md | 10 +++++----- .../no-before-interactive-script-outside-document.md | 10 +++++----- .../guide/usage/linter/rules/nextjs/no-css-tags.md | 10 +++++----- .../linter/rules/nextjs/no-document-import-in-page.md | 10 +++++----- .../usage/linter/rules/nextjs/no-duplicate-head.md | 10 +++++----- .../guide/usage/linter/rules/nextjs/no-head-element.md | 10 +++++----- .../linter/rules/nextjs/no-head-import-in-document.md | 10 +++++----- .../linter/rules/nextjs/no-html-link-for-pages.md | 10 +++++----- .../guide/usage/linter/rules/nextjs/no-img-element.md | 10 +++++----- .../usage/linter/rules/nextjs/no-page-custom-font.md | 10 +++++----- .../linter/rules/nextjs/no-script-component-in-head.md | 10 +++++----- .../linter/rules/nextjs/no-styled-jsx-in-document.md | 10 +++++----- .../guide/usage/linter/rules/nextjs/no-sync-scripts.md | 10 +++++----- .../linter/rules/nextjs/no-title-in-document-head.md | 10 +++++----- src/docs/guide/usage/linter/rules/nextjs/no-typos.md | 10 +++++----- .../linter/rules/nextjs/no-unwanted-polyfillio.md | 10 +++++----- .../guide/usage/linter/rules/node/no-exports-assign.md | 10 +++++----- .../guide/usage/linter/rules/node/no-new-require.md | 10 +++++----- .../guide/usage/linter/rules/node/no-process-env.md | 10 +++++----- .../guide/usage/linter/rules/oxc/approx-constant.md | 10 +++++----- .../linter/rules/oxc/bad-array-method-on-arguments.md | 10 +++++----- .../usage/linter/rules/oxc/bad-bitwise-operator.md | 10 +++++----- .../usage/linter/rules/oxc/bad-char-at-comparison.md | 10 +++++----- .../usage/linter/rules/oxc/bad-comparison-sequence.md | 10 +++++----- .../guide/usage/linter/rules/oxc/bad-min-max-func.md | 10 +++++----- .../linter/rules/oxc/bad-object-literal-comparison.md | 10 +++++----- .../usage/linter/rules/oxc/bad-replace-all-arg.md | 10 +++++----- .../usage/linter/rules/oxc/branches-sharing-code.md | 10 +++++----- .../guide/usage/linter/rules/oxc/const-comparisons.md | 10 +++++----- .../guide/usage/linter/rules/oxc/double-comparisons.md | 10 +++++----- src/docs/guide/usage/linter/rules/oxc/erasing-op.md | 10 +++++----- .../usage/linter/rules/oxc/misrefactored-assign-op.md | 10 +++++----- src/docs/guide/usage/linter/rules/oxc/missing-throw.md | 10 +++++----- .../usage/linter/rules/oxc/no-accumulating-spread.md | 10 +++++----- .../guide/usage/linter/rules/oxc/no-async-await.md | 10 +++++----- .../linter/rules/oxc/no-async-endpoint-handlers.md | 10 +++++----- .../guide/usage/linter/rules/oxc/no-barrel-file.md | 10 +++++----- src/docs/guide/usage/linter/rules/oxc/no-const-enum.md | 10 +++++----- src/docs/guide/usage/linter/rules/oxc/no-map-spread.md | 10 +++++----- .../usage/linter/rules/oxc/no-optional-chaining.md | 10 +++++----- .../linter/rules/oxc/no-rest-spread-properties.md | 10 +++++----- .../usage/linter/rules/oxc/number-arg-out-of-range.md | 10 +++++----- .../usage/linter/rules/oxc/only-used-in-recursion.md | 10 +++++----- .../usage/linter/rules/oxc/uninvoked-array-callback.md | 10 +++++----- .../guide/usage/linter/rules/promise/always-return.md | 10 +++++----- src/docs/guide/usage/linter/rules/promise/avoid-new.md | 10 +++++----- .../usage/linter/rules/promise/catch-or-return.md | 10 +++++----- .../linter/rules/promise/no-callback-in-promise.md | 10 +++++----- .../usage/linter/rules/promise/no-multiple-resolved.md | 10 +++++----- .../guide/usage/linter/rules/promise/no-nesting.md | 10 +++++----- .../guide/usage/linter/rules/promise/no-new-statics.md | 10 +++++----- .../linter/rules/promise/no-promise-in-callback.md | 10 +++++----- .../usage/linter/rules/promise/no-return-in-finally.md | 10 +++++----- .../guide/usage/linter/rules/promise/no-return-wrap.md | 10 +++++----- .../guide/usage/linter/rules/promise/param-names.md | 10 +++++----- .../linter/rules/promise/prefer-await-to-callbacks.md | 10 +++++----- .../usage/linter/rules/promise/prefer-await-to-then.md | 10 +++++----- .../guide/usage/linter/rules/promise/prefer-catch.md | 10 +++++----- src/docs/guide/usage/linter/rules/promise/spec-only.md | 10 +++++----- .../guide/usage/linter/rules/promise/valid-params.md | 10 +++++----- .../guide/usage/linter/rules/react/button-has-type.md | 10 +++++----- .../react/checked-requires-onchange-or-readonly.md | 10 +++++----- .../guide/usage/linter/rules/react/exhaustive-deps.md | 10 +++++----- .../guide/usage/linter/rules/react/forbid-dom-props.md | 10 +++++----- .../guide/usage/linter/rules/react/forbid-elements.md | 10 +++++----- .../usage/linter/rules/react/forward-ref-uses-ref.md | 10 +++++----- .../usage/linter/rules/react/iframe-missing-sandbox.md | 10 +++++----- .../usage/linter/rules/react/jsx-boolean-value.md | 10 +++++----- .../linter/rules/react/jsx-curly-brace-presence.md | 10 +++++----- .../usage/linter/rules/react/jsx-filename-extension.md | 10 +++++----- .../guide/usage/linter/rules/react/jsx-fragments.md | 10 +++++----- .../usage/linter/rules/react/jsx-handler-names.md | 10 +++++----- src/docs/guide/usage/linter/rules/react/jsx-key.md | 10 +++++----- .../linter/rules/react/jsx-no-comment-textnodes.md | 10 +++++----- .../usage/linter/rules/react/jsx-no-duplicate-props.md | 10 +++++----- .../usage/linter/rules/react/jsx-no-script-url.md | 10 +++++----- .../usage/linter/rules/react/jsx-no-target-blank.md | 10 +++++----- .../guide/usage/linter/rules/react/jsx-no-undef.md | 10 +++++----- .../linter/rules/react/jsx-no-useless-fragment.md | 10 +++++----- .../guide/usage/linter/rules/react/jsx-pascal-case.md | 10 +++++----- .../linter/rules/react/jsx-props-no-spread-multi.md | 10 +++++----- .../usage/linter/rules/react/no-array-index-key.md | 10 +++++----- .../guide/usage/linter/rules/react/no-children-prop.md | 10 +++++----- .../linter/rules/react/no-danger-with-children.md | 10 +++++----- src/docs/guide/usage/linter/rules/react/no-danger.md | 10 +++++----- .../linter/rules/react/no-direct-mutation-state.md | 10 +++++----- .../guide/usage/linter/rules/react/no-find-dom-node.md | 10 +++++----- .../guide/usage/linter/rules/react/no-is-mounted.md | 10 +++++----- .../guide/usage/linter/rules/react/no-namespace.md | 10 +++++----- .../usage/linter/rules/react/no-render-return-value.md | 10 +++++----- .../guide/usage/linter/rules/react/no-set-state.md | 10 +++++----- .../guide/usage/linter/rules/react/no-string-refs.md | 10 +++++----- .../usage/linter/rules/react/no-unescaped-entities.md | 10 +++++----- .../usage/linter/rules/react/no-unknown-property.md | 10 +++++----- .../usage/linter/rules/react/only-export-components.md | 10 +++++----- .../guide/usage/linter/rules/react/prefer-es6-class.md | 10 +++++----- .../usage/linter/rules/react/react-in-jsx-scope.md | 10 +++++----- .../usage/linter/rules/react/require-render-return.md | 10 +++++----- .../guide/usage/linter/rules/react/rules-of-hooks.md | 10 +++++----- .../usage/linter/rules/react/self-closing-comp.md | 10 +++++----- .../usage/linter/rules/react/state-in-constructor.md | 10 +++++----- .../usage/linter/rules/react/style-prop-object.md | 10 +++++----- .../rules/react/void-dom-elements-no-children.md | 10 +++++----- .../linter/rules/react_perf/jsx-no-jsx-as-prop.md | 10 +++++----- .../rules/react_perf/jsx-no-new-array-as-prop.md | 10 +++++----- .../rules/react_perf/jsx-no-new-function-as-prop.md | 10 +++++----- .../rules/react_perf/jsx-no-new-object-as-prop.md | 10 +++++----- .../rules/typescript/adjacent-overload-signatures.md | 10 +++++----- .../guide/usage/linter/rules/typescript/array-type.md | 10 +++++----- .../usage/linter/rules/typescript/await-thenable.md | 10 +++++----- .../usage/linter/rules/typescript/ban-ts-comment.md | 10 +++++----- .../linter/rules/typescript/ban-tslint-comment.md | 10 +++++----- .../guide/usage/linter/rules/typescript/ban-types.md | 10 +++++----- .../typescript/consistent-generic-constructors.md | 10 +++++----- .../typescript/consistent-indexed-object-style.md | 10 +++++----- .../rules/typescript/consistent-type-definitions.md | 10 +++++----- .../linter/rules/typescript/consistent-type-imports.md | 10 +++++----- .../rules/typescript/explicit-function-return-type.md | 10 +++++----- .../rules/typescript/explicit-module-boundary-types.md | 10 +++++----- .../usage/linter/rules/typescript/no-array-delete.md | 10 +++++----- .../usage/linter/rules/typescript/no-base-to-string.md | 10 +++++----- .../typescript/no-confusing-non-null-assertion.md | 10 +++++----- .../rules/typescript/no-confusing-void-expression.md | 10 +++++----- .../usage/linter/rules/typescript/no-deprecated.md | 10 +++++----- .../rules/typescript/no-duplicate-enum-values.md | 10 +++++----- .../rules/typescript/no-duplicate-type-constituents.md | 10 +++++----- .../usage/linter/rules/typescript/no-dynamic-delete.md | 10 +++++----- .../linter/rules/typescript/no-empty-interface.md | 10 +++++----- .../linter/rules/typescript/no-empty-object-type.md | 10 +++++----- .../usage/linter/rules/typescript/no-explicit-any.md | 10 +++++----- .../rules/typescript/no-extra-non-null-assertion.md | 10 +++++----- .../linter/rules/typescript/no-extraneous-class.md | 10 +++++----- .../linter/rules/typescript/no-floating-promises.md | 10 +++++----- .../usage/linter/rules/typescript/no-for-in-array.md | 10 +++++----- .../usage/linter/rules/typescript/no-implied-eval.md | 10 +++++----- .../rules/typescript/no-import-type-side-effects.md | 10 +++++----- .../linter/rules/typescript/no-inferrable-types.md | 10 +++++----- .../rules/typescript/no-meaningless-void-operator.md | 10 +++++----- .../usage/linter/rules/typescript/no-misused-new.md | 10 +++++----- .../linter/rules/typescript/no-misused-promises.md | 10 +++++----- .../usage/linter/rules/typescript/no-misused-spread.md | 10 +++++----- .../usage/linter/rules/typescript/no-mixed-enums.md | 10 +++++----- .../usage/linter/rules/typescript/no-namespace.md | 10 +++++----- .../no-non-null-asserted-nullish-coalescing.md | 10 +++++----- .../typescript/no-non-null-asserted-optional-chain.md | 10 +++++----- .../linter/rules/typescript/no-non-null-assertion.md | 10 +++++----- .../rules/typescript/no-redundant-type-constituents.md | 10 +++++----- .../linter/rules/typescript/no-require-imports.md | 10 +++++----- .../linter/rules/typescript/no-restricted-types.md | 10 +++++----- .../usage/linter/rules/typescript/no-this-alias.md | 10 +++++----- .../no-unnecessary-boolean-literal-compare.md | 10 +++++----- .../no-unnecessary-parameter-property-assignment.md | 10 +++++----- .../typescript/no-unnecessary-template-expression.md | 10 +++++----- .../rules/typescript/no-unnecessary-type-arguments.md | 10 +++++----- .../rules/typescript/no-unnecessary-type-assertion.md | 10 +++++----- .../rules/typescript/no-unnecessary-type-constraint.md | 10 +++++----- .../linter/rules/typescript/no-unsafe-argument.md | 10 +++++----- .../linter/rules/typescript/no-unsafe-assignment.md | 10 +++++----- .../usage/linter/rules/typescript/no-unsafe-call.md | 10 +++++----- .../rules/typescript/no-unsafe-declaration-merging.md | 10 +++++----- .../rules/typescript/no-unsafe-enum-comparison.md | 10 +++++----- .../linter/rules/typescript/no-unsafe-function-type.md | 10 +++++----- .../linter/rules/typescript/no-unsafe-member-access.md | 10 +++++----- .../usage/linter/rules/typescript/no-unsafe-return.md | 10 +++++----- .../rules/typescript/no-unsafe-type-assertion.md | 10 +++++----- .../linter/rules/typescript/no-unsafe-unary-minus.md | 10 +++++----- .../linter/rules/typescript/no-useless-empty-export.md | 10 +++++----- .../usage/linter/rules/typescript/no-var-requires.md | 10 +++++----- .../linter/rules/typescript/no-wrapper-object-types.md | 10 +++++----- .../typescript/non-nullable-type-assertion-style.md | 10 +++++----- .../usage/linter/rules/typescript/only-throw-error.md | 10 +++++----- .../usage/linter/rules/typescript/prefer-as-const.md | 10 +++++----- .../rules/typescript/prefer-enum-initializers.md | 10 +++++----- .../usage/linter/rules/typescript/prefer-for-of.md | 10 +++++----- .../linter/rules/typescript/prefer-function-type.md | 10 +++++----- .../usage/linter/rules/typescript/prefer-includes.md | 10 +++++----- .../rules/typescript/prefer-literal-enum-member.md | 10 +++++----- .../rules/typescript/prefer-namespace-keyword.md | 10 +++++----- .../rules/typescript/prefer-promise-reject-errors.md | 10 +++++----- .../rules/typescript/prefer-reduce-type-parameter.md | 10 +++++----- .../linter/rules/typescript/prefer-return-this-type.md | 10 +++++----- .../linter/rules/typescript/prefer-ts-expect-error.md | 10 +++++----- .../linter/rules/typescript/promise-function-async.md | 10 +++++----- .../rules/typescript/related-getter-setter-pairs.md | 10 +++++----- .../rules/typescript/require-array-sort-compare.md | 10 +++++----- .../usage/linter/rules/typescript/require-await.md | 10 +++++----- .../linter/rules/typescript/restrict-plus-operands.md | 10 +++++----- .../rules/typescript/restrict-template-expressions.md | 10 +++++----- .../usage/linter/rules/typescript/return-await.md | 10 +++++----- .../rules/typescript/strict-boolean-expressions.md | 10 +++++----- .../rules/typescript/switch-exhaustiveness-check.md | 10 +++++----- .../linter/rules/typescript/triple-slash-reference.md | 10 +++++----- .../usage/linter/rules/typescript/unbound-method.md | 10 +++++----- .../use-unknown-in-catch-callback-variable.md | 10 +++++----- .../usage/linter/rules/unicorn/catch-error-name.md | 10 +++++----- .../usage/linter/rules/unicorn/consistent-assert.md | 10 +++++----- .../linter/rules/unicorn/consistent-date-clone.md | 10 +++++----- .../rules/unicorn/consistent-empty-array-spread.md | 10 +++++----- .../rules/unicorn/consistent-existence-index-check.md | 10 +++++----- .../rules/unicorn/consistent-function-scoping.md | 10 +++++----- .../usage/linter/rules/unicorn/empty-brace-spaces.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/error-message.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/escape-case.md | 10 +++++----- .../linter/rules/unicorn/explicit-length-check.md | 10 +++++----- .../usage/linter/rules/unicorn/new-for-builtins.md | 10 +++++----- .../linter/rules/unicorn/no-abusive-eslint-disable.md | 10 +++++----- .../linter/rules/unicorn/no-accessor-recursion.md | 10 +++++----- .../rules/unicorn/no-anonymous-default-export.md | 10 +++++----- .../rules/unicorn/no-array-callback-reference.md | 10 +++++----- .../usage/linter/rules/unicorn/no-array-for-each.md | 10 +++++----- .../rules/unicorn/no-array-method-this-argument.md | 10 +++++----- .../usage/linter/rules/unicorn/no-array-reduce.md | 10 +++++----- .../usage/linter/rules/unicorn/no-array-reverse.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/no-array-sort.md | 10 +++++----- .../linter/rules/unicorn/no-await-expression-member.md | 10 +++++----- .../rules/unicorn/no-await-in-promise-methods.md | 10 +++++----- .../usage/linter/rules/unicorn/no-console-spaces.md | 10 +++++----- .../usage/linter/rules/unicorn/no-document-cookie.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/no-empty-file.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/no-hex-escape.md | 10 +++++----- .../usage/linter/rules/unicorn/no-instanceof-array.md | 10 +++++----- .../linter/rules/unicorn/no-instanceof-builtins.md | 10 +++++----- .../linter/rules/unicorn/no-invalid-fetch-options.md | 10 +++++----- .../rules/unicorn/no-invalid-remove-event-listener.md | 10 +++++----- .../linter/rules/unicorn/no-length-as-slice-end.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/no-lonely-if.md | 10 +++++----- .../linter/rules/unicorn/no-magic-array-flat-depth.md | 10 +++++----- .../rules/unicorn/no-negation-in-equality-check.md | 10 +++++----- .../usage/linter/rules/unicorn/no-nested-ternary.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/no-new-array.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/no-new-buffer.md | 10 +++++----- src/docs/guide/usage/linter/rules/unicorn/no-null.md | 10 +++++----- .../rules/unicorn/no-object-as-default-parameter.md | 10 +++++----- .../usage/linter/rules/unicorn/no-process-exit.md | 10 +++++----- .../unicorn/no-single-promise-in-promise-methods.md | 10 +++++----- .../usage/linter/rules/unicorn/no-static-only-class.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/no-thenable.md | 10 +++++----- .../usage/linter/rules/unicorn/no-this-assignment.md | 10 +++++----- .../usage/linter/rules/unicorn/no-typeof-undefined.md | 10 +++++----- .../rules/unicorn/no-unnecessary-array-flat-depth.md | 10 +++++----- .../rules/unicorn/no-unnecessary-array-splice-count.md | 10 +++++----- .../usage/linter/rules/unicorn/no-unnecessary-await.md | 10 +++++----- .../linter/rules/unicorn/no-unnecessary-slice-end.md | 10 +++++----- .../rules/unicorn/no-unreadable-array-destructuring.md | 10 +++++----- .../usage/linter/rules/unicorn/no-unreadable-iife.md | 10 +++++----- .../rules/unicorn/no-useless-collection-argument.md | 10 +++++----- .../unicorn/no-useless-error-capture-stack-trace.md | 10 +++++----- .../rules/unicorn/no-useless-fallback-in-spread.md | 10 +++++----- .../linter/rules/unicorn/no-useless-length-check.md | 10 +++++----- .../rules/unicorn/no-useless-promise-resolve-reject.md | 10 +++++----- .../usage/linter/rules/unicorn/no-useless-spread.md | 10 +++++----- .../linter/rules/unicorn/no-useless-switch-case.md | 10 +++++----- .../usage/linter/rules/unicorn/no-useless-undefined.md | 10 +++++----- .../usage/linter/rules/unicorn/no-zero-fractions.md | 10 +++++----- .../usage/linter/rules/unicorn/number-literal-case.md | 10 +++++----- .../linter/rules/unicorn/numeric-separators-style.md | 10 +++++----- .../linter/rules/unicorn/prefer-add-event-listener.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-array-find.md | 10 +++++----- .../linter/rules/unicorn/prefer-array-flat-map.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-array-flat.md | 10 +++++----- .../linter/rules/unicorn/prefer-array-index-of.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-array-some.md | 10 +++++----- src/docs/guide/usage/linter/rules/unicorn/prefer-at.md | 10 +++++----- .../linter/rules/unicorn/prefer-bigint-literals.md | 10 +++++----- .../rules/unicorn/prefer-blob-reading-methods.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-class-fields.md | 10 +++++----- .../linter/rules/unicorn/prefer-classlist-toggle.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-code-point.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-date-now.md | 10 +++++----- .../linter/rules/unicorn/prefer-dom-node-append.md | 10 +++++----- .../linter/rules/unicorn/prefer-dom-node-dataset.md | 10 +++++----- .../linter/rules/unicorn/prefer-dom-node-remove.md | 10 +++++----- .../rules/unicorn/prefer-dom-node-text-content.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-event-target.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-global-this.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-includes.md | 10 +++++----- .../unicorn/prefer-logical-operator-over-ternary.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-math-min-max.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-math-trunc.md | 10 +++++----- .../linter/rules/unicorn/prefer-modern-dom-apis.md | 10 +++++----- .../linter/rules/unicorn/prefer-modern-math-apis.md | 10 +++++----- .../rules/unicorn/prefer-native-coercion-functions.md | 10 +++++----- .../linter/rules/unicorn/prefer-negative-index.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-node-protocol.md | 10 +++++----- .../linter/rules/unicorn/prefer-number-properties.md | 10 +++++----- .../linter/rules/unicorn/prefer-object-from-entries.md | 10 +++++----- .../rules/unicorn/prefer-optional-catch-binding.md | 10 +++++----- .../linter/rules/unicorn/prefer-prototype-methods.md | 10 +++++----- .../linter/rules/unicorn/prefer-query-selector.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-reflect-apply.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-regexp-test.md | 10 +++++----- .../rules/unicorn/prefer-response-static-json.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/prefer-set-has.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-set-size.md | 10 +++++----- .../guide/usage/linter/rules/unicorn/prefer-spread.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-string-raw.md | 10 +++++----- .../linter/rules/unicorn/prefer-string-replace-all.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-string-slice.md | 10 +++++----- .../rules/unicorn/prefer-string-starts-ends-with.md | 10 +++++----- .../rules/unicorn/prefer-string-trim-start-end.md | 10 +++++----- .../linter/rules/unicorn/prefer-structured-clone.md | 10 +++++----- .../linter/rules/unicorn/prefer-top-level-await.md | 10 +++++----- .../usage/linter/rules/unicorn/prefer-type-error.md | 10 +++++----- .../rules/unicorn/require-array-join-separator.md | 10 +++++----- .../linter/rules/unicorn/require-module-specifiers.md | 10 +++++----- .../unicorn/require-number-to-fixed-digits-argument.md | 10 +++++----- .../unicorn/require-post-message-target-origin.md | 10 +++++----- .../usage/linter/rules/unicorn/switch-case-braces.md | 10 +++++----- .../rules/unicorn/text-encoding-identifier-case.md | 10 +++++----- .../usage/linter/rules/unicorn/throw-new-error.md | 10 +++++----- .../usage/linter/rules/vitest/no-conditional-tests.md | 10 +++++----- .../usage/linter/rules/vitest/no-import-node-test.md | 10 +++++----- .../usage/linter/rules/vitest/prefer-to-be-falsy.md | 10 +++++----- .../usage/linter/rules/vitest/prefer-to-be-object.md | 10 +++++----- .../usage/linter/rules/vitest/prefer-to-be-truthy.md | 10 +++++----- ...uire-local-test-context-for-concurrent-snapshots.md | 10 +++++----- .../usage/linter/rules/vue/define-emits-declaration.md | 10 +++++----- .../usage/linter/rules/vue/define-props-declaration.md | 10 +++++----- .../linter/rules/vue/define-props-destructuring.md | 10 +++++----- src/docs/guide/usage/linter/rules/vue/max-props.md | 10 +++++----- .../linter/rules/vue/no-export-in-script-setup.md | 10 +++++----- .../linter/rules/vue/no-import-compiler-macros.md | 10 +++++----- .../usage/linter/rules/vue/no-multiple-slot-args.md | 10 +++++----- .../linter/rules/vue/no-required-prop-with-default.md | 10 +++++----- .../usage/linter/rules/vue/prefer-import-from-vue.md | 10 +++++----- .../usage/linter/rules/vue/require-default-export.md | 10 +++++----- .../guide/usage/linter/rules/vue/require-typed-ref.md | 10 +++++----- .../guide/usage/linter/rules/vue/valid-define-emits.md | 10 +++++----- .../guide/usage/linter/rules/vue/valid-define-props.md | 10 +++++----- 615 files changed, 3075 insertions(+), 3075 deletions(-) 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 29f23af557..467198baaa 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 @@ -65,14 +65,10 @@ When set to true, rule will also report forEach callbacks that return a value. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny array-callback-return -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -81,6 +77,10 @@ oxlint --deny array-callback-return } ``` +```bash [CLI] +oxlint --deny array-callback-return +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/arrow-body-style.md b/src/docs/guide/usage/linter/rules/eslint/arrow-body-style.md index 00bd434374..1cc64f9cd1 100644 --- a/src/docs/guide/usage/linter/rules/eslint/arrow-body-style.md +++ b/src/docs/guide/usage/linter/rules/eslint/arrow-body-style.md @@ -160,14 +160,10 @@ const bar = () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny arrow-body-style -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -176,6 +172,10 @@ oxlint --deny arrow-body-style } ``` +```bash [CLI] +oxlint --deny arrow-body-style +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/block-scoped-var.md b/src/docs/guide/usage/linter/rules/eslint/block-scoped-var.md index fdc7b25a24..970dd02e05 100644 --- a/src/docs/guide/usage/linter/rules/eslint/block-scoped-var.md +++ b/src/docs/guide/usage/linter/rules/eslint/block-scoped-var.md @@ -107,14 +107,10 @@ function doTry() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny block-scoped-var -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -123,6 +119,10 @@ oxlint --deny block-scoped-var } ``` +```bash [CLI] +oxlint --deny block-scoped-var +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/class-methods-use-this.md b/src/docs/guide/usage/linter/rules/eslint/class-methods-use-this.md index a39d21f6b9..c007752668 100644 --- a/src/docs/guide/usage/linter/rules/eslint/class-methods-use-this.md +++ b/src/docs/guide/usage/linter/rules/eslint/class-methods-use-this.md @@ -98,14 +98,10 @@ Whether to ignore methods that are overridden. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny class-methods-use-this -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -114,6 +110,10 @@ oxlint --deny class-methods-use-this } ``` +```bash [CLI] +oxlint --deny class-methods-use-this +``` + ::: ## References 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 cc14f69ca2..d2872c3858 100644 --- a/src/docs/guide/usage/linter/rules/eslint/constructor-super.md +++ b/src/docs/guide/usage/linter/rules/eslint/constructor-super.md @@ -77,14 +77,10 @@ class C extends D { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny constructor-super -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -93,6 +89,10 @@ oxlint --deny constructor-super } ``` +```bash [CLI] +oxlint --deny constructor-super +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/curly.md b/src/docs/guide/usage/linter/rules/eslint/curly.md index 1bd76482cf..1e2bd3a56f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/curly.md +++ b/src/docs/guide/usage/linter/rules/eslint/curly.md @@ -256,14 +256,10 @@ Which type of curly brace enforcement to use. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny curly -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -272,6 +268,10 @@ oxlint --deny curly } ``` +```bash [CLI] +oxlint --deny curly +``` + ::: ## References 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 39ba4c1ca8..e5f392c782 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 @@ -83,14 +83,10 @@ switch (foo) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny default-case-last -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -99,6 +95,10 @@ oxlint --deny default-case-last } ``` +```bash [CLI] +oxlint --deny default-case-last +``` + ::: ## References 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 33bc2855f2..f7fb420c7e 100644 --- a/src/docs/guide/usage/linter/rules/eslint/default-case.md +++ b/src/docs/guide/usage/linter/rules/eslint/default-case.md @@ -101,14 +101,10 @@ switch (a) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny default-case -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -117,6 +113,10 @@ oxlint --deny default-case } ``` +```bash [CLI] +oxlint --deny default-case +``` + ::: ## References 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 578d0f4e83..cf8122ee57 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 @@ -71,14 +71,10 @@ function combine(a: number, b?: number, c: number = 3) {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny default-param-last -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -87,6 +83,10 @@ oxlint --deny default-param-last } ``` +```bash [CLI] +oxlint --deny default-param-last +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md b/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md index 1f82b2f3a8..b11e72952c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md +++ b/src/docs/guide/usage/linter/rules/eslint/eqeqeq.md @@ -174,14 +174,10 @@ type: `"always" | "never" | "ignore"` ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny eqeqeq -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -190,6 +186,10 @@ oxlint --deny eqeqeq } ``` +```bash [CLI] +oxlint --deny eqeqeq +``` + ::: ## References 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 8982ca2bf8..5ed3e1ed84 100644 --- a/src/docs/guide/usage/linter/rules/eslint/for-direction.md +++ b/src/docs/guide/usage/linter/rules/eslint/for-direction.md @@ -75,14 +75,10 @@ for (let i = MIN; i <= MAX; i -= 0) { // not increasing or decreasing ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny for-direction -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -91,6 +87,10 @@ oxlint --deny for-direction } ``` +```bash [CLI] +oxlint --deny for-direction +``` + ::: ## References 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 b53b2e32a8..58d45aab2d 100644 --- a/src/docs/guide/usage/linter/rules/eslint/func-names.md +++ b/src/docs/guide/usage/linter/rules/eslint/func-names.md @@ -192,14 +192,10 @@ const foo = bar(function* baz() {}); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny func-names -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -208,6 +204,10 @@ oxlint --deny func-names } ``` +```bash [CLI] +oxlint --deny func-names +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/func-style.md b/src/docs/guide/usage/linter/rules/eslint/func-style.md index 4a19eaab53..3065f9d14c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/func-style.md +++ b/src/docs/guide/usage/linter/rules/eslint/func-style.md @@ -182,14 +182,10 @@ The style to enforce. Either "expression" (default) or "declaration". ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny func-style -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -198,6 +194,10 @@ oxlint --deny func-style } ``` +```bash [CLI] +oxlint --deny func-style +``` + ::: ## References 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 14eea03cb6..d319d6022f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/getter-return.md +++ b/src/docs/guide/usage/linter/rules/eslint/getter-return.md @@ -63,14 +63,10 @@ When set to `true`, allows getters to implicitly return `undefined` with a `retu ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny getter-return -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -79,6 +75,10 @@ oxlint --deny getter-return } ``` +```bash [CLI] +oxlint --deny getter-return +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/grouped-accessor-pairs.md b/src/docs/guide/usage/linter/rules/eslint/grouped-accessor-pairs.md index 5a4d04b780..5fd88a1bfd 100644 --- a/src/docs/guide/usage/linter/rules/eslint/grouped-accessor-pairs.md +++ b/src/docs/guide/usage/linter/rules/eslint/grouped-accessor-pairs.md @@ -162,14 +162,10 @@ A string value to control the order of the getter/setter pairs: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny grouped-accessor-pairs -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -178,6 +174,10 @@ oxlint --deny grouped-accessor-pairs } ``` +```bash [CLI] +oxlint --deny grouped-accessor-pairs +``` + ::: ## References 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 0f377b9d7f..baecf63cb8 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 @@ -58,14 +58,10 @@ for (key in foo) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny guard-for-in -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -74,6 +70,10 @@ oxlint --deny guard-for-in } ``` +```bash [CLI] +oxlint --deny guard-for-in +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/id-length.md b/src/docs/guide/usage/linter/rules/eslint/id-length.md index 72a71b63b8..99f89dad5c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/id-length.md +++ b/src/docs/guide/usage/linter/rules/eslint/id-length.md @@ -161,14 +161,10 @@ When set to `"always"` (default), property names are checked just like other ide ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny id-length -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -177,6 +173,10 @@ oxlint --deny id-length } ``` +```bash [CLI] +oxlint --deny id-length +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/init-declarations.md b/src/docs/guide/usage/linter/rules/eslint/init-declarations.md index 844ac52986..02fa128b60 100644 --- a/src/docs/guide/usage/linter/rules/eslint/init-declarations.md +++ b/src/docs/guide/usage/linter/rules/eslint/init-declarations.md @@ -103,14 +103,10 @@ When set to `"never"`, disallows initialization during declaration. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny init-declarations -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -119,6 +115,10 @@ oxlint --deny init-declarations } ``` +```bash [CLI] +oxlint --deny init-declarations +``` + ::: ## References 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 234a79b7b3..4ea509b5ea 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 @@ -60,14 +60,10 @@ The maximum number of classes allowed per file. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny max-classes-per-file -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -76,6 +72,10 @@ oxlint --deny max-classes-per-file } ``` +```bash [CLI] +oxlint --deny max-classes-per-file +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/max-depth.md b/src/docs/guide/usage/linter/rules/eslint/max-depth.md index 554988decc..095312a5f6 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-depth.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-depth.md @@ -101,14 +101,10 @@ type: `integer` ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny max-depth -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -117,6 +113,10 @@ oxlint --deny max-depth } ``` +```bash [CLI] +oxlint --deny max-depth +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/max-lines-per-function.md b/src/docs/guide/usage/linter/rules/eslint/max-lines-per-function.md index fb0384c126..d50fd93403 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-lines-per-function.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-lines-per-function.md @@ -97,14 +97,10 @@ Skip lines containing just comments. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny max-lines-per-function -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -113,6 +109,10 @@ oxlint --deny max-lines-per-function } ``` +```bash [CLI] +oxlint --deny max-lines-per-function +``` + ::: ## References 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 f2ece86fba..138b6e0f76 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-lines.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-lines.md @@ -52,14 +52,10 @@ Whether to ignore comments when counting. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny max-lines -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -68,6 +64,10 @@ oxlint --deny max-lines } ``` +```bash [CLI] +oxlint --deny max-lines +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/max-nested-callbacks.md b/src/docs/guide/usage/linter/rules/eslint/max-nested-callbacks.md index c8bd8f46a4..df63a8d43e 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-nested-callbacks.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-nested-callbacks.md @@ -75,14 +75,10 @@ The `max` enforces a maximum depth that callbacks can be nested. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny max-nested-callbacks -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -91,6 +87,10 @@ oxlint --deny max-nested-callbacks } ``` +```bash [CLI] +oxlint --deny max-nested-callbacks +``` + ::: ## References 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 c33493b76c..a9af99b08c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/max-params.md +++ b/src/docs/guide/usage/linter/rules/eslint/max-params.md @@ -78,14 +78,10 @@ Maximum number of parameters allowed in function definitions. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny max-params -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -94,6 +90,10 @@ oxlint --deny max-params } ``` +```bash [CLI] +oxlint --deny max-params +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/new-cap.md b/src/docs/guide/usage/linter/rules/eslint/new-cap.md index ccf56bf046..3551b76129 100644 --- a/src/docs/guide/usage/linter/rules/eslint/new-cap.md +++ b/src/docs/guide/usage/linter/rules/eslint/new-cap.md @@ -383,14 +383,10 @@ default: `true` ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny new-cap -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -399,6 +395,10 @@ oxlint --deny new-cap } ``` +```bash [CLI] +oxlint --deny new-cap +``` + ::: ## References 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 5abac76006..5c0143cf4a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-alert.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-alert.md @@ -48,14 +48,10 @@ function foo() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-alert -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -64,6 +60,10 @@ oxlint --deny no-alert } ``` +```bash [CLI] +oxlint --deny no-alert +``` + ::: ## References 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 fd27e87d6e..34b9729876 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 @@ -44,14 +44,10 @@ let arr3 = new Array(9); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-array-constructor -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -60,6 +56,10 @@ oxlint --deny no-array-constructor } ``` +```bash [CLI] +oxlint --deny no-array-constructor +``` + ::: ## References 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 3054dd9e17..d7d7e89a06 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 @@ -81,14 +81,10 @@ const result = Promise.resolve(foo); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-async-promise-executor -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -97,6 +93,10 @@ oxlint --deny no-async-promise-executor } ``` +```bash [CLI] +oxlint --deny no-async-promise-executor +``` + ::: ## References 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 2dfef79107..82d667cfc7 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 @@ -41,14 +41,10 @@ async function good() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-await-in-loop -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -57,6 +53,10 @@ oxlint --deny no-await-in-loop } ``` +```bash [CLI] +oxlint --deny no-await-in-loop +``` + ::: ## References 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 0c940cbb96..ed8125894d 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-bitwise.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-bitwise.md @@ -86,14 +86,10 @@ const b = a | 0; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-bitwise -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -102,6 +98,10 @@ oxlint --deny no-bitwise } ``` +```bash [CLI] +oxlint --deny no-bitwise +``` + ::: ## References 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 bd28536fe1..126f0c10bc 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-caller.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-caller.md @@ -70,14 +70,10 @@ function foo(n) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-caller -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -86,6 +82,10 @@ oxlint --deny no-caller } ``` +```bash [CLI] +oxlint --deny no-caller +``` + ::: ## References 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 a0b5455374..07301b6d48 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 @@ -64,14 +64,10 @@ switch (foo) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-case-declarations -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -80,6 +76,10 @@ oxlint --deny no-case-declarations } ``` +```bash [CLI] +oxlint --deny no-case-declarations +``` + ::: ## References 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 0fc30d3d15..0b7f66e2df 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 @@ -78,14 +78,10 @@ class A { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-class-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -94,6 +90,10 @@ oxlint --deny no-class-assign } ``` +```bash [CLI] +oxlint --deny no-class-assign +``` + ::: ## References 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 45308106ed..0f5bc1c42d 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 @@ -64,14 +64,10 @@ if (0 > x) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-compare-neg-zero -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -80,6 +76,10 @@ oxlint --deny no-compare-neg-zero } ``` +```bash [CLI] +oxlint --deny no-compare-neg-zero +``` + ::: ## References 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 d812fc242c..f09f822c59 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 @@ -61,14 +61,10 @@ Disallow all assignments in conditional expressions. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-cond-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -77,6 +73,10 @@ oxlint --deny no-cond-assign } ``` +```bash [CLI] +oxlint --deny no-cond-assign +``` + ::: ## References 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 42bac1c0d6..81128f4b33 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-console.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-console.md @@ -72,14 +72,10 @@ console.info("foo"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-console -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -88,6 +84,10 @@ oxlint --deny no-console } ``` +```bash [CLI] +oxlint --deny no-console +``` + ::: ## References 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 ac09e9b70b..2c207c89a7 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 @@ -49,14 +49,10 @@ b += 1; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-const-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -65,6 +61,10 @@ oxlint --deny no-const-assign } ``` +```bash [CLI] +oxlint --deny no-const-assign +``` + ::: ## References 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 f7dee29377..65bb2f3bf2 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 @@ -55,14 +55,10 @@ const isEmpty = x.length === 0; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-constant-binary-expression -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -71,6 +67,10 @@ oxlint --deny no-constant-binary-expression } ``` +```bash [CLI] +oxlint --deny no-constant-binary-expression +``` + ::: ## References 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 d1b509dfbd..b68002e7f1 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 @@ -78,14 +78,10 @@ Configuration option to specify whether to check for constant conditions in loop ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-constant-condition -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -94,6 +90,10 @@ oxlint --deny no-constant-condition } ``` +```bash [CLI] +oxlint --deny no-constant-condition +``` + ::: ## References 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 1d958c7c2f..8975600329 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 @@ -43,14 +43,10 @@ class C { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-constructor-return -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -59,6 +55,10 @@ oxlint --deny no-constructor-return } ``` +```bash [CLI] +oxlint --deny no-constructor-return +``` + ::: ## References 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 d4e733b1e2..d38574a147 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-continue.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-continue.md @@ -48,14 +48,10 @@ for (i = 0; i < 10; i++) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-continue -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -64,6 +60,10 @@ oxlint --deny no-continue } ``` +```bash [CLI] +oxlint --deny no-continue +``` + ::: ## References 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 4f86990499..c3d3d81db6 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 @@ -54,14 +54,10 @@ var pattern8 = new RegExp("\\n"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-control-regex -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -70,6 +66,10 @@ oxlint --deny no-control-regex } ``` +```bash [CLI] +oxlint --deny no-control-regex +``` + ::: ## References 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 c8fc03a5e4..9f2f2962f0 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-debugger.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-debugger.md @@ -48,14 +48,10 @@ async function main() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-debugger -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -64,6 +60,10 @@ oxlint --deny no-debugger } ``` +```bash [CLI] +oxlint --deny no-debugger +``` + ::: ## References 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 5bc036f1a6..aff250fc3f 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 @@ -43,14 +43,10 @@ delete y.prop; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-delete-var -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -59,6 +55,10 @@ oxlint --deny no-delete-var } ``` +```bash [CLI] +oxlint --deny no-delete-var +``` + ::: ## References 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 04abf7ae77..0f4cc68c6c 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 @@ -42,14 +42,10 @@ function bar() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-div-regex -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -58,6 +54,10 @@ oxlint --deny no-div-regex } ``` +```bash [CLI] +oxlint --deny no-div-regex +``` + ::: ## References 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 f0347a94f7..769bf84215 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 @@ -51,14 +51,10 @@ a.foo(); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-dupe-class-members -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -67,6 +63,10 @@ oxlint --deny no-dupe-class-members } ``` +```bash [CLI] +oxlint --deny no-dupe-class-members +``` + ::: ## References 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 1bc3d192fa..a036008d39 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 @@ -95,14 +95,10 @@ if (n === 1) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-dupe-else-if -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -111,6 +107,10 @@ oxlint --deny no-dupe-else-if } ``` +```bash [CLI] +oxlint --deny no-dupe-else-if +``` + ::: ## References 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 e3770d35ff..66e12c88e3 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 @@ -57,14 +57,10 @@ var foo = { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-dupe-keys -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -73,6 +69,10 @@ oxlint --deny no-dupe-keys } ``` +```bash [CLI] +oxlint --deny no-dupe-keys +``` + ::: ## References 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 e95336a167..2f04e75159 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 @@ -77,14 +77,10 @@ switch (a) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-duplicate-case -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -93,6 +89,10 @@ oxlint --deny no-duplicate-case } ``` +```bash [CLI] +oxlint --deny no-duplicate-case +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md b/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md index 28a6c7db95..42684276ac 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-duplicate-imports.md @@ -109,14 +109,10 @@ export * from "module"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-duplicate-imports -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -125,6 +121,10 @@ oxlint --deny no-duplicate-imports } ``` +```bash [CLI] +oxlint --deny no-duplicate-imports +``` + ::: ## References 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 85c8685b22..c5b63168a4 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 @@ -176,14 +176,10 @@ function foo() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-else-return -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -192,6 +188,10 @@ oxlint --deny no-else-return } ``` +```bash [CLI] +oxlint --deny no-else-return +``` + ::: ## References 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 d8378932d1..da437f9c4e 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 @@ -38,14 +38,10 @@ var foo2 = /^abc[123]/; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-empty-character-class -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -54,6 +50,10 @@ oxlint --deny no-empty-character-class } ``` +```bash [CLI] +oxlint --deny no-empty-character-class +``` + ::: ## References 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 f3d5b879dd..2805a2546c 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 @@ -98,14 +98,10 @@ class Foo { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-empty-function -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -114,6 +110,10 @@ oxlint --deny no-empty-function } ``` +```bash [CLI] +oxlint --deny no-empty-function +``` + ::: ## References 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 a634269710..477ed32b38 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 @@ -71,14 +71,10 @@ function foo({ a = [] }) {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-empty-pattern -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -87,6 +83,10 @@ oxlint --deny no-empty-pattern } ``` +```bash [CLI] +oxlint --deny no-empty-pattern +``` + ::: ## References 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 669dbe3f9d..604a446c66 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 @@ -54,14 +54,10 @@ class Bar { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-empty-static-block -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -70,6 +66,10 @@ oxlint --deny no-empty-static-block } ``` +```bash [CLI] +oxlint --deny no-empty-static-block +``` + ::: ## References 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 a4b23afae1..9210643e41 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-empty.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-empty.md @@ -53,14 +53,10 @@ If set to `true`, allows an empty `catch` block without triggering the linter. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-empty -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -69,6 +65,10 @@ oxlint --deny no-empty } ``` +```bash [CLI] +oxlint --deny no-empty +``` + ::: ## References 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 b8d655ebd4..df709ad133 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 @@ -54,14 +54,10 @@ if (bang === undefined) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-eq-null -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -70,6 +66,10 @@ oxlint --deny no-eq-null } ``` +```bash [CLI] +oxlint --deny no-eq-null +``` + ::: ## References 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 263989c082..92b9d951f1 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-eval.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-eval.md @@ -85,14 +85,10 @@ compared to direct calls, as they do not invoke JavaScript's scope chain. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-eval -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -101,6 +97,10 @@ oxlint --deny no-eval } ``` +```bash [CLI] +oxlint --deny no-eval +``` + ::: ## References 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 96c8c39b03..d037dddac5 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 @@ -49,14 +49,10 @@ try { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-ex-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -65,6 +61,10 @@ oxlint --deny no-ex-assign } ``` +```bash [CLI] +oxlint --deny no-ex-assign +``` + ::: ## References 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 2998977dbc..8703dd59f1 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 @@ -67,14 +67,10 @@ A list of objects which are allowed to be exceptions to the rule. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-extend-native -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -83,6 +79,10 @@ oxlint --deny no-extend-native } ``` +```bash [CLI] +oxlint --deny no-extend-native +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-extra-bind.md b/src/docs/guide/usage/linter/rules/eslint/no-extra-bind.md index 68dfc68dc7..bff64ad5cc 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-extra-bind.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-extra-bind.md @@ -51,14 +51,10 @@ const y = function(a) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-extra-bind -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -67,6 +63,10 @@ oxlint --deny no-extra-bind } ``` +```bash [CLI] +oxlint --deny no-extra-bind +``` + ::: ## References 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 3bca52c2de..2aa419c915 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 @@ -71,14 +71,10 @@ cast inside inner expressions. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-extra-boolean-cast -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -87,6 +83,10 @@ oxlint --deny no-extra-boolean-cast } ``` +```bash [CLI] +oxlint --deny no-extra-boolean-cast +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md b/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md index 7d41a75570..9fb868a497 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-extra-label.md @@ -86,14 +86,10 @@ C: switch (a) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-extra-label -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -102,6 +98,10 @@ oxlint --deny no-extra-label } ``` +```bash [CLI] +oxlint --deny no-extra-label +``` + ::: ## References 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 567a62cb31..3ffc84e9ad 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-fallthrough.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-fallthrough.md @@ -212,14 +212,10 @@ Whether to report unused fallthrough comments. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-fallthrough -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -228,6 +224,10 @@ oxlint --deny no-fallthrough } ``` +```bash [CLI] +oxlint --deny no-fallthrough +``` + ::: ## References 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 78470f3a3f..14eb0cffe9 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 @@ -64,14 +64,10 @@ function qux() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-func-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -80,6 +76,10 @@ oxlint --deny no-func-assign } ``` +```bash [CLI] +oxlint --deny no-func-assign +``` + ::: ## References 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 9b0ae05680..3058c7456b 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 @@ -44,14 +44,10 @@ Globals listed here can be assigned to without triggering warnings. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-global-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -60,6 +56,10 @@ oxlint --deny no-global-assign } ``` +```bash [CLI] +oxlint --deny no-global-assign +``` + ::: ## References 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 c1b1623b19..0f5aa22459 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 @@ -39,14 +39,10 @@ Object.assign(mod_ns, { foo: "foo" }); // ERROR: The members of 'mod_ns' are rea ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-import-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -55,6 +51,10 @@ oxlint --deny no-import-assign } ``` +```bash [CLI] +oxlint --deny no-import-assign +``` + ::: ## References 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 b46b775e2e..355585380a 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 @@ -77,14 +77,10 @@ Disallows function and var declarations in nested blocks. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-inner-declarations -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -93,6 +89,10 @@ oxlint --deny no-inner-declarations } ``` +```bash [CLI] +oxlint --deny no-inner-declarations +``` + ::: ## References 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 0f0494b358..571b283769 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 @@ -54,14 +54,10 @@ Case-sensitive array of flags that will be allowed. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-invalid-regexp -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -70,6 +66,10 @@ oxlint --deny no-invalid-regexp } ``` +```bash [CLI] +oxlint --deny no-invalid-regexp +``` + ::: ## References 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 b7b6cef5ad..8704d2adcb 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 @@ -44,14 +44,10 @@ function example() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-irregular-whitespace -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -60,6 +56,10 @@ oxlint --deny no-irregular-whitespace } ``` +```bash [CLI] +oxlint --deny no-irregular-whitespace +``` + ::: ## References 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 e1834a43ea..d9aa7afe04 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-iterator.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-iterator.md @@ -57,14 +57,10 @@ Foo.prototype[Symbol.iterator] = function() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-iterator -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -73,6 +69,10 @@ oxlint --deny no-iterator } ``` +```bash [CLI] +oxlint --deny no-iterator +``` + ::: ## References 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 b4e1139b1f..7c31294a17 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 @@ -52,14 +52,10 @@ function bar() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-label-var -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -68,6 +64,10 @@ oxlint --deny no-label-var } ``` +```bash [CLI] +oxlint --deny no-label-var +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-labels.md b/src/docs/guide/usage/linter/rules/eslint/no-labels.md index b6fdb5d7e9..0b24b0813b 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-labels.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-labels.md @@ -122,14 +122,10 @@ switch (a) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-labels -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -138,6 +134,10 @@ oxlint --deny no-labels } ``` +```bash [CLI] +oxlint --deny no-labels +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md b/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md index ccb8566925..26857a38f5 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-lone-blocks.md @@ -43,14 +43,10 @@ if (condition) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-lone-blocks -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -59,6 +55,10 @@ oxlint --deny no-lone-blocks } ``` +```bash [CLI] +oxlint --deny no-lone-blocks +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-lonely-if.md b/src/docs/guide/usage/linter/rules/eslint/no-lonely-if.md index 879833ae88..67981d0e4e 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-lonely-if.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-lonely-if.md @@ -81,14 +81,10 @@ if (condition) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-lonely-if -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -97,6 +93,10 @@ oxlint --deny no-lonely-if } ``` +```bash [CLI] +oxlint --deny no-lonely-if +``` + ::: ## References 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 464b0c8e92..06f7b2aa90 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 @@ -76,14 +76,10 @@ var x = 0x1FFF_FFFF_FFF_FFF; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-loss-of-precision -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -92,6 +88,10 @@ oxlint --deny no-loss-of-precision } ``` +```bash [CLI] +oxlint --deny no-loss-of-precision +``` + ::: ## References 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 954f84a124..af40866492 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 @@ -223,14 +223,10 @@ When true, numeric literals used to index TypeScript types are ignored. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-magic-numbers -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -239,6 +235,10 @@ oxlint --deny no-magic-numbers } ``` +```bash [CLI] +oxlint --deny no-magic-numbers +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-misleading-character-class.md b/src/docs/guide/usage/linter/rules/eslint/no-misleading-character-class.md index e558bc2f66..9d9f3a6876 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-misleading-character-class.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-misleading-character-class.md @@ -89,14 +89,10 @@ new RegExp("[\\u{1F1EF}\\u{1F1F5}]", "u"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-misleading-character-class -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -105,6 +101,10 @@ oxlint --deny no-misleading-character-class } ``` +```bash [CLI] +oxlint --deny no-misleading-character-class +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md b/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md index 6016785b04..56058fff43 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-multi-assign.md @@ -104,14 +104,10 @@ class Foo { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-multi-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -120,6 +116,10 @@ oxlint --deny no-multi-assign } ``` +```bash [CLI] +oxlint --deny no-multi-assign +``` + ::: ## References 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 b7b4e68f60..d02ff0500d 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 @@ -30,14 +30,10 @@ var x = "Line 1 \ ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-multi-str -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -46,6 +42,10 @@ oxlint --deny no-multi-str } ``` +```bash [CLI] +oxlint --deny no-multi-str +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md b/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md index 77e4bfe2c0..0668b90f85 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-negated-condition.md @@ -49,14 +49,10 @@ a ? doSomethingB() : doSomethingC(); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-negated-condition -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -65,6 +61,10 @@ oxlint --deny no-negated-condition } ``` +```bash [CLI] +oxlint --deny no-negated-condition +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md b/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md index de228feac3..bca352b080 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-nested-ternary.md @@ -39,14 +39,10 @@ if (condition1) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-nested-ternary -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -55,6 +51,10 @@ oxlint --deny no-nested-ternary } ``` +```bash [CLI] +oxlint --deny no-nested-ternary +``` + ::: ## References 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 9dcd08331c..1c0bc6cc13 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 @@ -41,14 +41,10 @@ let x = function(a, b) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-new-func -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -57,6 +53,10 @@ oxlint --deny no-new-func } ``` +```bash [CLI] +oxlint --deny no-new-func +``` + ::: ## References 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 0feb15b977..9880d78681 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 @@ -45,14 +45,10 @@ let result = BigInt(9007199254740991); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-new-native-nonconstructor -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -61,6 +57,10 @@ oxlint --deny no-new-native-nonconstructor } ``` +```bash [CLI] +oxlint --deny no-new-native-nonconstructor +``` + ::: ## References 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 770622f74e..cac5116b13 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 @@ -50,14 +50,10 @@ var symbolObject = Symbol("foo"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-new-wrappers -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -66,6 +62,10 @@ oxlint --deny no-new-wrappers } ``` +```bash [CLI] +oxlint --deny no-new-wrappers +``` + ::: ## References 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 87fb4468af..103bddcc18 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-new.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-new.md @@ -39,14 +39,10 @@ var a = new Date()(() => new Date()); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-new -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -55,6 +51,10 @@ oxlint --deny no-new } ``` +```bash [CLI] +oxlint --deny no-new +``` + ::: ## References 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 8a90cf2624..a29daf9cbc 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 @@ -42,14 +42,10 @@ let y = "\\9"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-nonoctal-decimal-escape -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -58,6 +54,10 @@ oxlint --deny no-nonoctal-decimal-escape } ``` +```bash [CLI] +oxlint --deny no-nonoctal-decimal-escape +``` + ::: ## References 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 61f4c54e1a..541f15c738 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 @@ -57,14 +57,10 @@ let segmenterFrom = Intl.Segmenter("fr", { granularity: "word" }); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-obj-calls -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -73,6 +69,10 @@ oxlint --deny no-obj-calls } ``` +```bash [CLI] +oxlint --deny no-obj-calls +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md b/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md index 7b5a0cb3d2..9c32caf3d6 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-object-constructor.md @@ -41,14 +41,10 @@ const createObject = Object => new Object(); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-object-constructor -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -57,6 +53,10 @@ oxlint --deny no-object-constructor } ``` +```bash [CLI] +oxlint --deny no-object-constructor +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-param-reassign.md b/src/docs/guide/usage/linter/rules/eslint/no-param-reassign.md index 10a61df881..4959b59eaf 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-param-reassign.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-param-reassign.md @@ -62,14 +62,10 @@ When true, also check for modifications to properties of parameters. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-param-reassign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -78,6 +74,10 @@ oxlint --deny no-param-reassign } ``` +```bash [CLI] +oxlint --deny no-param-reassign +``` + ::: ## References 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 be7b1f3af2..a4e6501357 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-plusplus.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-plusplus.md @@ -80,14 +80,10 @@ Whether to allow `++` and `--` in for loop afterthoughts. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-plusplus -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -96,6 +92,10 @@ oxlint --deny no-plusplus } ``` +```bash [CLI] +oxlint --deny no-plusplus +``` + ::: ## References 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 32f1402b2b..12f9e9af32 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-proto.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-proto.md @@ -44,14 +44,10 @@ obj["__proto__"] = b; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-proto -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -60,6 +56,10 @@ oxlint --deny no-proto } ``` +```bash [CLI] +oxlint --deny no-proto +``` + ::: ## References 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 7c41efb125..260ec9c110 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 @@ -36,14 +36,10 @@ var barIsEnumerable = foo.propertyIsEnumerable("bar"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-prototype-builtins -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -52,6 +48,10 @@ oxlint --deny no-prototype-builtins } ``` +```bash [CLI] +oxlint --deny no-prototype-builtins +``` + ::: ## References 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 574f76eb4c..5e015b8ef7 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-redeclare.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-redeclare.md @@ -50,14 +50,10 @@ When set `true`, it flags redeclaring built-in globals (e.g., `let Object = 1;`) ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-redeclare -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -66,6 +62,10 @@ oxlint --deny no-redeclare } ``` +```bash [CLI] +oxlint --deny no-redeclare +``` + ::: ## References 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 2283efcc31..b5d0c9f1a1 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 @@ -37,14 +37,10 @@ var re = /foo bar/; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-regex-spaces -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -53,6 +49,10 @@ oxlint --deny no-regex-spaces } ``` +```bash [CLI] +oxlint --deny no-regex-spaces +``` + ::: ## References 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 fd0b41a5d7..75abadede8 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 @@ -55,14 +55,10 @@ are restricted from use. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-restricted-globals -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -71,6 +67,10 @@ oxlint --deny no-restricted-globals } ``` +```bash [CLI] +oxlint --deny no-restricted-globals +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md b/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md index 93d7c4d1a7..583f6d6091 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-restricted-imports.md @@ -338,14 +338,10 @@ import { isEmpty } from "utils/collection-utils"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-restricted-imports -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -354,6 +350,10 @@ oxlint --deny no-restricted-imports } ``` +```bash [CLI] +oxlint --deny no-restricted-imports +``` + ::: ## References 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 fe836c2957..5c06dc9b5f 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 @@ -59,14 +59,10 @@ This is the default mode. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-return-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -75,6 +71,10 @@ oxlint --deny no-return-assign } ``` +```bash [CLI] +oxlint --deny no-return-assign +``` + ::: ## References 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 0e24acffed..f0bdeccfb1 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 @@ -35,14 +35,10 @@ location.href = `javascript:void(0)`; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-script-url -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -51,6 +47,10 @@ oxlint --deny no-script-url } ``` +```bash [CLI] +oxlint --deny no-script-url +``` + ::: ## References 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 2e644f36f3..b7122cb84d 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 @@ -90,14 +90,10 @@ obj[a] = obj[a]; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-self-assign -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -106,6 +102,10 @@ oxlint --deny no-self-assign } ``` +```bash [CLI] +oxlint --deny no-self-assign +``` + ::: ## References 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 890f3893f1..9ec8be0a7e 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 @@ -32,14 +32,10 @@ if (x === x) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-self-compare -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -48,6 +44,10 @@ oxlint --deny no-self-compare } ``` +```bash [CLI] +oxlint --deny no-self-compare +``` + ::: ## References 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 690a6f37ee..83886747e4 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 @@ -37,14 +37,10 @@ class URL { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-setter-return -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -53,6 +49,10 @@ oxlint --deny no-setter-return } ``` +```bash [CLI] +oxlint --deny no-setter-return +``` + ::: ## References 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 d1218011ee..e4ac293cac 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 @@ -85,14 +85,10 @@ If true, also report shadowing of `globalThis`. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-shadow-restricted-names -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -101,6 +97,10 @@ oxlint --deny no-shadow-restricted-names } ``` +```bash [CLI] +oxlint --deny no-shadow-restricted-names +``` + ::: ## References 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 cd8801883d..56277db177 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 @@ -61,14 +61,10 @@ var colors = ["red", "blue"]; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-sparse-arrays -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -77,6 +73,10 @@ oxlint --deny no-sparse-arrays } ``` +```bash [CLI] +oxlint --deny no-sparse-arrays +``` + ::: ## References 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 8e6d198105..61605e2324 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 @@ -44,14 +44,10 @@ templateFunction`Hello ${name}`; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-template-curly-in-string -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -60,6 +56,10 @@ oxlint --deny no-template-curly-in-string } ``` +```bash [CLI] +oxlint --deny no-template-curly-in-string +``` + ::: ## References 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 b76b24f976..8d7726631f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-ternary.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-ternary.md @@ -58,14 +58,10 @@ function quux() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-ternary -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -74,6 +70,10 @@ oxlint --deny no-ternary } ``` +```bash [CLI] +oxlint --deny no-ternary +``` + ::: ## References 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 ce8deb19bf..d9eb90da80 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 @@ -38,14 +38,10 @@ class A1 extends B { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-this-before-super -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -54,6 +50,10 @@ oxlint --deny no-this-before-super } ``` +```bash [CLI] +oxlint --deny no-this-before-super +``` + ::: ## References 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 23262c7fb6..174faf25a8 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 @@ -63,14 +63,10 @@ try { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-throw-literal -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -79,6 +75,10 @@ oxlint --deny no-throw-literal } ``` +```bash [CLI] +oxlint --deny no-throw-literal +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unassigned-vars.md b/src/docs/guide/usage/linter/rules/eslint/no-unassigned-vars.md index 781f4b69d6..9ce6bf482f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unassigned-vars.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unassigned-vars.md @@ -46,14 +46,10 @@ console.log(user.name); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unassigned-vars -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -62,6 +58,10 @@ oxlint --deny no-unassigned-vars } ``` +```bash [CLI] +oxlint --deny no-unassigned-vars +``` + ::: ## References 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 7d6908d070..5d421de2c9 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-undef.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-undef.md @@ -41,14 +41,10 @@ When set to `true`, warns on undefined variables used in a `typeof` expression. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-undef -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -57,6 +53,10 @@ oxlint --deny no-undef } ``` +```bash [CLI] +oxlint --deny no-undef +``` + ::: ## References 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 c646653ebd..48fd3f9d24 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-undefined.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-undefined.md @@ -57,14 +57,10 @@ bar(void 0, "lorem"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-undefined -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -73,6 +69,10 @@ oxlint --deny no-undefined } ``` +```bash [CLI] +oxlint --deny no-undefined +``` + ::: ## References 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 d124238790..524bb5e849 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 @@ -58,14 +58,10 @@ foo; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unexpected-multiline -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -74,6 +70,10 @@ oxlint --deny no-unexpected-multiline } ``` +```bash [CLI] +oxlint --deny no-unexpected-multiline +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unneeded-ternary.md b/src/docs/guide/usage/linter/rules/eslint/no-unneeded-ternary.md index 591a52261a..56fcc0c317 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unneeded-ternary.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unneeded-ternary.md @@ -63,14 +63,10 @@ are allowed and not reported. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unneeded-ternary -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -79,6 +75,10 @@ oxlint --deny no-unneeded-ternary } ``` +```bash [CLI] +oxlint --deny no-unneeded-ternary +``` + ::: ## References 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 36eceb9b8a..861000a574 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unreachable.md @@ -40,14 +40,10 @@ function foo() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unreachable -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -56,6 +52,10 @@ oxlint --deny no-unreachable } ``` +```bash [CLI] +oxlint --deny no-unreachable +``` + ::: ## References 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 2a972deebd..6c8f397631 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 @@ -43,14 +43,10 @@ Examples of **incorrect** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unsafe-finally -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -59,6 +55,10 @@ oxlint --deny no-unsafe-finally } ``` +```bash [CLI] +oxlint --deny no-unsafe-finally +``` + ::: ## References 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 4b5664e9c0..61a18162db 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 @@ -63,14 +63,10 @@ when what is really intended is `!(a < b)`. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unsafe-negation -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -79,6 +75,10 @@ oxlint --deny no-unsafe-negation } ``` +```bash [CLI] +oxlint --deny no-unsafe-negation +``` + ::: ## References 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 934acc6556..03a1216111 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 @@ -51,14 +51,10 @@ If this is true, this rule warns arithmetic operations on optional chaining expr ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unsafe-optional-chaining -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -67,6 +63,10 @@ oxlint --deny no-unsafe-optional-chaining } ``` +```bash [CLI] +oxlint --deny no-unsafe-optional-chaining +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md b/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md index 208089d3e3..993407b070 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-unused-expressions.md @@ -75,14 +75,10 @@ When set to `true`, enforces the rule for unused JSX expressions also. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unused-expressions -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -91,6 +87,10 @@ oxlint --deny no-unused-expressions } ``` +```bash [CLI] +oxlint --deny no-unused-expressions +``` + ::: ## References 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 ac51e8533c..0f41565ad0 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 @@ -51,14 +51,10 @@ for (const student of students) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unused-labels -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -67,6 +63,10 @@ oxlint --deny no-unused-labels } ``` +```bash [CLI] +oxlint --deny no-unused-labels +``` + ::: ## References 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 04010a1840..fe6992ca80 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 @@ -85,14 +85,10 @@ class C { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unused-private-class-members -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -101,6 +97,10 @@ oxlint --deny no-unused-private-class-members } ``` +```bash [CLI] +oxlint --deny no-unused-private-class-members +``` + ::: ## References 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 05d6836029..9d4e99c64d 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 @@ -404,14 +404,10 @@ global variables to be unused. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-unused-vars -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -420,6 +416,10 @@ oxlint --deny no-unused-vars } ``` +```bash [CLI] +oxlint --deny no-unused-vars +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-backreference.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-backreference.md index b56b5c0d55..60a7a826f7 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-backreference.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-backreference.md @@ -50,14 +50,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-backreference -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -66,6 +62,10 @@ oxlint --deny no-useless-backreference } ``` +```bash [CLI] +oxlint --deny no-useless-backreference +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-call.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-call.md index 1bf55dc72e..806cc3618a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-call.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-call.md @@ -57,14 +57,10 @@ obj.foo.apply(obj, args); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-call -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -73,6 +69,10 @@ oxlint --deny no-useless-call } ``` +```bash [CLI] +oxlint --deny no-useless-call +``` + ::: ## References 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 839df25761..8d0b4f4cb3 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 @@ -44,14 +44,10 @@ doSomethingThatMightThrow(); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-catch -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -60,6 +56,10 @@ oxlint --deny no-useless-catch } ``` +```bash [CLI] +oxlint --deny no-useless-catch +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-useless-computed-key.md b/src/docs/guide/usage/linter/rules/eslint/no-useless-computed-key.md index d39d64ef0e..c892eefc04 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-useless-computed-key.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-useless-computed-key.md @@ -108,14 +108,10 @@ class SomeClass { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-computed-key -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -124,6 +120,10 @@ oxlint --deny no-useless-computed-key } ``` +```bash [CLI] +oxlint --deny no-useless-computed-key +``` + ::: ## References 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 2153bc71ef..9d81be5006 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 @@ -47,14 +47,10 @@ var foo = "a" ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-concat -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -63,6 +59,10 @@ oxlint --deny no-useless-concat } ``` +```bash [CLI] +oxlint --deny no-useless-concat +``` + ::: ## References 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 b46e794670..0f363ccd1a 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 @@ -72,14 +72,10 @@ class D extends A { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-constructor -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -88,6 +84,10 @@ oxlint --deny no-useless-constructor } ``` +```bash [CLI] +oxlint --deny no-useless-constructor +``` + ::: ## References 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 6b1badae5f..086d0f127e 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 @@ -82,14 +82,10 @@ An array of characters that are allowed to be escaped unnecessarily in regexes. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-escape -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -98,6 +94,10 @@ oxlint --deny no-useless-escape } ``` +```bash [CLI] +oxlint --deny no-useless-escape +``` + ::: ## References 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 86beecdfb8..c136de5906 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 @@ -69,14 +69,10 @@ When set to `true`, allows renaming imports to the same name. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-useless-rename -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -85,6 +81,10 @@ oxlint --deny no-useless-rename } ``` +```bash [CLI] +oxlint --deny no-useless-rename +``` + ::: ## References 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 ec947484c3..ef04928b07 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-var.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-var.md @@ -42,14 +42,10 @@ const CONFIG = {}; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-var -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -58,6 +54,10 @@ oxlint --deny no-var } ``` +```bash [CLI] +oxlint --deny no-var +``` + ::: ## References 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 26efab83bb..0cf4aedd5d 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-void.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-void.md @@ -53,14 +53,10 @@ If set to `true`, using `void` as a standalone statement is allowed. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-void -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -69,6 +65,10 @@ oxlint --deny no-void } ``` +```bash [CLI] +oxlint --deny no-void +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/no-warning-comments.md b/src/docs/guide/usage/linter/rules/eslint/no-warning-comments.md index 7225c2c5ac..b261888105 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-warning-comments.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-warning-comments.md @@ -76,14 +76,10 @@ Useful for ignoring common comment decorations like `*` in JSDoc-style comments. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-warning-comments -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -92,6 +88,10 @@ oxlint --deny no-warning-comments } ``` +```bash [CLI] +oxlint --deny no-warning-comments +``` + ::: ## References 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 b1a225239f..6854922586 100644 --- a/src/docs/guide/usage/linter/rules/eslint/no-with.md +++ b/src/docs/guide/usage/linter/rules/eslint/no-with.md @@ -31,14 +31,10 @@ with (point) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny no-with -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -47,6 +43,10 @@ oxlint --deny no-with } ``` +```bash [CLI] +oxlint --deny no-with +``` + ::: diff --git a/src/docs/guide/usage/linter/rules/eslint/operator-assignment.md b/src/docs/guide/usage/linter/rules/eslint/operator-assignment.md index 23281a0dd3..c2a18ce433 100644 --- a/src/docs/guide/usage/linter/rules/eslint/operator-assignment.md +++ b/src/docs/guide/usage/linter/rules/eslint/operator-assignment.md @@ -76,14 +76,10 @@ Disallows assignment operator shorthand. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny operator-assignment -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -92,6 +88,10 @@ oxlint --deny operator-assignment } ``` +```bash [CLI] +oxlint --deny operator-assignment +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-destructuring.md b/src/docs/guide/usage/linter/rules/eslint/prefer-destructuring.md index d8bccb5bf3..67473a64e5 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-destructuring.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-destructuring.md @@ -103,14 +103,10 @@ Determines whether the object destructuring rule applies to renamed variables. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-destructuring -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -119,6 +115,10 @@ oxlint --deny prefer-destructuring } ``` +```bash [CLI] +oxlint --deny prefer-destructuring +``` + ::: ## References 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 95562b2a11..63278153e1 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 @@ -36,14 +36,10 @@ a ** b; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-exponentiation-operator -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -52,6 +48,10 @@ oxlint --deny prefer-exponentiation-operator } ``` +```bash [CLI] +oxlint --deny prefer-exponentiation-operator +``` + ::: ## References 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 f6f0739926..4100b09160 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 @@ -41,14 +41,10 @@ Number.parseInt("1F7", 16) === 503; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-numeric-literals -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -57,6 +53,10 @@ oxlint --deny prefer-numeric-literals } ``` +```bash [CLI] +oxlint --deny prefer-numeric-literals +``` + ::: ## References 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 bad28066db..89b45430b0 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 @@ -56,14 +56,10 @@ const hasProperty = Object.hasOwn(object, property); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-object-has-own -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -72,6 +68,10 @@ oxlint --deny prefer-object-has-own } ``` +```bash [CLI] +oxlint --deny prefer-object-has-own +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-object-spread.md b/src/docs/guide/usage/linter/rules/eslint/prefer-object-spread.md index 783b9c2ff7..d66c8b2488 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-object-spread.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-object-spread.md @@ -61,14 +61,10 @@ Object.assign(foo, { ...baz }); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-object-spread -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -77,6 +73,10 @@ oxlint --deny prefer-object-spread } ``` +```bash [CLI] +oxlint --deny prefer-object-spread +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md b/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md index e3458abbeb..109593d649 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-promise-reject-errors.md @@ -71,14 +71,10 @@ Whether to allow calls to `Promise.reject()` with no arguments. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-promise-reject-errors -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -87,6 +83,10 @@ oxlint --deny prefer-promise-reject-errors } ``` +```bash [CLI] +oxlint --deny prefer-promise-reject-errors +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md b/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md index 08ea8b094f..209904849c 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-rest-params.md @@ -62,14 +62,10 @@ function foo() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-rest-params -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -78,6 +74,10 @@ oxlint --deny prefer-rest-params } ``` +```bash [CLI] +oxlint --deny prefer-rest-params +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md b/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md index a6534cd4a8..7ae6dfdd34 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-spread.md @@ -63,14 +63,10 @@ obj.foo.apply(obj, [1, 2, 3]); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-spread -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -79,6 +75,10 @@ oxlint --deny prefer-spread } ``` +```bash [CLI] +oxlint --deny prefer-spread +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/prefer-template.md b/src/docs/guide/usage/linter/rules/eslint/prefer-template.md index 60a13b025e..77742c6d01 100644 --- a/src/docs/guide/usage/linter/rules/eslint/prefer-template.md +++ b/src/docs/guide/usage/linter/rules/eslint/prefer-template.md @@ -40,14 +40,10 @@ const str4 = "Hello, " + "World!"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny prefer-template -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -56,6 +52,10 @@ oxlint --deny prefer-template } ``` +```bash [CLI] +oxlint --deny prefer-template +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/preserve-caught-error.md b/src/docs/guide/usage/linter/rules/eslint/preserve-caught-error.md index 81cbc2bf1b..a10c9c12c7 100644 --- a/src/docs/guide/usage/linter/rules/eslint/preserve-caught-error.md +++ b/src/docs/guide/usage/linter/rules/eslint/preserve-caught-error.md @@ -59,14 +59,10 @@ When set to `true`, requires that catch clauses always have a parameter. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny preserve-caught-error -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -75,6 +71,10 @@ oxlint --deny preserve-caught-error } ``` +```bash [CLI] +oxlint --deny preserve-caught-error +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/radix.md b/src/docs/guide/usage/linter/rules/eslint/radix.md index 8bcb749fb0..7593ad8c71 100644 --- a/src/docs/guide/usage/linter/rules/eslint/radix.md +++ b/src/docs/guide/usage/linter/rules/eslint/radix.md @@ -54,14 +54,10 @@ Only require the radix parameter when necessary. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny radix -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -70,6 +66,10 @@ oxlint --deny radix } ``` +```bash [CLI] +oxlint --deny radix +``` + ::: ## References 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 868703edce..07ebc6b079 100644 --- a/src/docs/guide/usage/linter/rules/eslint/require-await.md +++ b/src/docs/guide/usage/linter/rules/eslint/require-await.md @@ -66,14 +66,10 @@ async function foo() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny require-await -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -82,6 +78,10 @@ oxlint --deny require-await } ``` +```bash [CLI] +oxlint --deny require-await +``` + ::: ## References 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 05513f5d3d..c334e0c678 100644 --- a/src/docs/guide/usage/linter/rules/eslint/require-yield.md +++ b/src/docs/guide/usage/linter/rules/eslint/require-yield.md @@ -33,14 +33,10 @@ function* foo() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny require-yield -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -49,6 +45,10 @@ oxlint --deny require-yield } ``` +```bash [CLI] +oxlint --deny require-yield +``` + ::: ## References 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 1b36cadd96..562a0181f5 100644 --- a/src/docs/guide/usage/linter/rules/eslint/sort-imports.md +++ b/src/docs/guide/usage/linter/rules/eslint/sort-imports.md @@ -82,14 +82,10 @@ type: `"none" | "all" | "multiple" | "single"` ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny sort-imports -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -98,6 +94,10 @@ oxlint --deny sort-imports } ``` +```bash [CLI] +oxlint --deny sort-imports +``` + ::: ## References 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 f59dd7a00a..3faa635c39 100644 --- a/src/docs/guide/usage/linter/rules/eslint/sort-keys.md +++ b/src/docs/guide/usage/linter/rules/eslint/sort-keys.md @@ -88,14 +88,10 @@ Use natural sort order so that, for example, "a2" comes before "a10". ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny sort-keys -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -104,6 +100,10 @@ oxlint --deny sort-keys } ``` +```bash [CLI] +oxlint --deny sort-keys +``` + ::: ## References 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 94e0f63b6d..6006bad799 100644 --- a/src/docs/guide/usage/linter/rules/eslint/sort-vars.md +++ b/src/docs/guide/usage/linter/rules/eslint/sort-vars.md @@ -52,14 +52,10 @@ When `true`, the rule ignores case-sensitivity when sorting variables. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny sort-vars -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -68,6 +64,10 @@ oxlint --deny sort-vars } ``` +```bash [CLI] +oxlint --deny sort-vars +``` + ::: ## References 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 f54f3e38c6..212ff3b79f 100644 --- a/src/docs/guide/usage/linter/rules/eslint/symbol-description.md +++ b/src/docs/guide/usage/linter/rules/eslint/symbol-description.md @@ -50,14 +50,10 @@ var foo = Symbol("some description"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny symbol-description -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -66,6 +62,10 @@ oxlint --deny symbol-description } ``` +```bash [CLI] +oxlint --deny symbol-description +``` + ::: ## References 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 39acfafe85..74e16550ca 100644 --- a/src/docs/guide/usage/linter/rules/eslint/unicode-bom.md +++ b/src/docs/guide/usage/linter/rules/eslint/unicode-bom.md @@ -48,14 +48,10 @@ This is the default option. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny unicode-bom -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -64,6 +60,10 @@ oxlint --deny unicode-bom } ``` +```bash [CLI] +oxlint --deny unicode-bom +``` + ::: ## References 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 b0fab46ae6..1605b94b87 100644 --- a/src/docs/guide/usage/linter/rules/eslint/use-isnan.md +++ b/src/docs/guide/usage/linter/rules/eslint/use-isnan.md @@ -68,14 +68,10 @@ Whether to disallow NaN in switch cases and discriminants ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny use-isnan -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -84,6 +80,10 @@ oxlint --deny use-isnan } ``` +```bash [CLI] +oxlint --deny use-isnan +``` + ::: ## References 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 bbdbdc98a7..ef06f4123a 100644 --- a/src/docs/guide/usage/linter/rules/eslint/valid-typeof.md +++ b/src/docs/guide/usage/linter/rules/eslint/valid-typeof.md @@ -83,14 +83,10 @@ typeof bar === typeof qux; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny valid-typeof -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -99,6 +95,10 @@ oxlint --deny valid-typeof } ``` +```bash [CLI] +oxlint --deny valid-typeof +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md b/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md index de33f25ffe..dd100da257 100644 --- a/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md +++ b/src/docs/guide/usage/linter/rules/eslint/vars-on-top.md @@ -85,14 +85,10 @@ class C { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny vars-on-top -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -101,6 +97,10 @@ oxlint --deny vars-on-top } ``` +```bash [CLI] +oxlint --deny vars-on-top +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/eslint/yoda.md b/src/docs/guide/usage/linter/rules/eslint/yoda.md index 9a74d86fd4..c021dbf813 100644 --- a/src/docs/guide/usage/linter/rules/eslint/yoda.md +++ b/src/docs/guide/usage/linter/rules/eslint/yoda.md @@ -170,14 +170,10 @@ if (-1 < str.indexOf(substr)) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny yoda -``` - ```json [Config (.oxlintrc.json)] { "rules": { @@ -186,6 +182,10 @@ oxlint --deny yoda } ``` +```bash [CLI] +oxlint --deny yoda +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/consistent-type-specifier-style.md b/src/docs/guide/usage/linter/rules/import/consistent-type-specifier-style.md index 710677673c..50a108a140 100644 --- a/src/docs/guide/usage/linter/rules/import/consistent-type-specifier-style.md +++ b/src/docs/guide/usage/linter/rules/import/consistent-type-specifier-style.md @@ -67,14 +67,10 @@ Prefer `import { type Foo } from 'foo'` for type imports. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/consistent-type-specifier-style --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -84,6 +80,10 @@ oxlint --deny import/consistent-type-specifier-style --import-plugin } ``` +```bash [CLI] +oxlint --deny import/consistent-type-specifier-style --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/default.md b/src/docs/guide/usage/linter/rules/import/default.md index 248713faff..aa44beccde 100644 --- a/src/docs/guide/usage/linter/rules/import/default.md +++ b/src/docs/guide/usage/linter/rules/import/default.md @@ -50,14 +50,10 @@ import { bar } from "./bar"; // correct usage of named import ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/default --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -67,6 +63,10 @@ oxlint --deny import/default --import-plugin } ``` +```bash [CLI] +oxlint --deny import/default --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/export.md b/src/docs/guide/usage/linter/rules/import/export.md index ff9a8d2a4b..020cea3791 100644 --- a/src/docs/guide/usage/linter/rules/import/export.md +++ b/src/docs/guide/usage/linter/rules/import/export.md @@ -40,14 +40,10 @@ export * from "./export-all"; // No conflict if export-all.js also exports foo ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/export --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -57,6 +53,10 @@ oxlint --deny import/export --import-plugin } ``` +```bash [CLI] +oxlint --deny import/export --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/exports-last.md b/src/docs/guide/usage/linter/rules/import/exports-last.md index fdff3b2cf9..45f4776719 100644 --- a/src/docs/guide/usage/linter/rules/import/exports-last.md +++ b/src/docs/guide/usage/linter/rules/import/exports-last.md @@ -43,14 +43,10 @@ export function func() { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/exports-last --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -60,6 +56,10 @@ oxlint --deny import/exports-last --import-plugin } ``` +```bash [CLI] +oxlint --deny import/exports-last --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/extensions.md b/src/docs/guide/usage/linter/rules/import/extensions.md index 3c85e26c43..59d09bdbd7 100644 --- a/src/docs/guide/usage/linter/rules/import/extensions.md +++ b/src/docs/guide/usage/linter/rules/import/extensions.md @@ -135,14 +135,10 @@ Configuration for `.tsx` file extensions. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/extensions --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -152,6 +148,10 @@ oxlint --deny import/extensions --import-plugin } ``` +```bash [CLI] +oxlint --deny import/extensions --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/first.md b/src/docs/guide/usage/linter/rules/import/first.md index 5d3d02af00..e9298fef73 100644 --- a/src/docs/guide/usage/linter/rules/import/first.md +++ b/src/docs/guide/usage/linter/rules/import/first.md @@ -71,14 +71,10 @@ This is the default behavior. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/first --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -88,6 +84,10 @@ oxlint --deny import/first --import-plugin } ``` +```bash [CLI] +oxlint --deny import/first --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/group-exports.md b/src/docs/guide/usage/linter/rules/import/group-exports.md index 43538cdfc4..3e5fea63f7 100644 --- a/src/docs/guide/usage/linter/rules/import/group-exports.md +++ b/src/docs/guide/usage/linter/rules/import/group-exports.md @@ -41,14 +41,10 @@ export { first, second }; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/group-exports --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -58,6 +54,10 @@ oxlint --deny import/group-exports --import-plugin } ``` +```bash [CLI] +oxlint --deny import/group-exports --import-plugin +``` + ::: ## References 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 98b734994e..3a8d161429 100644 --- a/src/docs/guide/usage/linter/rules/import/max-dependencies.md +++ b/src/docs/guide/usage/linter/rules/import/max-dependencies.md @@ -61,14 +61,10 @@ Maximum number of dependencies allowed in a module. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/max-dependencies --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -78,6 +74,10 @@ oxlint --deny import/max-dependencies --import-plugin } ``` +```bash [CLI] +oxlint --deny import/max-dependencies --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/named.md b/src/docs/guide/usage/linter/rules/import/named.md index 8323f6e026..62fef50a82 100644 --- a/src/docs/guide/usage/linter/rules/import/named.md +++ b/src/docs/guide/usage/linter/rules/import/named.md @@ -73,14 +73,10 @@ import { SomeNonsenseThatDoesntExist } from "react"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/named --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -90,6 +86,10 @@ oxlint --deny import/named --import-plugin } ``` +```bash [CLI] +oxlint --deny import/named --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/namespace.md b/src/docs/guide/usage/linter/rules/import/namespace.md index 3968fa8bf1..30da887f87 100644 --- a/src/docs/guide/usage/linter/rules/import/namespace.md +++ b/src/docs/guide/usage/linter/rules/import/namespace.md @@ -77,14 +77,10 @@ Whether to allow computed references to an imported namespace. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/namespace --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -94,6 +90,10 @@ oxlint --deny import/namespace --import-plugin } ``` +```bash [CLI] +oxlint --deny import/namespace --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-absolute-path.md b/src/docs/guide/usage/linter/rules/import/no-absolute-path.md index ed3aad20b0..b3a3348e68 100644 --- a/src/docs/guide/usage/linter/rules/import/no-absolute-path.md +++ b/src/docs/guide/usage/linter/rules/import/no-absolute-path.md @@ -106,14 +106,10 @@ import foo from "/foo"; // reported ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-absolute-path --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -123,6 +119,10 @@ oxlint --deny import/no-absolute-path --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-absolute-path --import-plugin +``` + ::: ## References 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 9b0e58602d..88549ee80b 100644 --- a/src/docs/guide/usage/linter/rules/import/no-amd.md +++ b/src/docs/guide/usage/linter/rules/import/no-amd.md @@ -40,14 +40,10 @@ require(`../name`); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-amd --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -57,6 +53,10 @@ oxlint --deny import/no-amd --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-amd --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-anonymous-default-export.md b/src/docs/guide/usage/linter/rules/import/no-anonymous-default-export.md index 53f0b4244a..35e2c8cba9 100644 --- a/src/docs/guide/usage/linter/rules/import/no-anonymous-default-export.md +++ b/src/docs/guide/usage/linter/rules/import/no-anonymous-default-export.md @@ -140,14 +140,10 @@ Allow anonymous object as default export. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-anonymous-default-export --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -157,6 +153,10 @@ oxlint --deny import/no-anonymous-default-export --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-anonymous-default-export --import-plugin +``` + ::: ## References 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 c816852d6c..d7bcf5b81b 100644 --- a/src/docs/guide/usage/linter/rules/import/no-commonjs.md +++ b/src/docs/guide/usage/linter/rules/import/no-commonjs.md @@ -101,14 +101,10 @@ but `module.exports` is reported as usual. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-commonjs --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -118,6 +114,10 @@ oxlint --deny import/no-commonjs --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-commonjs --import-plugin +``` + ::: ## References 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 630c223b8b..5027df15cc 100644 --- a/src/docs/guide/usage/linter/rules/import/no-cycle.md +++ b/src/docs/guide/usage/linter/rules/import/no-cycle.md @@ -94,14 +94,10 @@ Maximum dependency depth to traverse ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-cycle --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -111,6 +107,10 @@ oxlint --deny import/no-cycle --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-cycle --import-plugin +``` + ::: ## References 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 87fc0e0254..c4eabe7b80 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 @@ -42,14 +42,10 @@ export const bar = "bar"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-default-export --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -59,6 +55,10 @@ oxlint --deny import/no-default-export --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-default-export --import-plugin +``` + ::: ## References 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 bc9359751b..8e66651c04 100644 --- a/src/docs/guide/usage/linter/rules/import/no-duplicates.md +++ b/src/docs/guide/usage/linter/rules/import/no-duplicates.md @@ -66,14 +66,10 @@ import { type Bar, Foo } from "./module"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-duplicates --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -83,6 +79,10 @@ oxlint --deny import/no-duplicates --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-duplicates --import-plugin +``` + ::: ## References 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 5579c60658..26ad55e71a 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 @@ -52,14 +52,10 @@ When `true`, also check `import()` expressions for dynamic module specifiers. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-dynamic-require --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -69,6 +65,10 @@ oxlint --deny import/no-dynamic-require --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-dynamic-require --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-empty-named-blocks.md b/src/docs/guide/usage/linter/rules/import/no-empty-named-blocks.md index a255a33ad0..2678da92b5 100644 --- a/src/docs/guide/usage/linter/rules/import/no-empty-named-blocks.md +++ b/src/docs/guide/usage/linter/rules/import/no-empty-named-blocks.md @@ -40,14 +40,10 @@ import Default, { mod } from "mod"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-empty-named-blocks --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -57,6 +53,10 @@ oxlint --deny import/no-empty-named-blocks --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-empty-named-blocks --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-mutable-exports.md b/src/docs/guide/usage/linter/rules/import/no-mutable-exports.md index d21e96dc76..67d287ee85 100644 --- a/src/docs/guide/usage/linter/rules/import/no-mutable-exports.md +++ b/src/docs/guide/usage/linter/rules/import/no-mutable-exports.md @@ -45,14 +45,10 @@ but are not flagged by this rule at this time. They may be in the future. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-mutable-exports --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -62,6 +58,10 @@ oxlint --deny import/no-mutable-exports --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-mutable-exports --import-plugin +``` + ::: ## References 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 cbb39a3846..d41c6bfe66 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 @@ -54,14 +54,10 @@ import { bar } from "./bar"; // Correct: accessing named export directly ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-named-as-default-member --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -71,6 +67,10 @@ oxlint --deny import/no-named-as-default-member --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-named-as-default-member --import-plugin +``` + ::: ## References 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 e0ddacfa60..9f4003b7b2 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 @@ -49,14 +49,10 @@ import foo from "./foo.js"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-named-as-default --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -66,6 +62,10 @@ oxlint --deny import/no-named-as-default --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-named-as-default --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-named-default.md b/src/docs/guide/usage/linter/rules/import/no-named-default.md index 329a26d38d..f78a24b525 100644 --- a/src/docs/guide/usage/linter/rules/import/no-named-default.md +++ b/src/docs/guide/usage/linter/rules/import/no-named-default.md @@ -37,14 +37,10 @@ import foo, { bar } from "./foo.js"; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-named-default --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -54,6 +50,10 @@ oxlint --deny import/no-named-default --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-named-default --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-named-export.md b/src/docs/guide/usage/linter/rules/import/no-named-export.md index 94e4cc097c..8c12279352 100644 --- a/src/docs/guide/usage/linter/rules/import/no-named-export.md +++ b/src/docs/guide/usage/linter/rules/import/no-named-export.md @@ -41,14 +41,10 @@ export { foo as default }; ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-named-export --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -58,6 +54,10 @@ oxlint --deny import/no-named-export --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-named-export --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-namespace.md b/src/docs/guide/usage/linter/rules/import/no-namespace.md index 57c5424cac..d744c5e91f 100644 --- a/src/docs/guide/usage/linter/rules/import/no-namespace.md +++ b/src/docs/guide/usage/linter/rules/import/no-namespace.md @@ -70,14 +70,10 @@ For example, `["*.json"]` will ignore all JSON imports. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-namespace --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -87,6 +83,10 @@ oxlint --deny import/no-namespace --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-namespace --import-plugin +``` + ::: ## References 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 0c8dd1c3be..e1ef21423a 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 @@ -39,14 +39,10 @@ import bar from "./bar.js"; // Correct: module imports another module ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-self-import --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -56,6 +52,10 @@ oxlint --deny import/no-self-import --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-self-import --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/no-unassigned-import.md b/src/docs/guide/usage/linter/rules/import/no-unassigned-import.md index d3e815952d..4b207ed0bf 100644 --- a/src/docs/guide/usage/linter/rules/import/no-unassigned-import.md +++ b/src/docs/guide/usage/linter/rules/import/no-unassigned-import.md @@ -63,14 +63,10 @@ For example: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-unassigned-import --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -80,6 +76,10 @@ oxlint --deny import/no-unassigned-import --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-unassigned-import --import-plugin +``` + ::: ## References 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 77a03809f6..69ce7804d6 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 @@ -43,14 +43,10 @@ var theme = require("./theme.css"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/no-webpack-loader-syntax --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -60,6 +56,10 @@ oxlint --deny import/no-webpack-loader-syntax --import-plugin } ``` +```bash [CLI] +oxlint --deny import/no-webpack-loader-syntax --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/prefer-default-export.md b/src/docs/guide/usage/linter/rules/import/prefer-default-export.md index 3b021a642e..342c18684d 100644 --- a/src/docs/guide/usage/linter/rules/import/prefer-default-export.md +++ b/src/docs/guide/usage/linter/rules/import/prefer-default-export.md @@ -65,14 +65,10 @@ Configuration option to specify the target type for preferring default exports. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/prefer-default-export --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -82,6 +78,10 @@ oxlint --deny import/prefer-default-export --import-plugin } ``` +```bash [CLI] +oxlint --deny import/prefer-default-export --import-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/import/unambiguous.md b/src/docs/guide/usage/linter/rules/import/unambiguous.md index 746a4cec87..0161951f1d 100644 --- a/src/docs/guide/usage/linter/rules/import/unambiguous.md +++ b/src/docs/guide/usage/linter/rules/import/unambiguous.md @@ -50,14 +50,10 @@ export {}; // simple way to mark side-effects-only file as 'module' without any ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny import/unambiguous --import-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["import"], @@ -67,6 +63,10 @@ oxlint --deny import/unambiguous --import-plugin } ``` +```bash [CLI] +oxlint --deny import/unambiguous --import-plugin +``` + ::: ## References 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 9bac601ae5..1bccb28dea 100644 --- a/src/docs/guide/usage/linter/rules/jest/consistent-test-it.md +++ b/src/docs/guide/usage/linter/rules/jest/consistent-test-it.md @@ -91,14 +91,10 @@ If only `fn` is provided, this will default to the value of `fn`. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/consistent-test-it --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -108,6 +104,10 @@ oxlint --deny jest/consistent-test-it --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/consistent-test-it --jest-plugin +``` + ::: ## References 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 7df1845d0a..9359b62f7e 100644 --- a/src/docs/guide/usage/linter/rules/jest/max-expects.md +++ b/src/docs/guide/usage/linter/rules/jest/max-expects.md @@ -59,14 +59,10 @@ Maximum number of `expect()` assertion calls allowed within a single test. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/max-expects --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -76,6 +72,10 @@ oxlint --deny jest/max-expects --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/max-expects --jest-plugin +``` + ::: ## References 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 7b5117f57b..99aae89b09 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 @@ -110,14 +110,10 @@ Maximum allowed depth of nested describe calls. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/max-nested-describe --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -127,6 +123,10 @@ oxlint --deny jest/max-nested-describe --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/max-nested-describe --jest-plugin +``` + ::: ## References 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 b7ad83f166..df7cc7369c 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 @@ -95,14 +95,10 @@ expect(a); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-alias-methods --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -112,6 +108,10 @@ oxlint --deny jest/no-alias-methods --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-alias-methods --jest-plugin +``` + ::: ## References 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 dcd750e037..d1ec9509ae 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 @@ -47,14 +47,10 @@ to use it, add the following configuration to your `.eslintrc.json`: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-commented-out-tests --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -64,6 +60,10 @@ oxlint --deny jest/no-commented-out-tests --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-commented-out-tests --jest-plugin +``` + ::: ## References 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 97990c7390..a5172f44c1 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 @@ -85,14 +85,10 @@ it("throws an error", async () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-conditional-expect --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -102,6 +98,10 @@ oxlint --deny jest/no-conditional-expect --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-conditional-expect --jest-plugin +``` + ::: ## References 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 ea1b6e0663..d4cc5538be 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 @@ -90,14 +90,10 @@ it("baz", async () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-conditional-in-test --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -107,6 +103,10 @@ oxlint --deny jest/no-conditional-in-test --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-conditional-in-test --jest-plugin +``` + ::: ## References 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 1cb9ca4019..625be0d015 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 @@ -52,14 +52,10 @@ describe("unit test", () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-confusing-set-timeout --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -69,6 +65,10 @@ oxlint --deny jest/no-confusing-set-timeout --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-confusing-set-timeout --jest-plugin +``` + ::: ## References 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 40861a41af..d92426276b 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 @@ -81,14 +81,10 @@ The version of Jest being used. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-deprecated-functions --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -98,6 +94,10 @@ oxlint --deny jest/no-deprecated-functions --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-deprecated-functions --jest-plugin +``` + ::: ## References 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 806f0bfd1b..22060d27bd 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 @@ -57,14 +57,10 @@ to use it, add the following configuration to your `.eslintrc.json`: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-disabled-tests --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -74,6 +70,10 @@ oxlint --deny jest/no-disabled-tests --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-disabled-tests --jest-plugin +``` + ::: ## References 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 fb5d01a24a..56e10d94e1 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 @@ -56,14 +56,10 @@ test("myFunction()", function(done) { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-done-callback --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -73,6 +69,10 @@ oxlint --deny jest/no-done-callback --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-done-callback --jest-plugin +``` + ::: ## References 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 907f9082b1..c188cef74a 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 @@ -91,14 +91,10 @@ describe("foo", () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-duplicate-hooks --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -108,6 +104,10 @@ oxlint --deny jest/no-duplicate-hooks --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-duplicate-hooks --jest-plugin +``` + ::: ## References 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 7da1ffe22f..e01400da15 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-export.md +++ b/src/docs/guide/usage/linter/rules/jest/no-export.md @@ -33,14 +33,10 @@ describe("a test", () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-export --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -50,6 +46,10 @@ oxlint --deny jest/no-export --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-export --jest-plugin +``` + ::: ## References 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 b72986023d..fe35c1ebcb 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 @@ -57,14 +57,10 @@ to use it, add the following configuration to your `.eslintrc.json`: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-focused-tests --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -74,6 +70,10 @@ oxlint --deny jest/no-focused-tests --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-focused-tests --jest-plugin +``` + ::: ## References 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 be9dca9d33..7ae7fae8c3 100644 --- a/src/docs/guide/usage/linter/rules/jest/no-hooks.md +++ b/src/docs/guide/usage/linter/rules/jest/no-hooks.md @@ -75,14 +75,10 @@ An array of hook function names that are permitted for use. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-hooks --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -92,6 +88,10 @@ oxlint --deny jest/no-hooks --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-hooks --jest-plugin +``` + ::: ## References 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 973af0f23a..e071dd4b40 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 @@ -48,14 +48,10 @@ to use it, add the following configuration to your `.eslintrc.json`: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-identical-title --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -65,6 +61,10 @@ oxlint --deny jest/no-identical-title --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-identical-title --jest-plugin +``` + ::: ## References 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 4388345821..a58da91a4f 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 @@ -46,14 +46,10 @@ expect(errorThrowingFunction).toThrowErrorMatchingInlineSnapshot( ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-interpolation-in-snapshots --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -63,6 +59,10 @@ oxlint --deny jest/no-interpolation-in-snapshots --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-interpolation-in-snapshots --jest-plugin +``` + ::: ## References 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 2b0f4c79e1..af2cde3bc8 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 @@ -55,14 +55,10 @@ test("my test", () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-jasmine-globals --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -72,6 +68,10 @@ oxlint --deny jest/no-jasmine-globals --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-jasmine-globals --jest-plugin +``` + ::: ## References 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 4a4ec6cca8..75d1829601 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 @@ -124,14 +124,10 @@ Maximum number of lines allowed for external snapshot files. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-large-snapshots --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -141,6 +137,10 @@ oxlint --deny jest/no-large-snapshots --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-large-snapshots --jest-plugin +``` + ::: ## References 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 5efb602cea..89928c8661 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 @@ -40,14 +40,10 @@ require("thing"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-mocks-import --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -57,6 +53,10 @@ oxlint --deny jest/no-mocks-import --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-mocks-import --jest-plugin +``` + ::: ## References 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 363f06fac6..612d00027d 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 @@ -55,14 +55,10 @@ A mapping of restricted Jest method names to custom messages. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-restricted-jest-methods --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -72,6 +68,10 @@ oxlint --deny jest/no-restricted-jest-methods --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-restricted-jest-methods --jest-plugin +``` + ::: ## References 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 c9fc2e7610..c27704f6a0 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 @@ -87,14 +87,10 @@ The value is an optional custom message to display when the matcher/modifier is ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-restricted-matchers --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -104,6 +100,10 @@ oxlint --deny jest/no-restricted-matchers --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-restricted-matchers --jest-plugin +``` + ::: ## References 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 53b737ba07..2baf7e428d 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 @@ -50,14 +50,10 @@ An array of function names that should also be treated as test blocks. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-standalone-expect --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -67,6 +63,10 @@ oxlint --deny jest/no-standalone-expect --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-standalone-expect --jest-plugin +``` + ::: ## References 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 e112a69c40..cf0e337416 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 @@ -52,14 +52,10 @@ to use it, add the following configuration to your `.eslintrc.json`: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-test-prefixes --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -69,6 +65,10 @@ oxlint --deny jest/no-test-prefixes --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-test-prefixes --jest-plugin +``` + ::: ## References 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 bd2948881a..8daba114eb 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 @@ -40,14 +40,10 @@ test("one", () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-test-return-statement --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -57,6 +53,10 @@ oxlint --deny jest/no-test-return-statement --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-test-return-statement --jest-plugin +``` + ::: ## References 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 67ee23b5f9..574fe6c030 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 @@ -78,14 +78,10 @@ jest.mock( ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/no-untyped-mock-factory --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -95,6 +91,10 @@ oxlint --deny jest/no-untyped-mock-factory --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/no-untyped-mock-factory --jest-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/jest/padding-around-test-blocks.md b/src/docs/guide/usage/linter/rules/jest/padding-around-test-blocks.md index 19feb30b37..9543fe8857 100644 --- a/src/docs/guide/usage/linter/rules/jest/padding-around-test-blocks.md +++ b/src/docs/guide/usage/linter/rules/jest/padding-around-test-blocks.md @@ -53,14 +53,10 @@ it("bar", () => {}); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/padding-around-test-blocks --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -70,6 +66,10 @@ oxlint --deny jest/padding-around-test-blocks --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/padding-around-test-blocks --jest-plugin +``` + ::: ## References 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 e00848e0da..aa7826196f 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 @@ -42,14 +42,10 @@ expect(uncalledFunction).not.toBeCalled(); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-called-with --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -59,6 +55,10 @@ oxlint --deny jest/prefer-called-with --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-called-with --jest-plugin +``` + ::: ## References 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 a18afdcf29..88ec0cee13 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 @@ -52,14 +52,10 @@ expect(x < "Carl").toBe(true); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-comparison-matcher --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -69,6 +65,10 @@ oxlint --deny jest/prefer-comparison-matcher --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-comparison-matcher --jest-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/jest/prefer-each.md b/src/docs/guide/usage/linter/rules/jest/prefer-each.md index 24415a8e2e..47c7e43c18 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-each.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-each.md @@ -42,14 +42,10 @@ describe.each(items)("item", (item) => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-each --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -59,6 +55,10 @@ oxlint --deny jest/prefer-each --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-each --jest-plugin +``` + ::: ## References 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 bc3579c033..56b4fdc127 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 @@ -43,14 +43,10 @@ expect(myObj).toStrictEqual(thatObj); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-equality-matcher --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -60,6 +56,10 @@ oxlint --deny jest/prefer-equality-matcher --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-equality-matcher --jest-plugin +``` + ::: ## References 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 9f8a0b8031..c8980aa9f7 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 @@ -69,14 +69,10 @@ it("errors", async () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-expect-resolves --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -86,6 +82,10 @@ oxlint --deny jest/prefer-expect-resolves --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-expect-resolves --jest-plugin +``` + ::: ## References 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 c0a9134105..016923b49b 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 @@ -128,14 +128,10 @@ to use it, add the following configuration to your `.eslintrc.json`: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-hooks-in-order --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -145,6 +141,10 @@ oxlint --deny jest/prefer-hooks-in-order --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-hooks-in-order --jest-plugin +``` + ::: ## References 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 f90ab3bcbe..255de1b9be 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 @@ -135,14 +135,10 @@ describe("foo", () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-hooks-on-top --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -152,6 +148,10 @@ oxlint --deny jest/prefer-hooks-on-top --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-hooks-on-top --jest-plugin +``` + ::: ## References 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 953c4b84eb..633c233e01 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 @@ -57,14 +57,10 @@ jest.mocked([].foo).mockReturnValue(1); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-jest-mocked --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -74,6 +70,10 @@ oxlint --deny jest/prefer-jest-mocked --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-jest-mocked --jest-plugin +``` + ::: ## References 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 437de368b4..d5a3f702a3 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 @@ -155,14 +155,10 @@ describe("MyClass", () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-lowercase-title --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -172,6 +168,10 @@ oxlint --deny jest/prefer-lowercase-title --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-lowercase-title --jest-plugin +``` + ::: ## References 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 c078848eb7..d817da9535 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 @@ -57,14 +57,10 @@ myFunction ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-mock-promise-shorthand --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -74,6 +70,10 @@ oxlint --deny jest/prefer-mock-promise-shorthand --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-mock-promise-shorthand --jest-plugin +``` + ::: ## References 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 87b33b4796..efea2e851d 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 @@ -52,14 +52,10 @@ jest.spyOn(Date, "now").mockImplementation(() => 10); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-spy-on --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -69,6 +65,10 @@ oxlint --deny jest/prefer-spy-on --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-spy-on --jest-plugin +``` + ::: ## References 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 e3cb906e6e..1879deab5c 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 @@ -40,14 +40,10 @@ expect({ a: "a", b: undefined }).toStrictEqual({ a: "a" }); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-strict-equal --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -57,6 +53,10 @@ oxlint --deny jest/prefer-strict-equal --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-strict-equal --jest-plugin +``` + ::: ## References 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 d2195e08a3..e792acc4db 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 @@ -51,14 +51,10 @@ expect(catchError()).toStrictEqual({ message: "oh noes!" }); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-to-be --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -68,6 +64,10 @@ oxlint --deny jest/prefer-to-be --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-to-be --jest-plugin +``` + ::: ## References 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 40031894b1..3c214b401f 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 @@ -41,14 +41,10 @@ expect(a).not.toContain(b); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-to-contain --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -58,6 +54,10 @@ oxlint --deny jest/prefer-to-contain --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-to-contain --jest-plugin +``` + ::: ## References 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 0e3c716975..6e9bb3caa0 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 @@ -41,14 +41,10 @@ expect(files).toHaveLength(1); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-to-have-length --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -58,6 +54,10 @@ oxlint --deny jest/prefer-to-have-length --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-to-have-length --jest-plugin +``` + ::: ## References 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 37493659b5..a03f6f5f3c 100644 --- a/src/docs/guide/usage/linter/rules/jest/prefer-todo.md +++ b/src/docs/guide/usage/linter/rules/jest/prefer-todo.md @@ -40,14 +40,10 @@ test.todo("i need to write this test"); ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/prefer-todo --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -57,6 +53,10 @@ oxlint --deny jest/prefer-todo --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/prefer-todo --jest-plugin +``` + ::: ## References 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 36c484ade1..598a7895f3 100644 --- a/src/docs/guide/usage/linter/rules/jest/require-hook.md +++ b/src/docs/guide/usage/linter/rules/jest/require-hook.md @@ -142,14 +142,10 @@ An array of function names that are allowed to be called outside of hooks. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/require-hook --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -159,6 +155,10 @@ oxlint --deny jest/require-hook --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/require-hook --jest-plugin +``` + ::: ## References 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 698cabe267..795b0fac7b 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 @@ -48,14 +48,10 @@ test("all the things", async () => { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/require-to-throw-message --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -65,6 +61,10 @@ oxlint --deny jest/require-to-throw-message --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/require-to-throw-message --jest-plugin +``` + ::: ## References 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 71690eb2a5..28474d11a3 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 @@ -77,14 +77,10 @@ The maximum number of top-level `describe` blocks allowed in a test file. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/require-top-level-describe --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -94,6 +90,10 @@ oxlint --deny jest/require-top-level-describe --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/require-top-level-describe --jest-plugin +``` + ::: ## References 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 72a05dcc10..9115acf765 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 @@ -60,14 +60,10 @@ to use it, add the following configuration to your `.eslintrc.json`: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/valid-describe-callback --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -77,6 +73,10 @@ oxlint --deny jest/valid-describe-callback --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/valid-describe-callback --jest-plugin +``` + ::: ## References 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 578e9ffc43..2886aa7ffc 100644 --- a/src/docs/guide/usage/linter/rules/jest/valid-expect.md +++ b/src/docs/guide/usage/linter/rules/jest/valid-expect.md @@ -88,14 +88,10 @@ Minimum number of arguments `expect` should be called with. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/valid-expect --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -105,6 +101,10 @@ oxlint --deny jest/valid-expect --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/valid-expect --jest-plugin +``` + ::: ## References 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 596b6bbf01..f3287d85b8 100644 --- a/src/docs/guide/usage/linter/rules/jest/valid-title.md +++ b/src/docs/guide/usage/linter/rules/jest/valid-title.md @@ -68,14 +68,10 @@ interface Options { ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jest/valid-title --jest-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jest"], @@ -85,6 +81,10 @@ oxlint --deny jest/valid-title --jest-plugin } ``` +```bash [CLI] +oxlint --deny jest/valid-title --jest-plugin +``` + ::: ## References 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 168b1c90b7..f9a03f20f1 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/check-access.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/check-access.md @@ -49,14 +49,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/check-access --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -66,6 +62,10 @@ oxlint --deny jsdoc/check-access --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/check-access --jsdoc-plugin +``` + ::: ## References 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 7f4b0f4aac..5973752344 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 @@ -52,14 +52,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/check-property-names --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -69,6 +65,10 @@ oxlint --deny jsdoc/check-property-names --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/check-property-names --jsdoc-plugin +``` + ::: ## References 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 4bc415bd94..fbc7489a27 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 @@ -109,14 +109,10 @@ If typed is `true`, disallow tags that are unnecessary/duplicative of TypeScript ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/check-tag-names --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -126,6 +122,10 @@ oxlint --deny jsdoc/check-tag-names --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/check-tag-names --jsdoc-plugin +``` + ::: ## References 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 4ae8ed3695..918f9f8d88 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/empty-tags.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/empty-tags.md @@ -69,14 +69,10 @@ Additional tags to check for their descriptions. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/empty-tags --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -86,6 +82,10 @@ oxlint --deny jsdoc/empty-tags --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/empty-tags --jsdoc-plugin +``` + ::: ## References 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 153fcbd506..a35bbb43ec 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 @@ -48,14 +48,10 @@ function quux() {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/implements-on-classes --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -65,6 +61,10 @@ oxlint --deny jsdoc/implements-on-classes --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/implements-on-classes --jsdoc-plugin +``` + ::: ## References 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 d3d2807c5e..7a617d9a0c 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/no-defaults.md @@ -53,14 +53,10 @@ If true, report the presence of optional param names (square brackets) on `@para ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/no-defaults --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -70,6 +66,10 @@ oxlint --deny jsdoc/no-defaults --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/no-defaults --jsdoc-plugin +``` + ::: ## References 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 6b55561b65..171e184c8d 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 @@ -36,14 +36,10 @@ function quux(foo) {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-param-description --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -53,6 +49,10 @@ oxlint --deny jsdoc/require-param-description --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-param-description --jsdoc-plugin +``` + ::: ## References 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 9203e17d2b..d2efc6984f 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 @@ -36,14 +36,10 @@ function quux(foo) {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-param-name --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -53,6 +49,10 @@ oxlint --deny jsdoc/require-param-name --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-param-name --jsdoc-plugin +``` + ::: ## References 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 ff6e4c28a0..210e8fee2c 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 @@ -36,14 +36,10 @@ function quux(foo) {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-param-type --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -53,6 +49,10 @@ oxlint --deny jsdoc/require-param-type --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-param-type --jsdoc-plugin +``` + ::: ## References 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 141a54adfc..0e6c6d886b 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-param.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-param.md @@ -108,14 +108,10 @@ List of JSDoc tags that exempt functions from `@param` checking. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-param --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -125,6 +121,10 @@ oxlint --deny jsdoc/require-param --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-param --jsdoc-plugin +``` + ::: ## References 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 8fdc67bce0..17d96d006c 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 @@ -40,14 +40,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-property-description --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -57,6 +53,10 @@ oxlint --deny jsdoc/require-property-description --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-property-description --jsdoc-plugin +``` + ::: ## References 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 674f5ca2f6..145f7ce1f8 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 @@ -40,14 +40,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-property-name --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -57,6 +53,10 @@ oxlint --deny jsdoc/require-property-name --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-property-name --jsdoc-plugin +``` + ::: ## References 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 04293c8a92..d8ebf5d160 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 @@ -40,14 +40,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-property-type --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -57,6 +53,10 @@ oxlint --deny jsdoc/require-property-type --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-property-type --jsdoc-plugin +``` + ::: ## References 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 e044056c8d..2bc3e096d8 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-property.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-property.md @@ -51,14 +51,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-property --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -68,6 +64,10 @@ oxlint --deny jsdoc/require-property --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-property --jsdoc-plugin +``` + ::: ## References 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 08416320b7..1912b81c90 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 @@ -37,14 +37,10 @@ function quux(foo) {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-returns-description --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -54,6 +50,10 @@ oxlint --deny jsdoc/require-returns-description --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-returns-description --jsdoc-plugin +``` + ::: ## References 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 720a415ece..d860649cf7 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 @@ -36,14 +36,10 @@ function quux(foo) {} ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-returns-type --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -53,6 +49,10 @@ oxlint --deny jsdoc/require-returns-type --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-returns-type --jsdoc-plugin +``` + ::: ## References 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 8f8255a231..b4fa1e6cba 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-returns.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-returns.md @@ -93,14 +93,10 @@ Whether to require a `@returns` tag for async functions. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-returns --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -110,6 +106,10 @@ oxlint --deny jsdoc/require-returns --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-returns --jsdoc-plugin +``` + ::: ## References 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 b08d1a7785..113b50d9e7 100644 --- a/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md +++ b/src/docs/guide/usage/linter/rules/jsdoc/require-yields.md @@ -74,14 +74,10 @@ When `true`, require `@yields` when a `@generator` tag is present. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsdoc/require-yields --jsdoc-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsdoc"], @@ -91,6 +87,10 @@ oxlint --deny jsdoc/require-yields --jsdoc-plugin } ``` +```bash [CLI] +oxlint --deny jsdoc/require-yields --jsdoc-plugin +``` + ::: ## References 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 a3f14cfa57..d24d6d5518 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 @@ -80,14 +80,10 @@ Custom components to check for alt text on `object` elements. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/alt-text --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -97,6 +93,10 @@ oxlint --deny jsx-a11y/alt-text --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/alt-text --jsx-a11y-plugin +``` + ::: ## References diff --git a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md index 9b5b0b0078..e177a160fa 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/anchor-ambiguous-text.md @@ -56,14 +56,10 @@ List of ambiguous words or phrases that should be flagged in anchor text. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/anchor-ambiguous-text --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -73,6 +69,10 @@ oxlint --deny jsx-a11y/anchor-ambiguous-text --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/anchor-ambiguous-text --jsx-a11y-plugin +``` + ::: ## References 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 b582ee2756..a3257b9db9 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 @@ -43,14 +43,10 @@ Alternatively, you may use the `title` prop or the `aria-label` prop. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/anchor-has-content --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -60,6 +56,10 @@ oxlint --deny jsx-a11y/anchor-has-content --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/anchor-has-content --jsx-a11y-plugin +``` + ::: ## References 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 badf7e1d8b..45200b918d 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 @@ -91,14 +91,10 @@ List of strings that are valid href values. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/anchor-is-valid --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -108,6 +104,10 @@ oxlint --deny jsx-a11y/anchor-is-valid --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/anchor-is-valid --jsx-a11y-plugin +``` + ::: ## References 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 f3f86e43af..848a29db54 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 @@ -55,14 +55,10 @@ const Good = ( ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/aria-activedescendant-has-tabindex --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -72,6 +68,10 @@ oxlint --deny jsx-a11y/aria-activedescendant-has-tabindex --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/aria-activedescendant-has-tabindex --jsx-a11y-plugin +``` + ::: ## References 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 e3d6acb404..6f3e66170d 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 @@ -41,14 +41,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/aria-props --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -58,6 +54,10 @@ oxlint --deny jsx-a11y/aria-props --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/aria-props --jsx-a11y-plugin +``` + ::: ## References 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 e9f6085b90..2c354fcb47 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,14 +83,10 @@ Determines if developer-created components are checked. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/aria-role --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -100,6 +96,10 @@ oxlint --deny jsx-a11y/aria-role --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/aria-role --jsx-a11y-plugin +``` + ::: ## References 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 8946835c08..f6ab0f0893 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 @@ -41,14 +41,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/aria-unsupported-elements --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -58,6 +54,10 @@ oxlint --deny jsx-a11y/aria-unsupported-elements --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/aria-unsupported-elements --jsx-a11y-plugin +``` + ::: ## References 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 8421f95f75..440108512c 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 @@ -46,14 +46,10 @@ List of custom component names that should be treated as input elements. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/autocomplete-valid --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -63,6 +59,10 @@ oxlint --deny jsx-a11y/autocomplete-valid --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/autocomplete-valid --jsx-a11y-plugin +``` + ::: ## References 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 fef6db15d1..3e4d38d100 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 @@ -35,14 +35,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/click-events-have-key-events --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -52,6 +48,10 @@ oxlint --deny jsx-a11y/click-events-have-key-events --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/click-events-have-key-events --jsx-a11y-plugin +``` + ::: ## References 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 a4e19d2821..6720467fd5 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 @@ -52,14 +52,10 @@ These will be validated in addition to the standard h1-h6 elements. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/heading-has-content --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -69,6 +65,10 @@ oxlint --deny jsx-a11y/heading-has-content --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/heading-has-content --jsx-a11y-plugin +``` + ::: ## References 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 614ea02560..9452b5b905 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 @@ -37,14 +37,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/html-has-lang --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -54,6 +50,10 @@ oxlint --deny jsx-a11y/html-has-lang --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/html-has-lang --jsx-a11y-plugin +``` + ::: ## References 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 840232927c..64e98fbe74 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/iframe-has-title.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/iframe-has-title.md @@ -46,14 +46,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/iframe-has-title --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -63,6 +59,10 @@ oxlint --deny jsx-a11y/iframe-has-title --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/iframe-has-title --jsx-a11y-plugin +``` + ::: ## References 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 6c15b9c5d9..2f75fc1e29 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 @@ -95,14 +95,10 @@ Custom JSX components to be treated as labels. ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/label-has-associated-control --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -112,6 +108,10 @@ oxlint --deny jsx-a11y/label-has-associated-control --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/label-has-associated-control --jsx-a11y-plugin +``` + ::: ## References 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 3538019e07..e6680e1504 100644 --- a/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md +++ b/src/docs/guide/usage/linter/rules/jsx_a11y/lang.md @@ -44,14 +44,10 @@ Examples of **correct** code for this rule: ## How to use -To **enable** this rule in the CLI or using the config file, you can use: +To **enable** this rule using the config file or in the CLI, you can use: ::: code-group -```bash [CLI] -oxlint --deny jsx-a11y/lang --jsx-a11y-plugin -``` - ```json [Config (.oxlintrc.json)] { "plugins": ["jsx-a11y"], @@ -61,6 +57,10 @@ oxlint --deny jsx-a11y/lang --jsx-a11y-plugin } ``` +```bash [CLI] +oxlint --deny jsx-a11y/lang --jsx-a11y-plugin +``` + ::: ## References 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 366e80a6dd..7c3b45f2bd 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 @@ -66,14 +66,10 @@ Element names to treat as `