mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
Configure eslint and Closure Compiler to accept ES6
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
}]
|
||||
},
|
||||
"env": {
|
||||
"es6": true,
|
||||
"browser": true
|
||||
},
|
||||
"globals": {
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user