We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
new-for-builtins
new
SharedArrayBuffer
Proxy
1 parent 768f301 commit 2ba83adCopy full SHA for 2ba83ad
docs/rules/new-for-builtins.md
@@ -28,6 +28,8 @@ Enforces the use of `new` for following builtins:
28
- `Uint16Array`
29
- `Uint32Array`
30
- `Uint8ClampedArray`
31
+- `SharedArrayBuffer`
32
+- `Proxy`
33
34
Disallows the use of `new` for following builtins.
35
rules/utils/builtins.js
@@ -15,6 +15,8 @@ const enforceNew = [
15
'WeakSet',
16
'Promise',
17
'RegExp',
18
+ 'SharedArrayBuffer',
19
+ 'Proxy',
20
...typedArray,
21
];
22
0 commit comments