From d74fc265de2bca3060da2e6f5ec00371b16e43ca Mon Sep 17 00:00:00 2001 From: neogy-akash Date: Wed, 9 Oct 2024 21:57:23 +0530 Subject: [PATCH] Build: Enforce ECMAScript 5 in tests via ESLint Fixes gh-5542 Closes gh-5563 --- eslint.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index ceb943dbb..575c93fa4 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -159,11 +159,13 @@ export default [ "test/data/core/jquery-iterability-transpiled.js" ], languageOptions: { - ecmaVersion: 2015, + ecmaVersion: 5, sourceType: "script", globals: { ...globals.browser, require: false, + Promise: false, + Symbol: false, trustedTypes: false, QUnit: false, ajaxTest: false,