Skip to content

Commit

Permalink
upgrade Espree (#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Sep 12, 2016
1 parent 8ad5eba commit f9c42de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 deletions.
35 changes: 8 additions & 27 deletions lib/jsdoc/src/astbuilder.js
Expand Up @@ -75,36 +75,17 @@ var acceptsLeadingComments = (function() {
// exported so we can use them in tests
var parserOptions = exports.parserOptions = {
comment: true,
loc: true,
range: true,
tokens: true,
ecmaFeatures: {
arrowFunctions: true,
binaryLiterals: true,
blockBindings: true,
classes: true,
defaultParams: true,
destructuring: true,
experimentalObjectRestSpread: true,
forOf: true,
generators: true,
globalReturn: true,
jsx: true,
modules: true,
newTarget: true,
objectLiteralComputedProperties: true,
objectLiteralDuplicateProperties: true,
objectLiteralShorthandMethods: true,
objectLiteralShorthandProperties: true,
octalLiterals: true,
regexUFlag: true,
regexYFlag: true,
restParams: true,
spread: true,
superInFunctions: true,
templateStrings: true,
unicodeCodePointEscapes: true
}
impliedStrict: true,
jsx: true
},
ecmaVersion: 7,
loc: true,
range: true,
sourceType: 'module',
tokens: true
};

// TODO: docs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -16,7 +16,7 @@
"bluebird": "~3.4.6",
"catharsis": "~0.8.8",
"escape-string-regexp": "~1.0.5",
"espree": "~2.2.5",
"espree": "~3.1.7",
"fs-extra": "~0.30.0",
"js2xmlparser": "~1.0.0",
"marked": "~0.3.6",
Expand Down

0 comments on commit f9c42de

Please sign in to comment.