diff --git a/.eslintrc.js b/.eslintrc.js index 7a43b923e8..3f8c5b66bd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -7,6 +7,7 @@ module.exports = { ECL: 'writable', }, env: { + es2020: true, node: true, browser: true, }, diff --git a/src/presets/ec/src/ec-esm.js b/src/presets/ec/src/ec-esm.js index 82d23964cc..48de48a2ca 100644 --- a/src/presets/ec/src/ec-esm.js +++ b/src/presets/ec/src/ec-esm.js @@ -64,7 +64,6 @@ const ECL = { export { ECL }; if (typeof globalThis !== 'undefined') { - // eslint-disable-next-line no-undef globalThis.ECL = ECL; } else if (typeof window !== 'undefined') { window.ECL = ECL; diff --git a/src/presets/eu/src/eu-esm.js b/src/presets/eu/src/eu-esm.js index 82d23964cc..48de48a2ca 100644 --- a/src/presets/eu/src/eu-esm.js +++ b/src/presets/eu/src/eu-esm.js @@ -64,7 +64,6 @@ const ECL = { export { ECL }; if (typeof globalThis !== 'undefined') { - // eslint-disable-next-line no-undef globalThis.ECL = ECL; } else if (typeof window !== 'undefined') { window.ECL = ECL;