mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
enable more Babylon options (#1411)
This commit is contained in:
parent
8aeedb7503
commit
e6a313c4ca
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user