From cb8ab6ccdb8a7b843301793d4b7138a5a3750d6b Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Sat, 15 Jun 2024 09:11:34 -0400 Subject: Build: upgrade dependencies; fix bundler tests on windows - account for newly unused parameters in the slim builds Closes gh-5509 --- eslint.config.js | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'eslint.config.js') diff --git a/eslint.config.js b/eslint.config.js index d4e57930e..68451ab4c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -11,7 +11,8 @@ export default [ ignores: [ "external", "**/tmp", - "test/data/json_obj.js" + "test/data/json_obj.js", + "test/data/jquery-*.js" ] }, @@ -147,7 +148,6 @@ export default [ "test/unit/**" ], ignores: [ - "test/data/jquery-3.7.1.js", "test/data/badcall.js", "test/data/badjson.js", "test/data/support/csp.js", @@ -349,6 +349,28 @@ export default [ } }, + { + files: [ + "dist/jquery.slim.js", + "dist/jquery.factory.slim.js", + "dist-module/jquery.slim.module.js", + "dist-module/jquery.factory.slim.module.js" + ], + rules: { + + // Rollup is now smart enough to remove the use + // of parameters if the argument is not passed + // anywhere in the build. + // The removal of effects in the slim build + // results in some parameters not being used, + // which can be safely ignored. + "no-unused-vars": [ + "error", + { args: "none" } + ] + } + }, + { files: [ "src/wrapper.js", -- cgit v1.2.3