diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-06-15 09:11:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 09:11:34 -0400 |
commit | cb8ab6ccdb8a7b843301793d4b7138a5a3750d6b (patch) | |
tree | 4aeab6abf440cc306390e7bd1b95b6e17a51f6fe /eslint.config.js | |
parent | ea31e4d57c05a072df98a08df6532b2afb679d30 (diff) | |
download | jquery-cb8ab6ccdb8a7b843301793d4b7138a5a3750d6b.tar.gz jquery-cb8ab6ccdb8a7b843301793d4b7138a5a3750d6b.zip |
Build: upgrade dependencies; fix bundler tests on windows
- account for newly unused parameters in the slim builds
Closes gh-5509
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 26 |
1 files changed, 24 insertions, 2 deletions
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", @@ -351,6 +351,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", "src/wrapper-factory.js", "dist/jquery.factory.js", |