Build: Enforce ECMAScript 5 in tests via ESLint

Fixes gh-5542
Closes gh-5563

(cherry picked from commit d74fc265de)
This commit is contained in:
neogy-akash 2024-10-09 21:57:23 +05:30 committed by Michał Gołębiowski-Owczarek
parent 92a437bed2
commit ce7db4adf0
No known key found for this signature in database

View File

@ -122,11 +122,13 @@ module.exports = [
"test/data/core/jquery-iterability-transpiled.js" "test/data/core/jquery-iterability-transpiled.js"
], ],
languageOptions: { languageOptions: {
ecmaVersion: 2015, ecmaVersion: 5,
sourceType: "script", sourceType: "script",
globals: { globals: {
...globals.browser, ...globals.browser,
require: false, require: false,
Promise: false,
Symbol: false,
trustedTypes: false, trustedTypes: false,
QUnit: false, QUnit: false,
ajaxTest: false, ajaxTest: false,