Skip to content

Commit b3a0837

Browse files
authored
docs: remove duplicate words (#16378)
1 parent a682562 commit b3a0837

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/src/user-guide/configuring/ignoring-code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ eleventyNavigation:
1111

1212
## `ignorePatterns` in Config Files
1313

14-
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.
14+
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.
1515

1616
```json
1717
{

lib/rules/lines-around-comment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const astUtils = require("./utils/ast-utils");
1515
//------------------------------------------------------------------------------
1616

1717
/**
18-
* Return an array with with any line numbers that are empty.
18+
* Return an array with any line numbers that are empty.
1919
* @param {Array} lines An array of each line of the file.
2020
* @returns {Array} An array of line numbers.
2121
*/
@@ -29,7 +29,7 @@ function getEmptyLineNums(lines) {
2929
}
3030

3131
/**
32-
* Return an array with with any line numbers that contain comments.
32+
* Return an array with any line numbers that contain comments.
3333
* @param {Array} comments An array of comment tokens.
3434
* @returns {Array} An array of line numbers.
3535
*/

lib/rules/no-loss-of-precision.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module.exports = {
105105
}
106106

107107
/**
108-
* Converts an integer to to an object containing the integer's coefficient and order of magnitude
108+
* Converts an integer to an object containing the integer's coefficient and order of magnitude
109109
* @param {string} stringInteger the string representation of the integer being converted
110110
* @returns {Object} the object containing the integer's coefficient and order of magnitude
111111
*/
@@ -120,7 +120,7 @@ module.exports = {
120120

121121
/**
122122
*
123-
* Converts a float to to an object containing the floats's coefficient and order of magnitude
123+
* Converts a float to an object containing the floats's coefficient and order of magnitude
124124
* @param {string} stringFloat the string representation of the float being converted
125125
* @returns {Object} the object containing the integer's coefficient and order of magnitude
126126
*/

lib/rules/no-use-before-define.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function isInClassStaticInitializerRange(node, location) {
6868
}
6969

7070
/**
71-
* Checks whether a given scope is the scope of a a class static initializer.
71+
* Checks whether a given scope is the scope of a class static initializer.
7272
* Static initializers are static blocks and initializers of static fields.
7373
* @param {eslint-scope.Scope} scope A scope to check.
7474
* @returns {boolean} `true` if the scope is a class static initializer scope.

lib/shared/traverser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Traverser {
7474
}
7575

7676
/**
77-
* Gives a a copy of the ancestor nodes.
77+
* Gives a copy of the ancestor nodes.
7878
* @returns {ASTNode[]} The ancestor nodes.
7979
*/
8080
parents() {

0 commit comments

Comments
 (0)