Skip to content

Commit

Permalink
docs: cleanup typos (#15936)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed May 29, 2022
1 parent 54c0953 commit 68cf0fb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/src/_data/languages.json
Expand Up @@ -8,7 +8,7 @@
{
"flag": "🇯🇵",
"code": "jp",
"name": "Japenese – 日本語",
"name": "Japanese - 日本語",
"url": "https://jp.eslint.org"
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/src/assets/js/focus-visible.js
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions docs/src/developer-guide/nodejs-api.md
Expand Up @@ -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`.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/src/rules/eol-last.md
Expand Up @@ -28,7 +28,7 @@ Examples of **incorrect** code for this rule:
```js
/*eslint eol-last: ["error", "always"]*/

function doSmth() {
function doSomething() {
var foo = 2;
}
```
Expand All @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion docs/src/rules/key-spacing.md
Expand Up @@ -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
}
Expand Down

0 comments on commit 68cf0fb

Please sign in to comment.