From 68cf0fb7f645da5d992a5e749fc6c1311d30e75a Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sun, 29 May 2022 16:52:05 -0400 Subject: [PATCH] docs: cleanup typos (#15936) --- docs/src/_data/languages.json | 2 +- docs/src/assets/js/focus-visible.js | 2 +- docs/src/developer-guide/nodejs-api.md | 4 ++-- docs/src/rules/eol-last.md | 4 ++-- docs/src/rules/key-spacing.md | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/src/_data/languages.json b/docs/src/_data/languages.json index 17221f1526c..529a9e3f2a2 100644 --- a/docs/src/_data/languages.json +++ b/docs/src/_data/languages.json @@ -8,7 +8,7 @@ { "flag": "🇯🇵", "code": "jp", - "name": "Japenese – 日本語", + "name": "Japanese - 日本語", "url": "https://jp.eslint.org" }, { diff --git a/docs/src/assets/js/focus-visible.js b/docs/src/assets/js/focus-visible.js index 2ffed420f81..c95845112cf 100644 --- a/docs/src/assets/js/focus-visible.js +++ b/docs/src/assets/js/focus-visible.js @@ -224,7 +224,7 @@ function applyFocusVisiblePolyfill(scope) { } /** - * When the polfyill first loads, assume the user is in keyboard modality. + * When the polyfill first loads, assume the user is in keyboard modality. * If any event is received from a pointing device (e.g. mouse, pointer, * touch), turn off keyboard modality. * This accounts for situations where focus enters the page from the URL bar. diff --git a/docs/src/developer-guide/nodejs-api.md b/docs/src/developer-guide/nodejs-api.md index 105996ab87e..e3830321439 100644 --- a/docs/src/developer-guide/nodejs-api.md +++ b/docs/src/developer-guide/nodejs-api.md @@ -289,7 +289,7 @@ This method loads a formatter. Formatters convert lint results to a human- or ma The path to the file you want to check. The following values are allowed: * `undefined`. In this case, loads the `"stylish"` built-in formatter. * A name of [built-in formatters][builtin-formatters]. - * A name of [third-party formatters][thirdparty-formatters]. For examples: + * A name of [third-party formatters][third-party-formatters]. For examples: * `"foo"` will load `eslint-formatter-foo`. * `"@foo"` will load `@foo/eslint-formatter`. * `"@foo/bar"` will load `@foo/eslint-formatter-bar`. @@ -954,7 +954,7 @@ ruleTester.run("my-rule", myRule, { [configuration object]: ../user-guide/configuring [builtin-formatters]: https://eslint.org/docs/user-guide/formatters/ -[thirdparty-formatters]: https://www.npmjs.com/search?q=eslintformatter +[third-party-formatters]: https://www.npmjs.com/search?q=eslintformatter [eslint]: #eslint-class [eslint-constructor]: #-new-eslintoptions [eslint-lintfiles]: #-eslintlintfilespatterns diff --git a/docs/src/rules/eol-last.md b/docs/src/rules/eol-last.md index 58d8955dd86..442b06694fa 100644 --- a/docs/src/rules/eol-last.md +++ b/docs/src/rules/eol-last.md @@ -28,7 +28,7 @@ Examples of **incorrect** code for this rule: ```js /*eslint eol-last: ["error", "always"]*/ -function doSmth() { +function doSomething() { var foo = 2; } ``` @@ -38,7 +38,7 @@ Examples of **correct** code for this rule: ```js /*eslint eol-last: ["error", "always"]*/ -function doSmth() { +function doSomething() { var foo = 2; }\n ``` diff --git a/docs/src/rules/key-spacing.md b/docs/src/rules/key-spacing.md index 59de8f0a296..1ba5b065047 100644 --- a/docs/src/rules/key-spacing.md +++ b/docs/src/rules/key-spacing.md @@ -305,7 +305,7 @@ var obj = { "myObjectFunction": function() { // Do something // - }, // These are two separate groups, so no alignment between `myObjectFuction` and `one` + }, // These are two separate groups, so no alignment between `myObjectFunction` and `one` "one" : 1, "seven" : 7 // `one` and `seven` are in their own group, and therefore aligned }