Skip to content

Commit 68cf0fb

Browse files
authored
docs: cleanup typos (#15936)
1 parent 54c0953 commit 68cf0fb

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/src/_data/languages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"flag": "🇯🇵",
1010
"code": "jp",
11-
"name": "Japenese – 日本語",
11+
"name": "Japanese - 日本語",
1212
"url": "https://jp.eslint.org"
1313
},
1414
{

docs/src/assets/js/focus-visible.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function applyFocusVisiblePolyfill(scope) {
224224
}
225225

226226
/**
227-
* When the polfyill first loads, assume the user is in keyboard modality.
227+
* When the polyfill first loads, assume the user is in keyboard modality.
228228
* If any event is received from a pointing device (e.g. mouse, pointer,
229229
* touch), turn off keyboard modality.
230230
* This accounts for situations where focus enters the page from the URL bar.

docs/src/developer-guide/nodejs-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ This method loads a formatter. Formatters convert lint results to a human- or ma
289289
The path to the file you want to check. The following values are allowed:
290290
* `undefined`. In this case, loads the `"stylish"` built-in formatter.
291291
* A name of [built-in formatters][builtin-formatters].
292-
* A name of [third-party formatters][thirdparty-formatters]. For examples:
292+
* A name of [third-party formatters][third-party-formatters]. For examples:
293293
* `"foo"` will load `eslint-formatter-foo`.
294294
* `"@foo"` will load `@foo/eslint-formatter`.
295295
* `"@foo/bar"` will load `@foo/eslint-formatter-bar`.
@@ -954,7 +954,7 @@ ruleTester.run("my-rule", myRule, {
954954

955955
[configuration object]: ../user-guide/configuring
956956
[builtin-formatters]: https://eslint.org/docs/user-guide/formatters/
957-
[thirdparty-formatters]: https://www.npmjs.com/search?q=eslintformatter
957+
[third-party-formatters]: https://www.npmjs.com/search?q=eslintformatter
958958
[eslint]: #eslint-class
959959
[eslint-constructor]: #-new-eslintoptions
960960
[eslint-lintfiles]: #-eslintlintfilespatterns

docs/src/rules/eol-last.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Examples of **incorrect** code for this rule:
2828
```js
2929
/*eslint eol-last: ["error", "always"]*/
3030

31-
function doSmth() {
31+
function doSomething() {
3232
var foo = 2;
3333
}
3434
```
@@ -38,7 +38,7 @@ Examples of **correct** code for this rule:
3838
```js
3939
/*eslint eol-last: ["error", "always"]*/
4040

41-
function doSmth() {
41+
function doSomething() {
4242
var foo = 2;
4343
}\n
4444
```

docs/src/rules/key-spacing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ var obj = {
305305
"myObjectFunction": function() {
306306
// Do something
307307
//
308-
}, // These are two separate groups, so no alignment between `myObjectFuction` and `one`
308+
}, // These are two separate groups, so no alignment between `myObjectFunction` and `one`
309309
"one" : 1,
310310
"seven" : 7 // `one` and `seven` are in their own group, and therefore aligned
311311
}

0 commit comments

Comments
 (0)