Skip to content

Commit

Permalink
Fix link in new-for-builtins rule documentation (#939)
Browse files Browse the repository at this point in the history
* Fix link in `new-for-builtins` rule documentation

* Fix typo
  • Loading branch information
FloEdelmann committed Dec 18, 2020
1 parent 25fd5ec commit 16275b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/new-for-builtins.md
Expand Up @@ -39,7 +39,7 @@ Disallows the use of `new` for following builtins.

> These should not use `new` as that would create object wrappers for the primitive values, which is not what you want. However, without `new` they can be useful for coercing a value to that type.
This rule is fixable, except `new String()`, `new Number()`, and `new Boolean()`, [they returns wrapped object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#String_primitives_and_String_objects#String_primitives_and_String_objects).
This rule is fixable, except `new String()`, `new Number()`, and `new Boolean()`, [they return wrapped object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#String_primitives_and_String_objects).

## Fail

Expand Down

0 comments on commit 16275b8

Please sign in to comment.