From ce7db4adf0524afe1cdac2937374f2aeba073845 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 (cherry picked from commit d74fc265de2bca3060da2e6f5ec00371b16e43ca) --- eslint.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 37dc57bf3..b1a237865 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -122,11 +122,13 @@ module.exports = [ "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, -- 2.39.5