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.
prefer-primordials
1 parent c73865c commit 6d552c8Copy full SHA for 6d552c8
1 file changed
test/parallel/test-eslint-prefer-primordials.js
@@ -89,6 +89,15 @@ new RuleTester({
89
`,
90
options: [{ name: 'Function' }],
91
},
92
+ {
93
+ code: `
94
+ const { Function } = primordials;
95
+ let rename;
96
+ rename = Function;
97
+ const obj = { rename };
98
+ `,
99
+ options: [{ name: 'Function' }],
100
+ },
101
],
102
invalid: [
103
{
@@ -211,5 +220,14 @@ new RuleTester({
211
220
212
221
errors: [{ message: /const { Function } = primordials/ }]
213
222
223
224
225
226
227
228
229
230
+ errors: [{ message: /const { Function } = primordials/ }]
231
214
232
]
215
233
});
0 commit comments