Build: Enforce ECMAScript 5 in tests via ESLint

Fixes gh-5542
Closes gh-5563
This commit is contained in:
neogy-akash 2024-10-09 21:57:23 +05:30 committed by GitHub
parent 3ebe89f6be
commit d74fc265de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,11 +159,13 @@ export default [
"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,