From b83b5e34cfbd1e76225b57c5fc3a693822e316db Mon Sep 17 00:00:00 2001 From: Srijan Saurav <68371686+srijan-deepsource@users.noreply.github.com> Date: Mon, 30 May 2022 16:19:26 +0530 Subject: [PATCH] Revert "docs: cleanup typos (#15936)" This reverts commit b0831179c88422559a01fa6335edb5907e75052b. --- 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 529a9e3f2a2..17221f1526c 100644 --- a/docs/src/_data/languages.json +++ b/docs/src/_data/languages.json @@ -8,7 +8,7 @@ { "flag": "🇯🇵", "code": "jp", - "name": "Japanese - 日本語", + "name": "Japenese – 日本語", "url": "https://jp.eslint.org" }, { diff --git a/docs/src/assets/js/focus-visible.js b/docs/src/assets/js/focus-visible.js index c95845112cf..2ffed420f81 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 polyfill first loads, assume the user is in keyboard modality. + * When the polfyill 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 e3830321439..105996ab87e 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][third-party-formatters]. For examples: + * A name of [third-party formatters][thirdparty-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/ -[third-party-formatters]: https://www.npmjs.com/search?q=eslintformatter +[thirdparty-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 442b06694fa..58d8955dd86 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 doSomething() { +function doSmth() { var foo = 2; } ``` @@ -38,7 +38,7 @@ Examples of **correct** code for this rule: ```js /*eslint eol-last: ["error", "always"]*/ -function doSomething() { +function doSmth() { var foo = 2; }\n ``` diff --git a/docs/src/rules/key-spacing.md b/docs/src/rules/key-spacing.md index 1ba5b065047..59de8f0a296 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 `myObjectFunction` and `one` + }, // These are two separate groups, so no alignment between `myObjectFuction` and `one` "one" : 1, "seven" : 7 // `one` and `seven` are in their own group, and therefore aligned }