aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-03 21:23:20 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-03 21:23:20 -0400
commit3d9545ad2719853a075a00646458dfc679074d72 (patch)
tree0ec1c8fcc526a8b44a28fce42e838e5f7ec92e28
parente8bdf468614e59309b4a02ad4f6c29c1d06083c1 (diff)
downloadjquery-ui-3d9545ad2719853a075a00646458dfc679074d72.tar.gz
jquery-ui-3d9545ad2719853a075a00646458dfc679074d72.zip
Update lint task to include the release script.
-rw-r--r--build/.jshintrc13
-rw-r--r--build/release/release.js3
-rw-r--r--grunt.js2
3 files changed, 16 insertions, 2 deletions
diff --git a/build/.jshintrc b/build/.jshintrc
new file mode 100644
index 000000000..9e6abf31d
--- /dev/null
+++ b/build/.jshintrc
@@ -0,0 +1,13 @@
+{
+ "curly": true,
+ "eqnull": true,
+ "eqeqeq": true,
+ "expr": true,
+ "noarg": true,
+ "node": true,
+ "onevar": true,
+ "smarttabs": true,
+ "strict": false,
+ "trailing": true,
+ "undef": true
+}
diff --git a/build/release/release.js b/build/release/release.js
index 9a0f9a9e7..0acd33256 100644
--- a/build/release/release.js
+++ b/build/release/release.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+/*global cat:true echo:true exec:true exit:true cd:true*/
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
fs = require( "fs" ),
@@ -250,7 +251,7 @@ function gatherContributors() {
echo ( "Adding people thanked in commits..." );
contributors = contributors.concat(
gitLog( "%b%n%s" ).filter(function( line ) {
- return /thank/i.test( line );
+ return (/thank/i).test( line );
}));
fs.writeFileSync( contributorsPath, contributors.join( "\n" ) );
diff --git a/grunt.js b/grunt.js
index 548393b59..08647a7a1 100644
--- a/grunt.js
+++ b/grunt.js
@@ -287,7 +287,7 @@ grunt.initConfig({
// TODO remove items from this list once rewritten
return !( /(mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file );
}),
- grunt: [ "grunt.js", "build/tasks/*.js" ],
+ grunt: [ "grunt.js", "build/**/*.js" ],
tests: "tests/unit/**/*.js"
},
csslint: {