From ae4b449719d496fd611903d596341ec4c1d81c16 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Sun, 26 Jun 2022 06:26:14 +0200 Subject: [PATCH 1/4] docs: make logo link clickable on small width screens (#16058) --- docs/src/assets/scss/eslint-site-header.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/assets/scss/eslint-site-header.scss b/docs/src/assets/scss/eslint-site-header.scss index d8b88b44aed..239d14d3428 100644 --- a/docs/src/assets/scss/eslint-site-header.scss +++ b/docs/src/assets/scss/eslint-site-header.scss @@ -28,6 +28,7 @@ grid-column: 1 / -1; grid-row: 1; padding: .5rem 0; + z-index: 2; } .logo svg { From 6840940a766d671831d5cee0e3c0e2f4e642632a Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Mon, 27 Jun 2022 13:23:42 -0400 Subject: [PATCH 2/4] chore: correctly use .markdownlintignore in Makefile (#16060) --- Makefile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.js b/Makefile.js index 146aa03fc29..a9c527df557 100644 --- a/Makefile.js +++ b/Makefile.js @@ -22,6 +22,7 @@ const checker = require("npm-license"), ejs = require("ejs"), loadPerf = require("load-perf"), yaml = require("js-yaml"), + ignore = require("ignore"), { CLIEngine } = require("./lib/cli-engine"), builtinRules = require("./lib/rules/index"); @@ -72,8 +73,8 @@ const NODE = "node ", // intentional extra space // Files RULE_FILES = glob.sync("lib/rules/*.js").filter(filePath => path.basename(filePath) !== "index.js"), JSON_FILES = find("conf/").filter(fileType("json")), - MARKDOWNLINT_IGNORED_FILES = fs.readFileSync(path.join(__dirname, ".markdownlintignore"), "utf-8").split("\n"), - MARKDOWN_FILES_ARRAY = find("docs/").concat(ls(".")).filter(fileType("md")).filter(file => !MARKDOWNLINT_IGNORED_FILES.includes(file)), + MARKDOWNLINT_IGNORE_INSTANCE = ignore().add(fs.readFileSync(path.join(__dirname, ".markdownlintignore"), "utf-8")), + MARKDOWN_FILES_ARRAY = MARKDOWNLINT_IGNORE_INSTANCE.filter(find("docs/").concat(ls(".")).filter(fileType("md"))), TEST_FILES = "\"tests/{bin,conf,lib,tools}/**/*.js\"", PERF_ESLINTRC = path.join(PERF_TMP_DIR, "eslintrc.yml"), PERF_MULTIFILES_TARGET_DIR = path.join(PERF_TMP_DIR, "eslint"), From f50cf436aaa5dff1273f4753dd3fc6782f95a045 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Mon, 27 Jun 2022 17:52:54 -0700 Subject: [PATCH 3/4] docs: Add base href to each page to fix relative URLs (#16046) * fix: Set base URL on pages so relative URL links work Fixes #15844 * Use relative base URL --- docs/src/_includes/layouts/base.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/src/_includes/layouts/base.html b/docs/src/_includes/layouts/base.html index 1c5941a0ee1..188fd32d100 100644 --- a/docs/src/_includes/layouts/base.html +++ b/docs/src/_includes/layouts/base.html @@ -1,6 +1,5 @@ - @@ -24,7 +23,10 @@ {{ page_title }} - + + + + From b6aee9591ecc2e2f5738ab8bef20faac1e05b5c3 Mon Sep 17 00:00:00 2001 From: Strek Date: Tue, 28 Jun 2022 06:24:53 +0530 Subject: [PATCH 4/4] chore: remove unwanted comments from rules markdown (#16054) * chore: fixable comments are no longer needed * chore: remove reccommended and suggestions from markdowns as well --- docs/src/rules/array-bracket-newline.md | 2 +- docs/src/rules/array-bracket-spacing.md | 2 +- docs/src/rules/array-element-newline.md | 2 +- docs/src/rules/arrow-body-style.md | 2 -- docs/src/rules/arrow-parens.md | 2 +- docs/src/rules/arrow-spacing.md | 2 +- docs/src/rules/block-spacing.md | 2 +- docs/src/rules/brace-style.md | 2 +- docs/src/rules/capitalized-comments.md | 2 +- docs/src/rules/comma-dangle.md | 2 +- docs/src/rules/comma-spacing.md | 2 +- docs/src/rules/comma-style.md | 2 +- docs/src/rules/computed-property-spacing.md | 2 +- docs/src/rules/constructor-super.md | 2 -- docs/src/rules/curly.md | 2 +- docs/src/rules/dot-location.md | 2 +- docs/src/rules/dot-notation.md | 2 +- docs/src/rules/eol-last.md | 2 +- docs/src/rules/eqeqeq.md | 2 +- docs/src/rules/for-direction.md | 2 +- docs/src/rules/func-call-spacing.md | 2 +- docs/src/rules/function-call-argument-newline.md | 2 +- docs/src/rules/function-paren-newline.md | 2 +- docs/src/rules/generator-star-spacing.md | 2 +- docs/src/rules/getter-return.md | 2 +- docs/src/rules/implicit-arrow-linebreak.md | 2 +- docs/src/rules/indent-legacy.md | 2 +- docs/src/rules/indent.md | 2 +- docs/src/rules/jsx-quotes.md | 2 +- docs/src/rules/key-spacing.md | 2 +- docs/src/rules/keyword-spacing.md | 2 +- docs/src/rules/linebreak-style.md | 2 +- docs/src/rules/lines-around-comment.md | 2 +- docs/src/rules/lines-around-directive.md | 2 +- docs/src/rules/lines-between-class-members.md | 2 +- docs/src/rules/multiline-comment-style.md | 2 +- docs/src/rules/multiline-ternary.md | 2 +- docs/src/rules/new-parens.md | 2 +- docs/src/rules/newline-after-var.md | 2 +- docs/src/rules/newline-before-return.md | 2 +- docs/src/rules/newline-per-chained-call.md | 2 +- docs/src/rules/no-async-promise-executor.md | 2 +- docs/src/rules/no-case-declarations.md | 2 +- docs/src/rules/no-class-assign.md | 2 +- docs/src/rules/no-compare-neg-zero.md | 2 +- docs/src/rules/no-cond-assign.md | 2 +- docs/src/rules/no-confusing-arrow.md | 2 +- docs/src/rules/no-const-assign.md | 2 +- docs/src/rules/no-constant-condition.md | 2 +- docs/src/rules/no-control-regex.md | 2 +- docs/src/rules/no-debugger.md | 2 +- docs/src/rules/no-delete-var.md | 2 +- docs/src/rules/no-div-regex.md | 2 +- docs/src/rules/no-dupe-args.md | 2 +- docs/src/rules/no-dupe-class-members.md | 2 +- docs/src/rules/no-dupe-else-if.md | 2 +- docs/src/rules/no-dupe-keys.md | 2 +- docs/src/rules/no-duplicate-case.md | 2 +- docs/src/rules/no-else-return.md | 2 +- docs/src/rules/no-empty-character-class.md | 2 +- docs/src/rules/no-empty-pattern.md | 2 +- docs/src/rules/no-empty.md | 2 +- docs/src/rules/no-ex-assign.md | 2 +- docs/src/rules/no-extra-bind.md | 2 +- docs/src/rules/no-extra-boolean-cast.md | 4 ++-- docs/src/rules/no-extra-label.md | 2 +- docs/src/rules/no-extra-parens.md | 2 +- docs/src/rules/no-extra-semi.md | 4 ++-- docs/src/rules/no-fallthrough.md | 2 +- docs/src/rules/no-floating-decimal.md | 2 +- docs/src/rules/no-func-assign.md | 2 +- docs/src/rules/no-global-assign.md | 2 +- docs/src/rules/no-implicit-coercion.md | 2 +- docs/src/rules/no-import-assign.md | 2 +- docs/src/rules/no-inner-declarations.md | 2 +- docs/src/rules/no-invalid-regexp.md | 2 +- docs/src/rules/no-irregular-whitespace.md | 2 +- docs/src/rules/no-lonely-if.md | 2 +- docs/src/rules/no-loss-of-precision.md | 2 +- docs/src/rules/no-misleading-character-class.md | 4 ++-- docs/src/rules/no-mixed-spaces-and-tabs.md | 2 +- docs/src/rules/no-multi-spaces.md | 2 +- docs/src/rules/no-multiple-empty-lines.md | 2 +- docs/src/rules/no-new-symbol.md | 2 +- docs/src/rules/no-nonoctal-decimal-escape.md | 4 ++-- docs/src/rules/no-obj-calls.md | 2 +- docs/src/rules/no-octal.md | 2 +- docs/src/rules/no-prototype-builtins.md | 2 +- docs/src/rules/no-redeclare.md | 2 +- docs/src/rules/no-regex-spaces.md | 4 ++-- docs/src/rules/no-self-assign.md | 2 +- docs/src/rules/no-setter-return.md | 2 +- docs/src/rules/no-shadow-restricted-names.md | 2 +- docs/src/rules/no-spaced-func.md | 2 +- docs/src/rules/no-sparse-arrays.md | 2 +- docs/src/rules/no-this-before-super.md | 2 +- docs/src/rules/no-trailing-spaces.md | 2 +- docs/src/rules/no-undef-init.md | 2 +- docs/src/rules/no-undef.md | 2 +- docs/src/rules/no-unexpected-multiline.md | 2 +- docs/src/rules/no-unneeded-ternary.md | 2 +- docs/src/rules/no-unreachable.md | 2 +- docs/src/rules/no-unsafe-finally.md | 2 +- docs/src/rules/no-unsafe-negation.md | 4 ++-- docs/src/rules/no-unsafe-optional-chaining.md | 2 +- docs/src/rules/no-unused-labels.md | 4 ++-- docs/src/rules/no-unused-vars.md | 2 +- docs/src/rules/no-useless-backreference.md | 2 +- docs/src/rules/no-useless-catch.md | 2 +- docs/src/rules/no-useless-computed-key.md | 2 +- docs/src/rules/no-useless-escape.md | 4 ++-- docs/src/rules/no-useless-rename.md | 2 +- docs/src/rules/no-useless-return.md | 2 +- docs/src/rules/no-var.md | 2 +- docs/src/rules/no-whitespace-before-property.md | 2 +- docs/src/rules/no-with.md | 2 +- docs/src/rules/nonblock-statement-body-position.md | 2 +- docs/src/rules/object-curly-newline.md | 2 +- docs/src/rules/object-curly-spacing.md | 2 +- docs/src/rules/object-property-newline.md | 2 +- docs/src/rules/object-shorthand.md | 2 +- docs/src/rules/one-var-declaration-per-line.md | 2 +- docs/src/rules/one-var.md | 2 +- docs/src/rules/operator-assignment.md | 2 +- docs/src/rules/operator-linebreak.md | 2 +- docs/src/rules/padded-blocks.md | 2 +- docs/src/rules/padding-line-between-statements.md | 2 +- docs/src/rules/prefer-arrow-callback.md | 2 +- docs/src/rules/prefer-const.md | 2 +- docs/src/rules/prefer-destructuring.md | 2 +- docs/src/rules/prefer-exponentiation-operator.md | 2 +- docs/src/rules/prefer-numeric-literals.md | 2 +- docs/src/rules/prefer-object-has-own.md | 2 +- docs/src/rules/prefer-object-spread.md | 2 +- docs/src/rules/prefer-regex-literals.md | 2 +- docs/src/rules/prefer-template.md | 2 +- docs/src/rules/quote-props.md | 2 +- docs/src/rules/quotes.md | 2 +- docs/src/rules/radix.md | 2 +- docs/src/rules/require-yield.md | 2 +- docs/src/rules/rest-spread-spacing.md | 2 +- docs/src/rules/semi-spacing.md | 2 +- docs/src/rules/semi-style.md | 2 +- docs/src/rules/semi.md | 2 +- docs/src/rules/sort-imports.md | 2 +- docs/src/rules/sort-vars.md | 2 +- docs/src/rules/space-before-blocks.md | 2 +- docs/src/rules/space-before-function-paren.md | 2 +- docs/src/rules/space-in-parens.md | 2 +- docs/src/rules/space-infix-ops.md | 2 +- docs/src/rules/space-unary-ops.md | 2 +- docs/src/rules/spaced-comment.md | 2 +- docs/src/rules/strict.md | 2 +- docs/src/rules/switch-colon-spacing.md | 2 +- docs/src/rules/template-curly-spacing.md | 2 +- docs/src/rules/template-tag-spacing.md | 2 +- docs/src/rules/unicode-bom.md | 2 +- docs/src/rules/use-isnan.md | 2 +- docs/src/rules/valid-jsdoc.md | 2 +- docs/src/rules/valid-typeof.md | 4 ++-- docs/src/rules/wrap-iife.md | 2 +- docs/src/rules/wrap-regex.md | 2 +- docs/src/rules/yield-star-spacing.md | 2 +- docs/src/rules/yoda.md | 2 +- 164 files changed, 171 insertions(+), 175 deletions(-) diff --git a/docs/src/rules/array-bracket-newline.md b/docs/src/rules/array-bracket-newline.md index 4d5446ef8fb..e5efdb36f71 100644 --- a/docs/src/rules/array-bracket-newline.md +++ b/docs/src/rules/array-bracket-newline.md @@ -7,7 +7,7 @@ related_rules: - array-bracket-spacing --- - + Enforces line breaks after opening and before closing array brackets. diff --git a/docs/src/rules/array-bracket-spacing.md b/docs/src/rules/array-bracket-spacing.md index 46708632238..b4270518a6e 100644 --- a/docs/src/rules/array-bracket-spacing.md +++ b/docs/src/rules/array-bracket-spacing.md @@ -9,7 +9,7 @@ related_rules: - computed-property-spacing --- - + Disallows or enforce spaces inside of brackets. diff --git a/docs/src/rules/array-element-newline.md b/docs/src/rules/array-element-newline.md index 9224cfabc90..f1e0c8a9723 100644 --- a/docs/src/rules/array-element-newline.md +++ b/docs/src/rules/array-element-newline.md @@ -14,7 +14,7 @@ related_rules: - brace-style --- - + Enforces line breaks between array elements. diff --git a/docs/src/rules/arrow-body-style.md b/docs/src/rules/arrow-body-style.md index bfba7bfee47..1234a4250fa 100644 --- a/docs/src/rules/arrow-body-style.md +++ b/docs/src/rules/arrow-body-style.md @@ -5,8 +5,6 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/arrow-body- rule_type: suggestion --- - - Requires braces in arrow function bodies. Arrow functions have two syntactic forms for their function bodies. They may be defined with a *block* body (denoted by curly braces) `() => { ... }` or with a single expression `() => ...`, whose value is implicitly returned. diff --git a/docs/src/rules/arrow-parens.md b/docs/src/rules/arrow-parens.md index 97329156197..5e5ff03bd58 100644 --- a/docs/src/rules/arrow-parens.md +++ b/docs/src/rules/arrow-parens.md @@ -7,7 +7,7 @@ further_reading: - https://github.com/airbnb/javascript#arrows--one-arg-parens --- - + Requires parens in arrow function arguments. diff --git a/docs/src/rules/arrow-spacing.md b/docs/src/rules/arrow-spacing.md index 05c6d3a59dd..0cf54c5beff 100644 --- a/docs/src/rules/arrow-spacing.md +++ b/docs/src/rules/arrow-spacing.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/arrow-spaci rule_type: layout --- - + Requires space before/after arrow function's arrow. diff --git a/docs/src/rules/block-spacing.md b/docs/src/rules/block-spacing.md index 01679467265..cd090166bb1 100644 --- a/docs/src/rules/block-spacing.md +++ b/docs/src/rules/block-spacing.md @@ -8,7 +8,7 @@ related_rules: - brace-style --- - + Disallows or enforces spaces inside of blocks after opening blocks and before closing blocks. diff --git a/docs/src/rules/brace-style.md b/docs/src/rules/brace-style.md index a6c83cefd57..39ddbc7168e 100644 --- a/docs/src/rules/brace-style.md +++ b/docs/src/rules/brace-style.md @@ -10,7 +10,7 @@ further_reading: - https://en.wikipedia.org/wiki/Indent_style --- - + Enforces consistent brace style for blocks. diff --git a/docs/src/rules/capitalized-comments.md b/docs/src/rules/capitalized-comments.md index 9513051eaad..7342fc48600 100644 --- a/docs/src/rules/capitalized-comments.md +++ b/docs/src/rules/capitalized-comments.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/capitalized rule_type: suggestion --- - + Enforces or disallows capitalization of the first letter of a comment. diff --git a/docs/src/rules/comma-dangle.md b/docs/src/rules/comma-dangle.md index b44a49728cd..071d47bca5d 100644 --- a/docs/src/rules/comma-dangle.md +++ b/docs/src/rules/comma-dangle.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/comma-dangl rule_type: layout --- - + Requires or disallows trailing commas. diff --git a/docs/src/rules/comma-spacing.md b/docs/src/rules/comma-spacing.md index c64c6068257..8c14a0b271f 100644 --- a/docs/src/rules/comma-spacing.md +++ b/docs/src/rules/comma-spacing.md @@ -17,7 +17,7 @@ further_reading: - https://dojotoolkit.org/reference-guide/1.9/developer/styleguide.html --- - + Enforces spacing around commas. diff --git a/docs/src/rules/comma-style.md b/docs/src/rules/comma-style.md index eb455f334b3..3efb6dc57d3 100644 --- a/docs/src/rules/comma-style.md +++ b/docs/src/rules/comma-style.md @@ -9,7 +9,7 @@ further_reading: - https://gist.github.com/isaacs/357981 --- - + Enforces consistent comma styles. diff --git a/docs/src/rules/computed-property-spacing.md b/docs/src/rules/computed-property-spacing.md index 99999b8827d..577a51936f8 100644 --- a/docs/src/rules/computed-property-spacing.md +++ b/docs/src/rules/computed-property-spacing.md @@ -9,7 +9,7 @@ related_rules: - space-in-parens --- - + Disallows or enforces spaces inside of computed properties. diff --git a/docs/src/rules/constructor-super.md b/docs/src/rules/constructor-super.md index 376ca8374ee..c83cc34ac02 100644 --- a/docs/src/rules/constructor-super.md +++ b/docs/src/rules/constructor-super.md @@ -5,8 +5,6 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/constructor rule_type: problem --- - - Verifies calls of `super()` in constructors. Constructors of derived classes must call `super()`. diff --git a/docs/src/rules/curly.md b/docs/src/rules/curly.md index 96fd2681df4..b9ab572b26f 100644 --- a/docs/src/rules/curly.md +++ b/docs/src/rules/curly.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/curly.md rule_type: suggestion --- - + Requires following curly brace conventions. diff --git a/docs/src/rules/dot-location.md b/docs/src/rules/dot-location.md index 987fe0369d3..9fe5ce25e8c 100644 --- a/docs/src/rules/dot-location.md +++ b/docs/src/rules/dot-location.md @@ -8,7 +8,7 @@ related_rules: - dot-notation --- - + Enforces newline before and after dots. diff --git a/docs/src/rules/dot-notation.md b/docs/src/rules/dot-notation.md index 0e15b18800b..d00f49671dd 100644 --- a/docs/src/rules/dot-notation.md +++ b/docs/src/rules/dot-notation.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/dot-notatio rule_type: suggestion --- - + Enforces dot notation whenever possible. diff --git a/docs/src/rules/eol-last.md b/docs/src/rules/eol-last.md index 65684c89138..620d4d4cdd9 100644 --- a/docs/src/rules/eol-last.md +++ b/docs/src/rules/eol-last.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/eol-last.md rule_type: layout --- - + Requires or disallows newline at the end of files. diff --git a/docs/src/rules/eqeqeq.md b/docs/src/rules/eqeqeq.md index a9016bc4919..3bbf3a6fe91 100644 --- a/docs/src/rules/eqeqeq.md +++ b/docs/src/rules/eqeqeq.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/eqeqeq.md rule_type: suggestion --- - + Requires the use of `===` and `!==`. diff --git a/docs/src/rules/for-direction.md b/docs/src/rules/for-direction.md index b98410a5fb6..bfecc588ed0 100644 --- a/docs/src/rules/for-direction.md +++ b/docs/src/rules/for-direction.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/for-directi rule_type: problem --- - + Enforces `for` loop update clause moving the counter in the right direction. diff --git a/docs/src/rules/func-call-spacing.md b/docs/src/rules/func-call-spacing.md index 63e8b9b6a1c..0b2f282bf8d 100644 --- a/docs/src/rules/func-call-spacing.md +++ b/docs/src/rules/func-call-spacing.md @@ -7,7 +7,7 @@ related_rules: - no-spaced-func --- - + Requires or disallows spacing between function identifiers and their invocations. diff --git a/docs/src/rules/function-call-argument-newline.md b/docs/src/rules/function-call-argument-newline.md index 61de2433ac3..584553e1f13 100644 --- a/docs/src/rules/function-call-argument-newline.md +++ b/docs/src/rules/function-call-argument-newline.md @@ -10,7 +10,7 @@ related_rules: - array-element-newline --- - + Enforces line breaks between arguments of a function call. diff --git a/docs/src/rules/function-paren-newline.md b/docs/src/rules/function-paren-newline.md index 456f750c4b5..05611807074 100644 --- a/docs/src/rules/function-paren-newline.md +++ b/docs/src/rules/function-paren-newline.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/function-pa rule_type: layout --- - + Enforces consistent line breaks inside function parentheses. diff --git a/docs/src/rules/generator-star-spacing.md b/docs/src/rules/generator-star-spacing.md index f2cedb49fdc..def84cc5e90 100644 --- a/docs/src/rules/generator-star-spacing.md +++ b/docs/src/rules/generator-star-spacing.md @@ -7,7 +7,7 @@ further_reading: - https://leanpub.com/understandinges6/read/#leanpub-auto-generators --- - + Enforces spacing around the `*` in generator functions. diff --git a/docs/src/rules/getter-return.md b/docs/src/rules/getter-return.md index b3eb85c8f96..a64b7b68067 100644 --- a/docs/src/rules/getter-return.md +++ b/docs/src/rules/getter-return.md @@ -8,7 +8,7 @@ further_reading: - https://leanpub.com/understandinges6/read/#leanpub-auto-accessor-properties --- - + Enforces that a `return` statement is present in property getters. diff --git a/docs/src/rules/implicit-arrow-linebreak.md b/docs/src/rules/implicit-arrow-linebreak.md index 5bc5ee51002..20ccf5ee4e7 100644 --- a/docs/src/rules/implicit-arrow-linebreak.md +++ b/docs/src/rules/implicit-arrow-linebreak.md @@ -7,7 +7,7 @@ related_rules: - brace-style --- - + Enforces the location of arrow function bodies with implicit returns. diff --git a/docs/src/rules/indent-legacy.md b/docs/src/rules/indent-legacy.md index 6a2003ecf07..4c8fe7958f6 100644 --- a/docs/src/rules/indent-legacy.md +++ b/docs/src/rules/indent-legacy.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/indent-lega rule_type: layout --- - + Enforces consistent indentation. diff --git a/docs/src/rules/indent.md b/docs/src/rules/indent.md index d2ddfb73922..bb37b4864e5 100644 --- a/docs/src/rules/indent.md +++ b/docs/src/rules/indent.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/indent.md rule_type: layout --- - + Enforces consistent indentation. diff --git a/docs/src/rules/jsx-quotes.md b/docs/src/rules/jsx-quotes.md index a417ba71ec0..65e07de321b 100644 --- a/docs/src/rules/jsx-quotes.md +++ b/docs/src/rules/jsx-quotes.md @@ -7,7 +7,7 @@ related_rules: - quotes --- - + Enforces the consistent use of either double or single quotes in JSX attributes. diff --git a/docs/src/rules/key-spacing.md b/docs/src/rules/key-spacing.md index a19f2a5a701..cc48fe66d76 100644 --- a/docs/src/rules/key-spacing.md +++ b/docs/src/rules/key-spacing.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/key-spacing rule_type: layout --- - + Enforces consistent spacing between keys and values in object literal properties. diff --git a/docs/src/rules/keyword-spacing.md b/docs/src/rules/keyword-spacing.md index 008efd77c70..9508bf721dc 100644 --- a/docs/src/rules/keyword-spacing.md +++ b/docs/src/rules/keyword-spacing.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/keyword-spa rule_type: layout --- - + Enforces consistent spacing before and after keywords. diff --git a/docs/src/rules/linebreak-style.md b/docs/src/rules/linebreak-style.md index f20b79690df..57ca92938a7 100644 --- a/docs/src/rules/linebreak-style.md +++ b/docs/src/rules/linebreak-style.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/linebreak-s rule_type: layout --- - + Enforces consistent linebreak style. diff --git a/docs/src/rules/lines-around-comment.md b/docs/src/rules/lines-around-comment.md index 6de964d4275..69536e361af 100644 --- a/docs/src/rules/lines-around-comment.md +++ b/docs/src/rules/lines-around-comment.md @@ -8,7 +8,7 @@ related_rules: - spaced-comment --- - + Requires empty lines around comments. diff --git a/docs/src/rules/lines-around-directive.md b/docs/src/rules/lines-around-directive.md index 4bb7fa6359c..ca288799cd7 100644 --- a/docs/src/rules/lines-around-directive.md +++ b/docs/src/rules/lines-around-directive.md @@ -8,7 +8,7 @@ related_rules: - padded-blocks --- - + Requires or disallow newlines around directives. diff --git a/docs/src/rules/lines-between-class-members.md b/docs/src/rules/lines-between-class-members.md index c263460f8c9..017d91a5655 100644 --- a/docs/src/rules/lines-between-class-members.md +++ b/docs/src/rules/lines-between-class-members.md @@ -8,7 +8,7 @@ related_rules: - padding-line-between-statements --- - + Requires or disallows an empty line between class members. diff --git a/docs/src/rules/multiline-comment-style.md b/docs/src/rules/multiline-comment-style.md index 4a804590e87..51ff098c6b1 100644 --- a/docs/src/rules/multiline-comment-style.md +++ b/docs/src/rules/multiline-comment-style.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/multiline-c rule_type: suggestion --- - + Enforces a particular style for multiline comments. diff --git a/docs/src/rules/multiline-ternary.md b/docs/src/rules/multiline-ternary.md index bb17b18fa92..e5577d58026 100644 --- a/docs/src/rules/multiline-ternary.md +++ b/docs/src/rules/multiline-ternary.md @@ -7,7 +7,7 @@ related_rules: - operator-linebreak --- - + Enforces or disallows newlines between operands of ternary expressions. diff --git a/docs/src/rules/new-parens.md b/docs/src/rules/new-parens.md index c294314fa91..c3d1c59fd12 100644 --- a/docs/src/rules/new-parens.md +++ b/docs/src/rules/new-parens.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/new-parens. rule_type: layout --- - + Requires parentheses when invoking a constructor with no arguments. diff --git a/docs/src/rules/newline-after-var.md b/docs/src/rules/newline-after-var.md index e80fe0caa4e..2f6a61cbd3e 100644 --- a/docs/src/rules/newline-after-var.md +++ b/docs/src/rules/newline-after-var.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/newline-aft rule_type: layout --- - + Requires or disallows an empty line after variable declarations. diff --git a/docs/src/rules/newline-before-return.md b/docs/src/rules/newline-before-return.md index f07fdcb5830..03b36e3f04d 100644 --- a/docs/src/rules/newline-before-return.md +++ b/docs/src/rules/newline-before-return.md @@ -7,7 +7,7 @@ related_rules: - newline-after-var --- - + Requires an empty line before `return` statements. diff --git a/docs/src/rules/newline-per-chained-call.md b/docs/src/rules/newline-per-chained-call.md index 575055ffea5..fba64e1f676 100644 --- a/docs/src/rules/newline-per-chained-call.md +++ b/docs/src/rules/newline-per-chained-call.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/newline-per rule_type: layout --- - + Requires a newline after each call in a method chain. diff --git a/docs/src/rules/no-async-promise-executor.md b/docs/src/rules/no-async-promise-executor.md index d047a662dfd..da6e00b1977 100644 --- a/docs/src/rules/no-async-promise-executor.md +++ b/docs/src/rules/no-async-promise-executor.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-async-pr rule_type: problem --- - + Disallows using an async function as a Promise executor. diff --git a/docs/src/rules/no-case-declarations.md b/docs/src/rules/no-case-declarations.md index 3d93c257929..c5a5c1bedb9 100644 --- a/docs/src/rules/no-case-declarations.md +++ b/docs/src/rules/no-case-declarations.md @@ -7,7 +7,7 @@ related_rules: - no-fallthrough --- - + Disallows lexical declarations in case/default clauses. diff --git a/docs/src/rules/no-class-assign.md b/docs/src/rules/no-class-assign.md index 987e19260da..9b0a5b38b3a 100644 --- a/docs/src/rules/no-class-assign.md +++ b/docs/src/rules/no-class-assign.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-class-as rule_type: problem --- - + Disallows modifying variables of class declarations. diff --git a/docs/src/rules/no-compare-neg-zero.md b/docs/src/rules/no-compare-neg-zero.md index d71b0906fcf..ce5e2e11f16 100644 --- a/docs/src/rules/no-compare-neg-zero.md +++ b/docs/src/rules/no-compare-neg-zero.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-compare- rule_type: problem --- - + Disallows comparing against `-0`. diff --git a/docs/src/rules/no-cond-assign.md b/docs/src/rules/no-cond-assign.md index 6b8275d8f3d..78c86e91a9b 100644 --- a/docs/src/rules/no-cond-assign.md +++ b/docs/src/rules/no-cond-assign.md @@ -7,7 +7,7 @@ related_rules: - no-extra-parens --- - + Disallows assignment operators in conditional statements. diff --git a/docs/src/rules/no-confusing-arrow.md b/docs/src/rules/no-confusing-arrow.md index 99c371fc7f1..4e549f33f53 100644 --- a/docs/src/rules/no-confusing-arrow.md +++ b/docs/src/rules/no-confusing-arrow.md @@ -8,7 +8,7 @@ related_rules: - arrow-parens --- - + Disallows arrow functions where they could be confused with comparisons. diff --git a/docs/src/rules/no-const-assign.md b/docs/src/rules/no-const-assign.md index e92ce1472ad..c9885fe90b6 100644 --- a/docs/src/rules/no-const-assign.md +++ b/docs/src/rules/no-const-assign.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-const-as rule_type: problem --- - + Disallows modifying variables that are declared using `const`. diff --git a/docs/src/rules/no-constant-condition.md b/docs/src/rules/no-constant-condition.md index c7fb1cdf00b..b5674e3d12a 100644 --- a/docs/src/rules/no-constant-condition.md +++ b/docs/src/rules/no-constant-condition.md @@ -7,7 +7,7 @@ related_rules: - no-constant-binary-expression --- - + Disallows constant expressions in conditions. diff --git a/docs/src/rules/no-control-regex.md b/docs/src/rules/no-control-regex.md index 068a7228fd9..55111279673 100644 --- a/docs/src/rules/no-control-regex.md +++ b/docs/src/rules/no-control-regex.md @@ -8,7 +8,7 @@ related_rules: - no-regex-spaces --- - + Disallows control characters in regular expressions. diff --git a/docs/src/rules/no-debugger.md b/docs/src/rules/no-debugger.md index 08edf8de5c8..d62376cdb0b 100644 --- a/docs/src/rules/no-debugger.md +++ b/docs/src/rules/no-debugger.md @@ -10,7 +10,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger --- - + Disallows the use of `debugger`. diff --git a/docs/src/rules/no-delete-var.md b/docs/src/rules/no-delete-var.md index 7ec9a453c4c..808c6d2b066 100644 --- a/docs/src/rules/no-delete-var.md +++ b/docs/src/rules/no-delete-var.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-delete-v rule_type: suggestion --- - + Disallows deleting variables. diff --git a/docs/src/rules/no-div-regex.md b/docs/src/rules/no-div-regex.md index 5c3b794b300..5e7c3f0bc5d 100644 --- a/docs/src/rules/no-div-regex.md +++ b/docs/src/rules/no-div-regex.md @@ -8,7 +8,7 @@ related_rules: - no-regex-spaces --- - + Disallows regular expressions that look like division. diff --git a/docs/src/rules/no-dupe-args.md b/docs/src/rules/no-dupe-args.md index 904ca6dd219..d5d8df0a181 100644 --- a/docs/src/rules/no-dupe-args.md +++ b/docs/src/rules/no-dupe-args.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-dupe-arg rule_type: problem --- - + Disallows duplicate arguments in `function` definitions. diff --git a/docs/src/rules/no-dupe-class-members.md b/docs/src/rules/no-dupe-class-members.md index f54b06be56e..27bc1b3fc15 100644 --- a/docs/src/rules/no-dupe-class-members.md +++ b/docs/src/rules/no-dupe-class-members.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-dupe-cla rule_type: problem --- - + Disallows duplicate name in class members. diff --git a/docs/src/rules/no-dupe-else-if.md b/docs/src/rules/no-dupe-else-if.md index f53128e64be..0e2e2897048 100644 --- a/docs/src/rules/no-dupe-else-if.md +++ b/docs/src/rules/no-dupe-else-if.md @@ -8,7 +8,7 @@ related_rules: - no-lonely-if --- - + Disallows duplicate conditions in `if-else-if` chains. diff --git a/docs/src/rules/no-dupe-keys.md b/docs/src/rules/no-dupe-keys.md index 58e04139bc8..c83b944b8e7 100644 --- a/docs/src/rules/no-dupe-keys.md +++ b/docs/src/rules/no-dupe-keys.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-dupe-key rule_type: problem --- - + Disallows duplicate keys in object literals. diff --git a/docs/src/rules/no-duplicate-case.md b/docs/src/rules/no-duplicate-case.md index 147fd87cd7e..11affc0d3ae 100644 --- a/docs/src/rules/no-duplicate-case.md +++ b/docs/src/rules/no-duplicate-case.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-duplicat rule_type: problem --- - + Disallows duplicate `case` labels. diff --git a/docs/src/rules/no-else-return.md b/docs/src/rules/no-else-return.md index 9037caa90bf..8dc307a0485 100644 --- a/docs/src/rules/no-else-return.md +++ b/docs/src/rules/no-else-return.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-else-ret rule_type: suggestion --- - + Disallows `return` before `else`. diff --git a/docs/src/rules/no-empty-character-class.md b/docs/src/rules/no-empty-character-class.md index 1c27cd96d00..89038ea006b 100644 --- a/docs/src/rules/no-empty-character-class.md +++ b/docs/src/rules/no-empty-character-class.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-empty-ch rule_type: problem --- - + Disallows empty character classes in regular expressions. diff --git a/docs/src/rules/no-empty-pattern.md b/docs/src/rules/no-empty-pattern.md index 509c91e517e..b22a7c9daa6 100644 --- a/docs/src/rules/no-empty-pattern.md +++ b/docs/src/rules/no-empty-pattern.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-empty-pa rule_type: problem --- - + Disallows empty destructuring patterns. diff --git a/docs/src/rules/no-empty.md b/docs/src/rules/no-empty.md index f0727af1300..4993557fd1b 100644 --- a/docs/src/rules/no-empty.md +++ b/docs/src/rules/no-empty.md @@ -7,7 +7,7 @@ related_rules: - no-empty-function --- - + Disallows empty block statements. diff --git a/docs/src/rules/no-ex-assign.md b/docs/src/rules/no-ex-assign.md index 45ec00c4bfd..ba7d8d10718 100644 --- a/docs/src/rules/no-ex-assign.md +++ b/docs/src/rules/no-ex-assign.md @@ -7,7 +7,7 @@ further_reading: - https://bocoup.com/blog/the-catch-with-try-catch --- - + Disallows reassigning exceptions in `catch` clauses. diff --git a/docs/src/rules/no-extra-bind.md b/docs/src/rules/no-extra-bind.md index 0c7b9d86de9..ec078f4eb26 100644 --- a/docs/src/rules/no-extra-bind.md +++ b/docs/src/rules/no-extra-bind.md @@ -8,7 +8,7 @@ further_reading: - https://www.smashingmagazine.com/2014/01/understanding-javascript-function-prototype-bind/ --- - + Disallows unnecessary function binding. diff --git a/docs/src/rules/no-extra-boolean-cast.md b/docs/src/rules/no-extra-boolean-cast.md index 201dba0fb17..d32a21bc675 100644 --- a/docs/src/rules/no-extra-boolean-cast.md +++ b/docs/src/rules/no-extra-boolean-cast.md @@ -5,9 +5,9 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-extra-bo rule_type: suggestion --- - - + + Disallows unnecessary boolean casts. diff --git a/docs/src/rules/no-extra-label.md b/docs/src/rules/no-extra-label.md index dc37efe8b55..454bde82e4a 100644 --- a/docs/src/rules/no-extra-label.md +++ b/docs/src/rules/no-extra-label.md @@ -9,7 +9,7 @@ related_rules: - no-unused-labels --- - + Disallows unnecessary labels. diff --git a/docs/src/rules/no-extra-parens.md b/docs/src/rules/no-extra-parens.md index 8dc991746ef..3589486915f 100644 --- a/docs/src/rules/no-extra-parens.md +++ b/docs/src/rules/no-extra-parens.md @@ -11,7 +11,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence --- - + Disallows unnecessary parentheses. diff --git a/docs/src/rules/no-extra-semi.md b/docs/src/rules/no-extra-semi.md index 906162c3a07..af27ac9328f 100644 --- a/docs/src/rules/no-extra-semi.md +++ b/docs/src/rules/no-extra-semi.md @@ -8,9 +8,9 @@ related_rules: - semi-spacing --- - - + + Disallows unnecessary semicolons. diff --git a/docs/src/rules/no-fallthrough.md b/docs/src/rules/no-fallthrough.md index c73bf3a0943..4736573a7d8 100644 --- a/docs/src/rules/no-fallthrough.md +++ b/docs/src/rules/no-fallthrough.md @@ -7,7 +7,7 @@ related_rules: - default-case --- - + Disallows case statement fallthroughs. diff --git a/docs/src/rules/no-floating-decimal.md b/docs/src/rules/no-floating-decimal.md index e8ae79a3612..533e3134e7b 100644 --- a/docs/src/rules/no-floating-decimal.md +++ b/docs/src/rules/no-floating-decimal.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-floating rule_type: suggestion --- - + Disallows leading or trailing decimal points in numeric literals. diff --git a/docs/src/rules/no-func-assign.md b/docs/src/rules/no-func-assign.md index 178f136b67b..e5a984a58c4 100644 --- a/docs/src/rules/no-func-assign.md +++ b/docs/src/rules/no-func-assign.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-func-ass rule_type: problem --- - + Disallows reassigning `function` declarations. diff --git a/docs/src/rules/no-global-assign.md b/docs/src/rules/no-global-assign.md index 58bd4fc5479..ad41d1a3e4c 100644 --- a/docs/src/rules/no-global-assign.md +++ b/docs/src/rules/no-global-assign.md @@ -9,7 +9,7 @@ related_rules: - no-shadow --- - + Disallows assignment to native objects or read-only global variables. diff --git a/docs/src/rules/no-implicit-coercion.md b/docs/src/rules/no-implicit-coercion.md index cfc5b54f3db..3de46cb032e 100644 --- a/docs/src/rules/no-implicit-coercion.md +++ b/docs/src/rules/no-implicit-coercion.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-implicit rule_type: suggestion --- - + Disallows shorthand type conversions. diff --git a/docs/src/rules/no-import-assign.md b/docs/src/rules/no-import-assign.md index 4da47a23e67..2421a549d43 100644 --- a/docs/src/rules/no-import-assign.md +++ b/docs/src/rules/no-import-assign.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-import-a rule_type: problem --- - + Disallows assigning to imported bindings. diff --git a/docs/src/rules/no-inner-declarations.md b/docs/src/rules/no-inner-declarations.md index e6211d0e6f1..06acca8c5fe 100644 --- a/docs/src/rules/no-inner-declarations.md +++ b/docs/src/rules/no-inner-declarations.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-inner-de rule_type: problem --- - + Disallows variable or `function` declarations in nested blocks. diff --git a/docs/src/rules/no-invalid-regexp.md b/docs/src/rules/no-invalid-regexp.md index cf96a55541f..c203fec5a91 100644 --- a/docs/src/rules/no-invalid-regexp.md +++ b/docs/src/rules/no-invalid-regexp.md @@ -7,7 +7,7 @@ further_reading: - https://es5.github.io/#x7.8.5 --- - + Disallows invalid regular expression strings in `RegExp` constructors. diff --git a/docs/src/rules/no-irregular-whitespace.md b/docs/src/rules/no-irregular-whitespace.md index 2f06c9c3f2b..e4d0a6096d5 100644 --- a/docs/src/rules/no-irregular-whitespace.md +++ b/docs/src/rules/no-irregular-whitespace.md @@ -8,7 +8,7 @@ further_reading: - https://web.archive.org/web/20200414142829/http://timelessrepo.com/json-isnt-a-javascript-subset --- - + Disallows irregular whitespace characters. diff --git a/docs/src/rules/no-lonely-if.md b/docs/src/rules/no-lonely-if.md index 4be0c1a528e..8c4d9672870 100644 --- a/docs/src/rules/no-lonely-if.md +++ b/docs/src/rules/no-lonely-if.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-lonely-i rule_type: suggestion --- - + Disallows `if` statements as the only statement in `else` blocks. diff --git a/docs/src/rules/no-loss-of-precision.md b/docs/src/rules/no-loss-of-precision.md index eb5fe640e79..f563dc83e83 100644 --- a/docs/src/rules/no-loss-of-precision.md +++ b/docs/src/rules/no-loss-of-precision.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-loss-of- rule_type: problem --- - + Disallows number literals that lose precision. diff --git a/docs/src/rules/no-misleading-character-class.md b/docs/src/rules/no-misleading-character-class.md index bba870dc51b..142b476643f 100644 --- a/docs/src/rules/no-misleading-character-class.md +++ b/docs/src/rules/no-misleading-character-class.md @@ -5,9 +5,9 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-misleadi rule_type: problem --- - - + + Disallows characters which are made with multiple code points in character class syntax. diff --git a/docs/src/rules/no-mixed-spaces-and-tabs.md b/docs/src/rules/no-mixed-spaces-and-tabs.md index 429c8909969..b9b1d00d446 100644 --- a/docs/src/rules/no-mixed-spaces-and-tabs.md +++ b/docs/src/rules/no-mixed-spaces-and-tabs.md @@ -7,7 +7,7 @@ further_reading: - https://www.emacswiki.org/emacs/SmartTabs --- - + Disallows mixed spaces and tabs for indentation. diff --git a/docs/src/rules/no-multi-spaces.md b/docs/src/rules/no-multi-spaces.md index e790756004f..6ad2e89ec11 100644 --- a/docs/src/rules/no-multi-spaces.md +++ b/docs/src/rules/no-multi-spaces.md @@ -13,7 +13,7 @@ related_rules: - space-return-throw-case --- - + Disallows multiple consecutive spaces. diff --git a/docs/src/rules/no-multiple-empty-lines.md b/docs/src/rules/no-multiple-empty-lines.md index 30916751571..43fa0212fd2 100644 --- a/docs/src/rules/no-multiple-empty-lines.md +++ b/docs/src/rules/no-multiple-empty-lines.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-multiple rule_type: layout --- - + Disallows multiple empty lines. diff --git a/docs/src/rules/no-new-symbol.md b/docs/src/rules/no-new-symbol.md index e605ae10cea..8f116a412cd 100644 --- a/docs/src/rules/no-new-symbol.md +++ b/docs/src/rules/no-new-symbol.md @@ -7,7 +7,7 @@ further_reading: - https://www.ecma-international.org/ecma-262/6.0/#sec-symbol-objects --- - + Disallows `new` operators with the `Symbol` object. diff --git a/docs/src/rules/no-nonoctal-decimal-escape.md b/docs/src/rules/no-nonoctal-decimal-escape.md index 8a063f3e736..9eef9ab13aa 100644 --- a/docs/src/rules/no-nonoctal-decimal-escape.md +++ b/docs/src/rules/no-nonoctal-decimal-escape.md @@ -9,9 +9,9 @@ further_reading: - https://tc39.es/ecma262/#prod-annexB-NonOctalDecimalEscapeSequence --- - - + + Disallows `\8` and `\9` escape sequences in string literals. diff --git a/docs/src/rules/no-obj-calls.md b/docs/src/rules/no-obj-calls.md index 309e1b9d823..0cfc557eba3 100644 --- a/docs/src/rules/no-obj-calls.md +++ b/docs/src/rules/no-obj-calls.md @@ -7,7 +7,7 @@ further_reading: - https://es5.github.io/#x15.8 --- - + Disallows calling global object properties as functions. diff --git a/docs/src/rules/no-octal.md b/docs/src/rules/no-octal.md index 54cbbae8cc7..f3c2ddcb89c 100644 --- a/docs/src/rules/no-octal.md +++ b/docs/src/rules/no-octal.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-octal.md rule_type: suggestion --- - + Disallows octal literals. diff --git a/docs/src/rules/no-prototype-builtins.md b/docs/src/rules/no-prototype-builtins.md index e27eaec2bf6..64faa374759 100644 --- a/docs/src/rules/no-prototype-builtins.md +++ b/docs/src/rules/no-prototype-builtins.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-prototyp rule_type: problem --- - + Disallows calling some `Object.prototype` methods directly on objects. diff --git a/docs/src/rules/no-redeclare.md b/docs/src/rules/no-redeclare.md index e2ed45a56c4..ac6c43892bc 100644 --- a/docs/src/rules/no-redeclare.md +++ b/docs/src/rules/no-redeclare.md @@ -7,7 +7,7 @@ related_rules: - no-shadow --- - + Disallows variable redeclarations. diff --git a/docs/src/rules/no-regex-spaces.md b/docs/src/rules/no-regex-spaces.md index 65ae5888d40..11e71845778 100644 --- a/docs/src/rules/no-regex-spaces.md +++ b/docs/src/rules/no-regex-spaces.md @@ -8,9 +8,9 @@ related_rules: - no-control-regex --- - - + + Disallows multiple spaces in regular expression literals. diff --git a/docs/src/rules/no-self-assign.md b/docs/src/rules/no-self-assign.md index 1312fe73050..646cdc4b5a0 100644 --- a/docs/src/rules/no-self-assign.md +++ b/docs/src/rules/no-self-assign.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-self-ass rule_type: problem --- - + Disallows assignments where both sides are exactly the same. diff --git a/docs/src/rules/no-setter-return.md b/docs/src/rules/no-setter-return.md index b86d1adb206..6934e214d0f 100644 --- a/docs/src/rules/no-setter-return.md +++ b/docs/src/rules/no-setter-return.md @@ -9,7 +9,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/set --- - + Disallows returning values from setters. diff --git a/docs/src/rules/no-shadow-restricted-names.md b/docs/src/rules/no-shadow-restricted-names.md index e933c701dfb..4bd48e16b2a 100644 --- a/docs/src/rules/no-shadow-restricted-names.md +++ b/docs/src/rules/no-shadow-restricted-names.md @@ -10,7 +10,7 @@ further_reading: - https://es5.github.io/#C --- - + Disallows identifiers from shadowing restricted names. diff --git a/docs/src/rules/no-spaced-func.md b/docs/src/rules/no-spaced-func.md index b116d0111cf..bffd8494779 100644 --- a/docs/src/rules/no-spaced-func.md +++ b/docs/src/rules/no-spaced-func.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-spaced-f rule_type: layout --- - + Disallows spacing between function identifiers and their applications. diff --git a/docs/src/rules/no-sparse-arrays.md b/docs/src/rules/no-sparse-arrays.md index a26a74e6045..99b967bf016 100644 --- a/docs/src/rules/no-sparse-arrays.md +++ b/docs/src/rules/no-sparse-arrays.md @@ -7,7 +7,7 @@ further_reading: - https://www.nczonline.net/blog/2007/09/09/inconsistent-array-literals/ --- - + Disallows sparse arrays. diff --git a/docs/src/rules/no-this-before-super.md b/docs/src/rules/no-this-before-super.md index 6832d0dd843..f7642049e40 100644 --- a/docs/src/rules/no-this-before-super.md +++ b/docs/src/rules/no-this-before-super.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-this-bef rule_type: problem --- - + Disallows use of `this`/`super` before calling `super()` in constructors. diff --git a/docs/src/rules/no-trailing-spaces.md b/docs/src/rules/no-trailing-spaces.md index 9d8af10363e..c014289d291 100644 --- a/docs/src/rules/no-trailing-spaces.md +++ b/docs/src/rules/no-trailing-spaces.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-trailing rule_type: layout --- - + Disallows trailing whitespace at the end of lines. diff --git a/docs/src/rules/no-undef-init.md b/docs/src/rules/no-undef-init.md index 8006e669658..ef724a31762 100644 --- a/docs/src/rules/no-undef-init.md +++ b/docs/src/rules/no-undef-init.md @@ -8,7 +8,7 @@ related_rules: - no-void --- - + Disallows initializing variables to `undefined`. diff --git a/docs/src/rules/no-undef.md b/docs/src/rules/no-undef.md index a6003d16469..9dee7686d4a 100644 --- a/docs/src/rules/no-undef.md +++ b/docs/src/rules/no-undef.md @@ -8,7 +8,7 @@ related_rules: - no-redeclare --- - + Disallows the use of undeclared variables unless mentioned in `/*global */` comments. diff --git a/docs/src/rules/no-unexpected-multiline.md b/docs/src/rules/no-unexpected-multiline.md index e562d42d3f1..f0bae17ca65 100644 --- a/docs/src/rules/no-unexpected-multiline.md +++ b/docs/src/rules/no-unexpected-multiline.md @@ -9,7 +9,7 @@ related_rules: - space-unary-ops --- - + Disallows confusing multiline expressions. diff --git a/docs/src/rules/no-unneeded-ternary.md b/docs/src/rules/no-unneeded-ternary.md index 6188de64df8..9edef217d98 100644 --- a/docs/src/rules/no-unneeded-ternary.md +++ b/docs/src/rules/no-unneeded-ternary.md @@ -8,7 +8,7 @@ related_rules: - no-nested-ternary --- - + Disallows ternary operators when simpler alternatives exist. diff --git a/docs/src/rules/no-unreachable.md b/docs/src/rules/no-unreachable.md index db5b486ac36..78fcfe4b5d3 100644 --- a/docs/src/rules/no-unreachable.md +++ b/docs/src/rules/no-unreachable.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-unreacha rule_type: problem --- - + Disallows unreachable code after `return`, `throw`, `continue`, and `break` statements. diff --git a/docs/src/rules/no-unsafe-finally.md b/docs/src/rules/no-unsafe-finally.md index 012e7e698d6..d02c813e45b 100644 --- a/docs/src/rules/no-unsafe-finally.md +++ b/docs/src/rules/no-unsafe-finally.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-unsafe-f rule_type: problem --- - + Disallows control flow statements in `finally` blocks. diff --git a/docs/src/rules/no-unsafe-negation.md b/docs/src/rules/no-unsafe-negation.md index 6c5ef0c2fc1..68ff5256a6e 100644 --- a/docs/src/rules/no-unsafe-negation.md +++ b/docs/src/rules/no-unsafe-negation.md @@ -5,9 +5,9 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-unsafe-n rule_type: problem --- - - + + Disallows negating the left operand of relational operators. diff --git a/docs/src/rules/no-unsafe-optional-chaining.md b/docs/src/rules/no-unsafe-optional-chaining.md index 27aa184f10b..3e62aedb773 100644 --- a/docs/src/rules/no-unsafe-optional-chaining.md +++ b/docs/src/rules/no-unsafe-optional-chaining.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-unsafe-o rule_type: problem --- - + Disallows use of optional chaining in contexts where the `undefined` value is not allowed. diff --git a/docs/src/rules/no-unused-labels.md b/docs/src/rules/no-unused-labels.md index 0bf720da1fe..92ccbbc7bff 100644 --- a/docs/src/rules/no-unused-labels.md +++ b/docs/src/rules/no-unused-labels.md @@ -9,9 +9,9 @@ related_rules: - no-label-var --- - - + + Disallows unused labels. diff --git a/docs/src/rules/no-unused-vars.md b/docs/src/rules/no-unused-vars.md index 63f57dfc6f8..b96508e3cb1 100644 --- a/docs/src/rules/no-unused-vars.md +++ b/docs/src/rules/no-unused-vars.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-unused-v rule_type: problem --- - + Disallows unused variables. diff --git a/docs/src/rules/no-useless-backreference.md b/docs/src/rules/no-useless-backreference.md index 5111d4cc96c..0ec2dd1e25f 100644 --- a/docs/src/rules/no-useless-backreference.md +++ b/docs/src/rules/no-useless-backreference.md @@ -11,7 +11,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions --- - + Disallows useless backreferences in regular expressions. diff --git a/docs/src/rules/no-useless-catch.md b/docs/src/rules/no-useless-catch.md index 991cba978d8..91ab6475453 100644 --- a/docs/src/rules/no-useless-catch.md +++ b/docs/src/rules/no-useless-catch.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-useless- rule_type: suggestion --- - + Disallows unnecessary catch clauses. diff --git a/docs/src/rules/no-useless-computed-key.md b/docs/src/rules/no-useless-computed-key.md index 816d3a608a1..e8d52c42899 100644 --- a/docs/src/rules/no-useless-computed-key.md +++ b/docs/src/rules/no-useless-computed-key.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-useless- rule_type: suggestion --- - + Disallows unnecessary computed property keys in objects and classes. diff --git a/docs/src/rules/no-useless-escape.md b/docs/src/rules/no-useless-escape.md index 3861935c1b8..6e4713d97e6 100644 --- a/docs/src/rules/no-useless-escape.md +++ b/docs/src/rules/no-useless-escape.md @@ -5,9 +5,9 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-useless- rule_type: suggestion --- - - + + Disallows unnecessary escape characters. diff --git a/docs/src/rules/no-useless-rename.md b/docs/src/rules/no-useless-rename.md index 91babdd6cc0..56217f6e39f 100644 --- a/docs/src/rules/no-useless-rename.md +++ b/docs/src/rules/no-useless-rename.md @@ -7,7 +7,7 @@ related_rules: - object-shorthand --- - + Disallows renaming import, export, and destructured assignments to the same name. diff --git a/docs/src/rules/no-useless-return.md b/docs/src/rules/no-useless-return.md index d4ffb2a0c3b..bd8a2828a4e 100644 --- a/docs/src/rules/no-useless-return.md +++ b/docs/src/rules/no-useless-return.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-useless- rule_type: suggestion --- - + Disallows redundant return statements. diff --git a/docs/src/rules/no-var.md b/docs/src/rules/no-var.md index 008362ff9ea..007aeca47d3 100644 --- a/docs/src/rules/no-var.md +++ b/docs/src/rules/no-var.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-var.md rule_type: suggestion --- - + Requires `let` or `const` instead of `var`. diff --git a/docs/src/rules/no-whitespace-before-property.md b/docs/src/rules/no-whitespace-before-property.md index 57830be2fe2..07e12bbf488 100644 --- a/docs/src/rules/no-whitespace-before-property.md +++ b/docs/src/rules/no-whitespace-before-property.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/no-whitespa rule_type: layout --- - + Disallows whitespace before properties. diff --git a/docs/src/rules/no-with.md b/docs/src/rules/no-with.md index d90e1320888..5c692974458 100644 --- a/docs/src/rules/no-with.md +++ b/docs/src/rules/no-with.md @@ -7,7 +7,7 @@ further_reading: - https://web.archive.org/web/20200717110117/https://yuiblog.com/blog/2006/04/11/with-statement-considered-harmful/ --- - + Disallows `with` statements. diff --git a/docs/src/rules/nonblock-statement-body-position.md b/docs/src/rules/nonblock-statement-body-position.md index e15ff91ff3a..25374ba6c37 100644 --- a/docs/src/rules/nonblock-statement-body-position.md +++ b/docs/src/rules/nonblock-statement-body-position.md @@ -7,7 +7,7 @@ further_reading: - https://jscs-dev.github.io/rule/requireNewlineBeforeSingleStatementsInIf --- - + Enforces the location of single-line statements. diff --git a/docs/src/rules/object-curly-newline.md b/docs/src/rules/object-curly-newline.md index e85532befe0..7ab66f03b70 100644 --- a/docs/src/rules/object-curly-newline.md +++ b/docs/src/rules/object-curly-newline.md @@ -10,7 +10,7 @@ related_rules: - object-property-newline --- - + Enforces consistent line breaks after opening and before closing braces. diff --git a/docs/src/rules/object-curly-spacing.md b/docs/src/rules/object-curly-spacing.md index 7ee291b49d0..2434b7ca00e 100644 --- a/docs/src/rules/object-curly-spacing.md +++ b/docs/src/rules/object-curly-spacing.md @@ -10,7 +10,7 @@ related_rules: - space-in-parens --- - + Enforces consistent spacing inside braces. diff --git a/docs/src/rules/object-property-newline.md b/docs/src/rules/object-property-newline.md index 11eeb4f57e4..e317bfe95a3 100644 --- a/docs/src/rules/object-property-newline.md +++ b/docs/src/rules/object-property-newline.md @@ -10,7 +10,7 @@ related_rules: - object-curly-spacing --- - + Enforces placing object properties on separate lines. diff --git a/docs/src/rules/object-shorthand.md b/docs/src/rules/object-shorthand.md index b63bcbfae2f..a4517ebc80f 100644 --- a/docs/src/rules/object-shorthand.md +++ b/docs/src/rules/object-shorthand.md @@ -9,7 +9,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer --- - + Requires or disallows method and property shorthand syntax for object literals. diff --git a/docs/src/rules/one-var-declaration-per-line.md b/docs/src/rules/one-var-declaration-per-line.md index bebe4d7f4e3..2fce51e67b5 100644 --- a/docs/src/rules/one-var-declaration-per-line.md +++ b/docs/src/rules/one-var-declaration-per-line.md @@ -7,7 +7,7 @@ related_rules: - one-var --- - + Requires or disallows newlines around variable declarations. diff --git a/docs/src/rules/one-var.md b/docs/src/rules/one-var.md index 476f123076a..87add7fcb9b 100644 --- a/docs/src/rules/one-var.md +++ b/docs/src/rules/one-var.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/one-var.md rule_type: suggestion --- - + Enforces variables to be declared either together or separately in functions. diff --git a/docs/src/rules/operator-assignment.md b/docs/src/rules/operator-assignment.md index b3443c5b1e3..c55a81dab5d 100644 --- a/docs/src/rules/operator-assignment.md +++ b/docs/src/rules/operator-assignment.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/operator-as rule_type: suggestion --- - + Requires or disallows assignment operator shorthand where possible. diff --git a/docs/src/rules/operator-linebreak.md b/docs/src/rules/operator-linebreak.md index 0b9bd5131b8..870b3dfa641 100644 --- a/docs/src/rules/operator-linebreak.md +++ b/docs/src/rules/operator-linebreak.md @@ -7,7 +7,7 @@ related_rules: - comma-style --- - + Enforces consistent linebreak style for operators. diff --git a/docs/src/rules/padded-blocks.md b/docs/src/rules/padded-blocks.md index 647f3492be8..b6a6a691113 100644 --- a/docs/src/rules/padded-blocks.md +++ b/docs/src/rules/padded-blocks.md @@ -8,7 +8,7 @@ related_rules: - padding-line-between-statements --- - + Requires or disallows padding within blocks. diff --git a/docs/src/rules/padding-line-between-statements.md b/docs/src/rules/padding-line-between-statements.md index d3d40f8f14f..037a86fe765 100644 --- a/docs/src/rules/padding-line-between-statements.md +++ b/docs/src/rules/padding-line-between-statements.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/padding-lin rule_type: layout --- - + Requires or disallows padding lines between statements. diff --git a/docs/src/rules/prefer-arrow-callback.md b/docs/src/rules/prefer-arrow-callback.md index 0d0dbd9477c..6eb990f1ee5 100644 --- a/docs/src/rules/prefer-arrow-callback.md +++ b/docs/src/rules/prefer-arrow-callback.md @@ -7,7 +7,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions --- - + Requires using arrow functions for callbacks. diff --git a/docs/src/rules/prefer-const.md b/docs/src/rules/prefer-const.md index 202498cd1d3..2b97556951b 100644 --- a/docs/src/rules/prefer-const.md +++ b/docs/src/rules/prefer-const.md @@ -8,7 +8,7 @@ related_rules: - no-use-before-define --- - + Requires `const` declarations for variables that are never reassigned after declared. diff --git a/docs/src/rules/prefer-destructuring.md b/docs/src/rules/prefer-destructuring.md index 95c04f7744c..722fd8b0b11 100644 --- a/docs/src/rules/prefer-destructuring.md +++ b/docs/src/rules/prefer-destructuring.md @@ -8,7 +8,7 @@ further_reading: - https://2ality.com/2015/01/es6-destructuring.html --- - + Requires destructuring from arrays and/or objects. diff --git a/docs/src/rules/prefer-exponentiation-operator.md b/docs/src/rules/prefer-exponentiation-operator.md index e782a9a346a..5828dde7adc 100644 --- a/docs/src/rules/prefer-exponentiation-operator.md +++ b/docs/src/rules/prefer-exponentiation-operator.md @@ -8,7 +8,7 @@ further_reading: - https://bugs.chromium.org/p/v8/issues/detail?id=5848 --- - + Disallows the use of `Math.pow` in favor of the `**` operator. diff --git a/docs/src/rules/prefer-numeric-literals.md b/docs/src/rules/prefer-numeric-literals.md index 459a651b198..97d20ee69e6 100644 --- a/docs/src/rules/prefer-numeric-literals.md +++ b/docs/src/rules/prefer-numeric-literals.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/prefer-nume rule_type: suggestion --- - + Disallows `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals. diff --git a/docs/src/rules/prefer-object-has-own.md b/docs/src/rules/prefer-object-has-own.md index bcbb3a8e60d..9c19fcdcd98 100644 --- a/docs/src/rules/prefer-object-has-own.md +++ b/docs/src/rules/prefer-object-has-own.md @@ -7,7 +7,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn --- - + Prefer `Object.hasOwn()` over `Object.prototype.hasOwnProperty.call()`. diff --git a/docs/src/rules/prefer-object-spread.md b/docs/src/rules/prefer-object-spread.md index 2bc2b398a2a..790b46b9c51 100644 --- a/docs/src/rules/prefer-object-spread.md +++ b/docs/src/rules/prefer-object-spread.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/prefer-obje rule_type: suggestion --- - + Prefer use of an object spread over `Object.assign`. diff --git a/docs/src/rules/prefer-regex-literals.md b/docs/src/rules/prefer-regex-literals.md index 51ca2296909..3e6210b16d5 100644 --- a/docs/src/rules/prefer-regex-literals.md +++ b/docs/src/rules/prefer-regex-literals.md @@ -8,7 +8,7 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp --- - + Disallows use of the `RegExp` constructor in favor of regular expression literals. diff --git a/docs/src/rules/prefer-template.md b/docs/src/rules/prefer-template.md index 44cfbaee2c3..b62d02068e1 100644 --- a/docs/src/rules/prefer-template.md +++ b/docs/src/rules/prefer-template.md @@ -8,7 +8,7 @@ related_rules: - quotes --- - + Suggests using template literals instead of string concatenation. diff --git a/docs/src/rules/quote-props.md b/docs/src/rules/quote-props.md index 2a840b590ab..912b70e4e6b 100644 --- a/docs/src/rules/quote-props.md +++ b/docs/src/rules/quote-props.md @@ -8,7 +8,7 @@ further_reading: - https://mathiasbynens.be/notes/javascript-properties --- - + Requires quotes around object literal property names. diff --git a/docs/src/rules/quotes.md b/docs/src/rules/quotes.md index 234787a5318..670539d9af7 100644 --- a/docs/src/rules/quotes.md +++ b/docs/src/rules/quotes.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/quotes.md rule_type: layout --- - + Enforces the consistent use of either backticks, double, or single quotes. diff --git a/docs/src/rules/radix.md b/docs/src/rules/radix.md index ea4322fd849..d02f76ae7c3 100644 --- a/docs/src/rules/radix.md +++ b/docs/src/rules/radix.md @@ -7,7 +7,7 @@ further_reading: - https://davidwalsh.name/parseint-radix --- - + Enforces the consistent use of the radix argument when using `parseInt()`. diff --git a/docs/src/rules/require-yield.md b/docs/src/rules/require-yield.md index 07f200b5801..3654579c116 100644 --- a/docs/src/rules/require-yield.md +++ b/docs/src/rules/require-yield.md @@ -7,7 +7,7 @@ related_rules: - require-await --- - + Disallows generator functions that do not have `yield`. diff --git a/docs/src/rules/rest-spread-spacing.md b/docs/src/rules/rest-spread-spacing.md index 65f32e87902..3af486077d5 100644 --- a/docs/src/rules/rest-spread-spacing.md +++ b/docs/src/rules/rest-spread-spacing.md @@ -7,7 +7,7 @@ further_reading: - https://github.com/tc39/proposal-object-rest-spread --- - + Enforces spacing between rest and spread operators and their expressions. diff --git a/docs/src/rules/semi-spacing.md b/docs/src/rules/semi-spacing.md index 24163047187..8b701c11cfb 100644 --- a/docs/src/rules/semi-spacing.md +++ b/docs/src/rules/semi-spacing.md @@ -11,7 +11,7 @@ related_rules: - space-in-parens --- - + Enforces spacing before and after semicolons. diff --git a/docs/src/rules/semi-style.md b/docs/src/rules/semi-style.md index a09db703379..2952e07de95 100644 --- a/docs/src/rules/semi-style.md +++ b/docs/src/rules/semi-style.md @@ -9,7 +9,7 @@ related_rules: - semi-spacing --- - + Enforces location of semicolons. diff --git a/docs/src/rules/semi.md b/docs/src/rules/semi.md index 7b0cca31a92..27bbd8e7ee9 100644 --- a/docs/src/rules/semi.md +++ b/docs/src/rules/semi.md @@ -12,7 +12,7 @@ further_reading: - https://web.archive.org/web/20200420230322/http://inimino.org/~inimino/blog/javascript_semicolons --- - + Requires or disallows semicolons instead of ASI. diff --git a/docs/src/rules/sort-imports.md b/docs/src/rules/sort-imports.md index e0b1517037f..6a0975942fd 100644 --- a/docs/src/rules/sort-imports.md +++ b/docs/src/rules/sort-imports.md @@ -8,7 +8,7 @@ related_rules: - sort-vars --- - + Enforces sorted import declarations within modules. diff --git a/docs/src/rules/sort-vars.md b/docs/src/rules/sort-vars.md index b2e8917d43d..182193eea64 100644 --- a/docs/src/rules/sort-vars.md +++ b/docs/src/rules/sort-vars.md @@ -8,7 +8,7 @@ related_rules: - sort-imports --- - + Requires variables within the same declaration block to be sorted. diff --git a/docs/src/rules/space-before-blocks.md b/docs/src/rules/space-before-blocks.md index 29da471de62..fa254f6046f 100644 --- a/docs/src/rules/space-before-blocks.md +++ b/docs/src/rules/space-before-blocks.md @@ -11,7 +11,7 @@ related_rules: - brace-style --- - + Requires Or disallows space before blocks. diff --git a/docs/src/rules/space-before-function-paren.md b/docs/src/rules/space-before-function-paren.md index 1fcaa4ede79..0a5ca2678db 100644 --- a/docs/src/rules/space-before-function-paren.md +++ b/docs/src/rules/space-before-function-paren.md @@ -8,7 +8,7 @@ related_rules: - space-return-throw-case --- - + Requires or disallows a space before function parenthesis. diff --git a/docs/src/rules/space-in-parens.md b/docs/src/rules/space-in-parens.md index 9025d0b6956..821bbf2bbd9 100644 --- a/docs/src/rules/space-in-parens.md +++ b/docs/src/rules/space-in-parens.md @@ -9,7 +9,7 @@ related_rules: - computed-property-spacing --- - + Disallows or enforce spaces inside of parentheses. diff --git a/docs/src/rules/space-infix-ops.md b/docs/src/rules/space-infix-ops.md index 8c496e6d363..5d075082572 100644 --- a/docs/src/rules/space-infix-ops.md +++ b/docs/src/rules/space-infix-ops.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/space-infix rule_type: layout --- - + Requires spacing around infix operators. diff --git a/docs/src/rules/space-unary-ops.md b/docs/src/rules/space-unary-ops.md index b53d82e32ed..e3d5cac34ab 100644 --- a/docs/src/rules/space-unary-ops.md +++ b/docs/src/rules/space-unary-ops.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/space-unary rule_type: layout --- - + Requires or disallow spaces before/after unary operators. diff --git a/docs/src/rules/spaced-comment.md b/docs/src/rules/spaced-comment.md index 27ed424367d..df8fe3806ff 100644 --- a/docs/src/rules/spaced-comment.md +++ b/docs/src/rules/spaced-comment.md @@ -7,7 +7,7 @@ related_rules: - spaced-line-comment --- - + Enforces consistent spacing after the `//` or `/*` in a comment. diff --git a/docs/src/rules/strict.md b/docs/src/rules/strict.md index 1cf31f7308b..81b06309660 100644 --- a/docs/src/rules/strict.md +++ b/docs/src/rules/strict.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/strict.md rule_type: suggestion --- - + Requires or disallow strict mode directives. diff --git a/docs/src/rules/switch-colon-spacing.md b/docs/src/rules/switch-colon-spacing.md index 55e7d8784e8..daf45d9af8f 100644 --- a/docs/src/rules/switch-colon-spacing.md +++ b/docs/src/rules/switch-colon-spacing.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/switch-colo rule_type: layout --- - + Enforces spacing around colons of switch statements. diff --git a/docs/src/rules/template-curly-spacing.md b/docs/src/rules/template-curly-spacing.md index 3e0c044e088..bca7b0dc7f9 100644 --- a/docs/src/rules/template-curly-spacing.md +++ b/docs/src/rules/template-curly-spacing.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/template-cu rule_type: layout --- - + Enforces usage of spacing in template strings. diff --git a/docs/src/rules/template-tag-spacing.md b/docs/src/rules/template-tag-spacing.md index 8403d83883e..3c200cdf06d 100644 --- a/docs/src/rules/template-tag-spacing.md +++ b/docs/src/rules/template-tag-spacing.md @@ -8,7 +8,7 @@ further_reading: - https://exploringjs.com/es6/ch_template-literals.html#_examples-of-using-tagged-template-literals --- - + Requires or disallow spacing between template tags and their literals. diff --git a/docs/src/rules/unicode-bom.md b/docs/src/rules/unicode-bom.md index f542556f03f..2d67f42d07c 100644 --- a/docs/src/rules/unicode-bom.md +++ b/docs/src/rules/unicode-bom.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/unicode-bom rule_type: layout --- - + Requires or disallows the Unicode Byte Order Mark (BOM). diff --git a/docs/src/rules/use-isnan.md b/docs/src/rules/use-isnan.md index 410dfd63c43..5454e1bb8d4 100644 --- a/docs/src/rules/use-isnan.md +++ b/docs/src/rules/use-isnan.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/use-isnan.m rule_type: problem --- - + Requires calls to `isNaN()` when checking for `NaN`. diff --git a/docs/src/rules/valid-jsdoc.md b/docs/src/rules/valid-jsdoc.md index 636efc4fb83..8522a4922f5 100644 --- a/docs/src/rules/valid-jsdoc.md +++ b/docs/src/rules/valid-jsdoc.md @@ -9,7 +9,7 @@ further_reading: - https://jsdoc.app --- - + Enforces valid JSDoc comments. diff --git a/docs/src/rules/valid-typeof.md b/docs/src/rules/valid-typeof.md index 7d50f593a8b..78919cd0815 100644 --- a/docs/src/rules/valid-typeof.md +++ b/docs/src/rules/valid-typeof.md @@ -7,9 +7,9 @@ further_reading: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof --- - - + + Enforces comparing `typeof` expressions against valid strings. diff --git a/docs/src/rules/wrap-iife.md b/docs/src/rules/wrap-iife.md index 2b99b73fb48..516cc3b364c 100644 --- a/docs/src/rules/wrap-iife.md +++ b/docs/src/rules/wrap-iife.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/wrap-iife.m rule_type: layout --- - + Requires IIFEs to be wrapped. diff --git a/docs/src/rules/wrap-regex.md b/docs/src/rules/wrap-regex.md index 7eb3047045c..f3ce0e469cc 100644 --- a/docs/src/rules/wrap-regex.md +++ b/docs/src/rules/wrap-regex.md @@ -5,7 +5,7 @@ edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/wrap-regex. rule_type: layout --- - + Requires regex literals to be wrapped. diff --git a/docs/src/rules/yield-star-spacing.md b/docs/src/rules/yield-star-spacing.md index 0faaca706a0..86ce476a504 100644 --- a/docs/src/rules/yield-star-spacing.md +++ b/docs/src/rules/yield-star-spacing.md @@ -7,7 +7,7 @@ further_reading: - https://leanpub.com/understandinges6/read/#leanpub-auto-generators --- - + Enforces spacing around the `*` in `yield*` expressions. diff --git a/docs/src/rules/yoda.md b/docs/src/rules/yoda.md index 06454a49729..fe7a11e9a6f 100644 --- a/docs/src/rules/yoda.md +++ b/docs/src/rules/yoda.md @@ -8,7 +8,7 @@ further_reading: - http://thomas.tuerke.net/on/design/?with=1249091668#msg1146181680 --- - + Requires or disallows "Yoda" conditions.