File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -75,22 +75,25 @@ var ast = espree.parse(code, {
75
75
octalLiterals: true ,
76
76
77
77
// enable parsing of for-of statement
78
- forOf: false ,
78
+ forOf: true ,
79
79
80
80
// enable parsing computed object literal properties
81
- objectLiteralComputedProperties: false ,
81
+ objectLiteralComputedProperties: true ,
82
82
83
83
// enable parsing of shorthand object literal methods
84
- objectLiteralShorthandMethods: false ,
84
+ objectLiteralShorthandMethods: true ,
85
85
86
86
// enable parsing of shorthand object literal properties
87
- objectLiteralShorthandProperties: false ,
87
+ objectLiteralShorthandProperties: true ,
88
+
89
+ // Allow duplicate object literal properties (except '__proto__')
90
+ objectLiteralDuplicateProperties: true ,
88
91
89
92
// enable parsing of generators/yield
90
- generators: false ,
93
+ generators: true ,
91
94
92
95
// React JSX parsing
93
- jsx: false
96
+ jsx: true
94
97
}
95
98
});
96
99
```
You can’t perform that action at this time.
0 commit comments