Skip to content

Commit

Permalink
docs: remove duplicate words (#16378)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Oct 2, 2022
1 parent a682562 commit b3a0837
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/src/user-guide/configuring/ignoring-code.md
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/lines-around-comment.js
Expand Up @@ -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.
*/
Expand All @@ -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.
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-loss-of-precision.js
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-use-before-define.js
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/shared/traverser.js
Expand Up @@ -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() {
Expand Down

0 comments on commit b3a0837

Please sign in to comment.