Configure eslint and Closure Compiler to accept ES6

This commit is contained in:
Christopher Allen
2021-07-13 23:54:36 +01:00
parent 8b81043a54
commit 2bdf2627af
2 changed files with 2 additions and 0 deletions

View File

@@ -75,6 +75,7 @@
}]
},
"env": {
"es6": true,
"browser": true
},
"globals": {

View File

@@ -118,6 +118,7 @@ function compile(compilerOptions, opt_verbose, opt_warnings_as_error,
const options = {};
options.compilation_level = 'SIMPLE_OPTIMIZATIONS';
options.warning_level = opt_verbose ? 'VERBOSE' : 'DEFAULT';
options.language_in = 'ECMASCRIPT6_STRICT',
options.language_out = 'ECMASCRIPT5_STRICT';
options.rewrite_polyfills = false;
options.hide_warnings_for = 'node_modules';