From b3a08376cfb61275a7557d6d166b6116f36e5ac2 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sat, 1 Oct 2022 21:36:05 -0400 Subject: [PATCH] docs: remove duplicate words (#16378) --- docs/src/user-guide/configuring/ignoring-code.md | 2 +- lib/rules/lines-around-comment.js | 4 ++-- lib/rules/no-loss-of-precision.js | 4 ++-- lib/rules/no-use-before-define.js | 2 +- lib/shared/traverser.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/src/user-guide/configuring/ignoring-code.md b/docs/src/user-guide/configuring/ignoring-code.md index c41422c9093..f05951d17ee 100644 --- a/docs/src/user-guide/configuring/ignoring-code.md +++ b/docs/src/user-guide/configuring/ignoring-code.md @@ -11,7 +11,7 @@ eleventyNavigation: ## `ignorePatterns` in Config Files -You can tell ESLint to ignore specific files and directories using `ignorePatterns` in your config files. `ignorePatterns` patterns follow the same rules as `.eslintignore`. Please see the [the `.eslintignore` file documentation](./ignoring-code#the-eslintignore-file) to learn more. +You can tell ESLint to ignore specific files and directories using `ignorePatterns` in your config files. `ignorePatterns` patterns follow the same rules as `.eslintignore`. Please see the [`.eslintignore` file documentation](./ignoring-code#the-eslintignore-file) to learn more. ```json { diff --git a/lib/rules/lines-around-comment.js b/lib/rules/lines-around-comment.js index bd7d1cd2662..64f7f6c5fea 100644 --- a/lib/rules/lines-around-comment.js +++ b/lib/rules/lines-around-comment.js @@ -15,7 +15,7 @@ const astUtils = require("./utils/ast-utils"); //------------------------------------------------------------------------------ /** - * Return an array with with any line numbers that are empty. + * Return an array with any line numbers that are empty. * @param {Array} lines An array of each line of the file. * @returns {Array} An array of line numbers. */ @@ -29,7 +29,7 @@ function getEmptyLineNums(lines) { } /** - * Return an array with with any line numbers that contain comments. + * Return an array with any line numbers that contain comments. * @param {Array} comments An array of comment tokens. * @returns {Array} An array of line numbers. */ diff --git a/lib/rules/no-loss-of-precision.js b/lib/rules/no-loss-of-precision.js index 6dc6d864dcd..3b2ab9c2f45 100644 --- a/lib/rules/no-loss-of-precision.js +++ b/lib/rules/no-loss-of-precision.js @@ -105,7 +105,7 @@ module.exports = { } /** - * Converts an integer to to an object containing the integer's coefficient and order of magnitude + * Converts an integer to an object containing the integer's coefficient and order of magnitude * @param {string} stringInteger the string representation of the integer being converted * @returns {Object} the object containing the integer's coefficient and order of magnitude */ @@ -120,7 +120,7 @@ module.exports = { /** * - * Converts a float to to an object containing the floats's coefficient and order of magnitude + * Converts a float to an object containing the floats's coefficient and order of magnitude * @param {string} stringFloat the string representation of the float being converted * @returns {Object} the object containing the integer's coefficient and order of magnitude */ diff --git a/lib/rules/no-use-before-define.js b/lib/rules/no-use-before-define.js index 592c083589c..5fd25940128 100644 --- a/lib/rules/no-use-before-define.js +++ b/lib/rules/no-use-before-define.js @@ -68,7 +68,7 @@ function isInClassStaticInitializerRange(node, location) { } /** - * Checks whether a given scope is the scope of a a class static initializer. + * Checks whether a given scope is the scope of a class static initializer. * Static initializers are static blocks and initializers of static fields. * @param {eslint-scope.Scope} scope A scope to check. * @returns {boolean} `true` if the scope is a class static initializer scope. diff --git a/lib/shared/traverser.js b/lib/shared/traverser.js index be0ed59a4f9..38b4e215132 100644 --- a/lib/shared/traverser.js +++ b/lib/shared/traverser.js @@ -74,7 +74,7 @@ class Traverser { } /** - * Gives a a copy of the ancestor nodes. + * Gives a copy of the ancestor nodes. * @returns {ASTNode[]} The ancestor nodes. */ parents() {