diff --git a/build-system/tasks/presubmit-checks.js b/build-system/tasks/presubmit-checks.js index 6616ef85238a..91c37f4eb5c9 100644 --- a/build-system/tasks/presubmit-checks.js +++ b/build-system/tasks/presubmit-checks.js @@ -54,10 +54,6 @@ var forbiddenTerms = { 'Promise\\.race': es6polyfill, '\\.startsWith': es6polyfill, '\\.endsWith': es6polyfill, - // TODO: (erwinm) rewrite the destructure and spread warnings as - // eslint rules (takes more time than this quick regex fix). - // No destructuring allowed since we dont ship with Array polyfills. - '^\\s*(?:let|const|var).*(?:\\[|{).*=': es6polyfill, // No spread (eg. test(...args) allowed since we dont ship with Array // polyfills except `arguments` spread as babel does not polyfill // it since it can assume that it can `slice` w/o the use of helpers.