enable more Babylon options (#1411)

This commit is contained in:
Jeff Williams 2017-07-22 14:38:01 -07:00
parent 8aeedb7503
commit e6a313c4ca

View File

@ -6,8 +6,9 @@ var logger = require('jsdoc/util/logger');
// exported so we can use them in tests
var parserOptions = exports.parserOptions = {
ranges: true,
sourceType: env.conf.sourceType,
allowImportExportEverywhere: true,
allowReturnOutsideFunction: true,
allowSuperOutsideMethod: true,
plugins: [
'asyncGenerators',
'bigInt',
@ -26,7 +27,9 @@ var parserOptions = exports.parserOptions = {
'objectRestSpread',
'optionalCatchBinding',
'optionalChaining'
]
],
ranges: true,
sourceType: env.conf.sourceType
};
// TODO: docs