Skip to content

Commit 33aa97d

Browse files
authored
docs: fix various misspellings (#1408)
1 parent f783472 commit 33aa97d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/rules/expiring-todo-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ This rule implements [`eslint/no-warning-comments`](https://eslint.org/docs/rule
143143

144144
The sole difference is that first we check for **valid conditions** to apply this rule. If no valid conditions are met, we fall back to `eslint/no-warning-comments` if [`allowWarningComments`](#allowWarningComments) is set to `false` (default `true`) and you'll see something like `Unexpected 'todo' comment without any conditions.`
145145

146-
The reason behind this is that now that you have a powerful rule to make sure there are no stray TODOs on your code, you should strive for best pratices. Don't just add TODO comments and leave them forever. Define conditions to justify the presence of warning comments.
146+
The reason behind this is that now that you have a powerful rule to make sure there are no stray TODOs on your code, you should strive for best practices. Don't just add TODO comments and leave them forever. Define conditions to justify the presence of warning comments.
147147

148148
With that in mind, you **could** disable that ESLint rule in favor of this one as you will get its same behavior and more.
149149

docs/rules/no-keyword-prefix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ foo.newFoo = 2; // pass
5353

5454
### `onlyCamelCase`
5555

56-
The default behavor is to check for camel case usage. If you want to forbid the prefix entirely, set `onlyCamelCase` to `false`:
56+
The default behavior is to check for camel case usage. If you want to forbid the prefix entirely, set `onlyCamelCase` to `false`:
5757

5858
```js
5959
// eslint unicorn/no-keyword-prefix: ["error", {"onlyCamelCase": true}]

rules/import-style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ const create = context => {
185185
// For `require`, `'default'` style allows both `x = require('x')` (`'namespace'` style) and
186186
// `{default: x} = require('x')` (`'default'` style) since we don't know in advance
187187
// whether `'x'` is a compiled ES6 module (with `default` key) or a CommonJS module and `require`
188-
// does not provide any automatic interop for this, so the user may have to use either of theese.
188+
// does not provide any automatic interop for this, so the user may have to use either of these.
189189
if (isRequire && allowedImportStyles.has('default') && !allowedImportStyles.has('namespace')) {
190190
effectiveAllowedImportStyles = new Set(allowedImportStyles);
191191
effectiveAllowedImportStyles.add('namespace');

rules/prevent-abbreviations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ const create = context => {
317317
const filenameWithExtension = context.getPhysicalFilename();
318318

319319
// A `class` declaration produces two variables in two scopes:
320-
// the inner class scope, and the outer one (whereever the class is declared).
320+
// the inner class scope, and the outer one (wherever the class is declared).
321321
// This map holds the outer ones to be later processed when the inner one is encountered.
322322
// For why this is not a eslint issue see https://github.com/eslint/eslint-scope/issues/48#issuecomment-464358754
323323
const identifierToOuterClassVariable = new WeakMap();

test/smoke/eslint-remote-tester.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
/** Maximum amount of tasks ran concurrently */
3030
concurrentTasks: 3,
3131

32-
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defauls to true. */
32+
/** Optional boolean flag used to enable caching of cloned repositories. For CIs it's ideal to disable caching. Defaults to true. */
3333
cache: false,
3434

3535
/** Optional setting for log level. Valid values are verbose, info, warn, error. Defaults to verbose. */

0 commit comments

Comments
 (0)