Skip to content

Commit b3714ac

Browse files
committed
Update espree dependency to ^3.0.0
1 parent 12a3b3c commit b3714ac

2 files changed

Lines changed: 3 additions & 22 deletions

File tree

lib/extract.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -169,31 +169,12 @@ var Extractor = (function () {
169169
var syntax;
170170
try {
171171
syntax = espree.parse(src, {
172-
tolerant: true,
173172
attachComment: true,
174173
loc: true,
174+
ecmaVersion: 6,
175175
ecmaFeatures: {
176-
arrowFunctions: true,
177-
blockBindings: true,
178-
destructuring: true,
179-
regexYFlag: true,
180-
regexUFlag: true,
181-
templateStrings: true,
182-
binaryLiterals: true,
183-
octalLiterals: true,
184-
unicodeCodePointEscapes: true,
185-
defaultParams: true,
186-
restParams: true,
187-
forOf: true,
188-
objectLiteralComputedProperties: true,
189-
objectLiteralShorthandMethods: true,
190-
objectLiteralShorthandProperties: true,
191-
objectLiteralDuplicateProperties: true,
192-
generators: true,
193-
spread: true,
194-
classes: true,
195-
modules: true,
196176
jsx: true,
177+
experimentalObjectRestSpread: true,
197178
globalReturn: true
198179
}
199180
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"dependencies": {
4040
"binary-search": "^1.2.0",
4141
"cheerio": "~0.19.0",
42-
"espree": "^2.0.0",
42+
"espree": "^3.0.0",
4343
"lodash": "^4.0.0",
4444
"pofile": "~1.0.0"
4545
}

0 commit comments

Comments
 (0)