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.
no-keyword-prefix
1 parent 0520f31 commit 8606a13Copy full SHA for 8606a13
test/no-keyword-prefix.js
@@ -1,3 +1,4 @@
1
+import {outdent} from 'outdent';
2
import {test} from './utils/test.js';
3
4
const errorNew = {
@@ -85,6 +86,23 @@ test({
85
86
{
87
code: 'const newFoo = "foo"',
88
options: [{blacklist: ['old']}]
89
+ },
90
+ outdent`
91
+ function Foo() {
92
+ console.log(new.target, new.target.name);
93
+ }
94
+ `,
95
96
+ class Foo {
97
+ constructor() {
98
99
100
101
102
+ 'const foo = {new: 1};',
103
+ {
104
+ code: 'var foo = {new: 1}',
105
+ options: [{checkProperties: false}]
106
}
107
],
108
invalid: [
0 commit comments