diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-06-07 00:58:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 00:58:12 +0200 |
commit | 70dae67b73dfea9126f126f516fe8286f1e73417 (patch) | |
tree | e61eafab41ee74330fecf1da2ce125050cfac49b /build | |
parent | a12c98574d07f002fd59d166f9fc1fd391581b91 (diff) | |
download | jquery-ui-70dae67b73dfea9126f126f516fe8286f1e73417.tar.gz jquery-ui-70dae67b73dfea9126f126f516fe8286f1e73417.zip |
Build: Migrate from JSHint & JSCS to ESLint
Fixes #15393
Closes gh-1958
Diffstat (limited to 'build')
-rw-r--r-- | build/release-test.js | 2 | ||||
-rw-r--r-- | build/release.js | 4 | ||||
-rw-r--r-- | build/tasks/build.js | 4 | ||||
-rw-r--r-- | build/tasks/testswarm.js | 8 |
4 files changed, 11 insertions, 7 deletions
diff --git a/build/release-test.js b/build/release-test.js index be5227a43..2f3b7db92 100644 --- a/build/release-test.js +++ b/build/release-test.js @@ -1,3 +1,5 @@ +"use strict"; + var shell = require( "shelljs" ); var Release = { define: function( props ) { diff --git a/build/release.js b/build/release.js index 99b26833b..72d607128 100644 --- a/build/release.js +++ b/build/release.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function( Release ) { var crypto = require( "crypto" ); @@ -35,7 +37,7 @@ function replaceAtVersion() { return matches; } -function removeExternals ( packager ) { +function removeExternals( packager ) { Object.keys( packager.builtFiles ).forEach( function( filepath ) { if ( /^external\//.test( filepath ) ) { delete packager.builtFiles[ filepath ]; diff --git a/build/tasks/build.js b/build/tasks/build.js index 77ae2545d..48feb7aba 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -1,7 +1,7 @@ -module.exports = function( grunt ) { - "use strict"; +module.exports = function( grunt ) { + grunt.registerTask( "clean", function() { require( "rimraf" ).sync( "dist" ); } ); diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index deaa5cee7..ebc2c49ee 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -1,7 +1,7 @@ -module.exports = function( grunt ) { - "use strict"; +module.exports = function( grunt ) { + var versions = { "git": "git", "3.x-git": "3.x-git", @@ -95,7 +95,7 @@ grunt.registerTask( "testswarm", function( commit, configFile, browserSets ) { var test, latestTests = {}; for ( test in tests ) { - latestTests[ test ] = tests[ test ] + "?nojshint=true"; + latestTests[ test ] = tests[ test ]; } submit( commit, latestTests, configFile, browserSets, "", this.async() ); } ); @@ -104,7 +104,7 @@ grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile, mino var allTests = {}; versions[ minor ].split( " " ).forEach( function( version ) { for ( var test in tests ) { - allTests[ test + "-" + version ] = tests[ test ] + "?nojshint=true&jquery=" + version; + allTests[ test + "-" + version ] = tests[ test ] + "?jquery=" + version; } } ); submit( commit, allTests, configFile, browserSets, "core " + minor, this.async() ); |