Skip to content

Commit 6ae7534

Browse files
committed
MDL-74301 eslint: Upgrade eslint and babel
This patch includes changes: * Upgrade "@babel/core" to latest point release * Remove plugins already included into current "@babel/preset-env": - "@babel/plugin-proposal-class-properties" - "@babel/plugin-proposal-json-strings" - "@babel/plugin-syntax-dynamic-import" - "@babel/plugin-syntax-import-meta" * Upgrade "eslint" to latest version * Replace "eslint-plugin-babel" (depreacted in 2019) with "@babel/eslint-parser" and "@babel/eslint-plugin"
1 parent 8dbb618 commit 6ae7534

File tree

3 files changed

+532
-394
lines changed

3 files changed

+532
-394
lines changed

.grunt/tasks/javascript.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,7 @@ module.exports = grunt => {
151151
//
152152
// It also adds the Moodle plugin name to the AMD module definition
153153
// so that it can be imported as expected in other modules.
154-
path.resolve('.grunt/babel-plugin-add-module-to-define.js'),
155-
'@babel/plugin-syntax-dynamic-import',
156-
'@babel/plugin-syntax-import-meta',
157-
['@babel/plugin-proposal-class-properties', {'loose': false}],
158-
'@babel/plugin-proposal-json-strings'
154+
path.resolve('.grunt/babel-plugin-add-module-to-define.js')
159155
],
160156
presets: [
161157
['@babel/preset-env', {

0 commit comments

Comments
 (0)