Skip to content

Commit cb04184

Browse files
committed
Docs: Update README to reflect feature flags
1 parent 7d335f1 commit cb04184

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,25 @@ var ast = espree.parse(code, {
7575
octalLiterals: true,
7676

7777
// enable parsing of for-of statement
78-
forOf: false,
78+
forOf: true,
7979

8080
// enable parsing computed object literal properties
81-
objectLiteralComputedProperties: false,
81+
objectLiteralComputedProperties: true,
8282

8383
// enable parsing of shorthand object literal methods
84-
objectLiteralShorthandMethods: false,
84+
objectLiteralShorthandMethods: true,
8585

8686
// 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,
8891

8992
// enable parsing of generators/yield
90-
generators: false,
93+
generators: true,
9194

9295
// React JSX parsing
93-
jsx: false
96+
jsx: true
9497
}
9598
});
9699
```

0 commit comments

Comments
 (0)