You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-instanceof-builtins.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
💼 This rule is enabled in the ✅ `recommended`[config](https://github.com/sindresorhus/eslint-plugin-unicorn#preset-configs-eslintconfigjs).
4
4
5
-
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
5
+
🔧💡 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix) and manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
6
6
7
7
<!-- end auto-generated rule header -->
8
8
<!-- Do not manually modify this header. Run: `npm run fix:eslint-docs` -->
@@ -73,7 +73,7 @@ The matching strategy:
73
73
-`'strict'` - Matches all built-in constructors.
74
74
75
75
```js
76
-
"unicorn/no-instanceof-builtin-object": [
76
+
"unicorn/no-instanceof-builtins": [
77
77
"error",
78
78
{
79
79
"strategy":"strict"
@@ -89,7 +89,7 @@ Default: `[]`
89
89
Specify the constructors that should be validated.
90
90
91
91
```js
92
-
"unicorn/no-instanceof-builtin-object": [
92
+
"unicorn/no-instanceof-builtins": [
93
93
"error",
94
94
{
95
95
"include": [
@@ -108,7 +108,7 @@ Default: `[]`
108
108
Specifies the constructors that should be excluded, with this rule taking precedence over others.
109
109
110
110
```js
111
-
"unicorn/no-instanceof-builtin-object": [
111
+
"unicorn/no-instanceof-builtins": [
112
112
"error",
113
113
{
114
114
"exclude": [
@@ -127,7 +127,7 @@ Default: `false`
127
127
Specifies using [`Error.isError()`](https://github.com/tc39/proposal-is-error) to determine whether it is an error object.
|[no-invalid-fetch-options](docs/rules/no-invalid-fetch-options.md)| Disallow invalid options in `fetch()` and `new Request()`. | ✅ |||
92
92
|[no-invalid-remove-event-listener](docs/rules/no-invalid-remove-event-listener.md)| Prevent calling `EventTarget#removeEventListener()` with the result of an expression. | ✅ |||
93
93
|[no-keyword-prefix](docs/rules/no-keyword-prefix.md)| Disallow identifiers starting with `new` or `class`. ||||
0 commit comments