Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7790d83

Browse filesBrowse files
authored
chore: fix some typos in comment (#19576)
Signed-off-by: todaymoon <csgcgl@foxmail.com>
1 parent cd72bcc commit 7790d83
Copy full SHA for 7790d83

File tree

Expand file treeCollapse file tree

4 files changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+6
-6
lines changed

‎docs/src/use/command-line-interface.md

Copy file name to clipboardExpand all lines: docs/src/use/command-line-interface.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ This option allows you to specify additional file extensions to lint.
231231
- **Multiple Arguments**: Yes
232232
- **Default Value**: By default, ESLint lints files with extensions `.js`, `.mjs`, `.cjs`, and additional extensions [specified in the configuration file](configure/configuration-files#specifying-files-with-arbitrary-extensions).
233233

234-
This option is primarely intended for use in combination with the `--no-config-lookup` option, since in that case there is no configuration file in which the additional extensions would be specified.
234+
This option is primarily intended for use in combination with the `--no-config-lookup` option, since in that case there is no configuration file in which the additional extensions would be specified.
235235

236236
##### `--ext` example
237237

@@ -307,7 +307,7 @@ This option allows you to specify parser options to be used by ESLint. The avail
307307
{{ npx_tabs ({
308308
package: "eslint",
309309
args: ["--stdin", "--parser-options", "ecmaVersion:7"],
310-
comment: "succeds, yay!",
310+
comment: "succeeds, yay!",
311311
previousCommands: ["echo \'3 ** 4\'"]
312312
}) }}
313313

‎lib/linter/code-path-analysis/code-path-state.js

Copy file name to clipboardExpand all lines: lib/linter/code-path-analysis/code-path-state.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class ForLoopContext extends LoopContextBase {
335335
this.updateSegments = null;
336336

337337
/**
338-
* The end of the update expresion. This may change during the lifetime
338+
* The end of the update expression. This may change during the lifetime
339339
* of the instance as we traverse the loop because some loops don't have
340340
* an update expression.
341341
* @type {Array<CodePathSegment>|null}

‎lib/rules/no-constant-binary-expression.js

Copy file name to clipboardExpand all lines: lib/rules/no-constant-binary-expression.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ module.exports = {
594594
* In theory we could handle short-circuiting assignment operators,
595595
* for some constant values, but that would require walking the
596596
* scope to find the value of the variable being assigned. This is
597-
* dependant on https://github.com/eslint/eslint/issues/13776
597+
* dependent on https://github.com/eslint/eslint/issues/13776
598598
*
599599
* AssignmentExpression() {},
600600
*/

‎lib/rules/no-unused-vars.js

Copy file name to clipboardExpand all lines: lib/rules/no-unused-vars.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,12 +1601,12 @@ module.exports = {
16011601
return fixer.removeRange(parent.range);
16021602
}
16031603

1604-
// remove unused varible that is in a sequence [a,b] fixes to [a]
1604+
// remove unused variable that is in a sequence [a,b] fixes to [a]
16051605
if (tokenBefore?.value === ",") {
16061606
return fixer.removeRange([tokenBefore.range[0], id.range[1]]);
16071607
}
16081608

1609-
// remove unused varible that is in a sequence inside function arguments and object pattern
1609+
// remove unused variable that is in a sequence inside function arguments and object pattern
16101610
if (tokenAfter.value === ",") {
16111611
// fix function foo(a, b) {}
16121612
if (tokenBefore.value === "(") {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.