]> source.dussan.org Git - jquery.git/commitdiff
Build: Enforce ECMAScript 5 in tests via ESLint
authorneogy-akash <AKASHNEOGY400@GMAIL.COM>
Wed, 9 Oct 2024 16:27:23 +0000 (21:57 +0530)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 16:27:23 +0000 (18:27 +0200)
Fixes gh-5542
Closes gh-5563

eslint.config.js

index ceb943dbbea9e61d5ee3c4436faceed19a23bf1a..575c93fa4b0dec5f6f1a80cbee5dbb58c2c9dcb9 100644 (file)
@@ -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,