Skip to content

Instantly share code, notes, and snippets.

@DaikiSuganuma
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaikiSuganuma/e15f780aedb086e191b8 to your computer and use it in GitHub Desktop.
Save DaikiSuganuma/e15f780aedb086e191b8 to your computer and use it in GitHub Desktop.
Grunt Configuration with JSHint for Titanium Project. see http://se-suganuma.blogspot.jp/2014/05/macjshint-gruntjavascript.html
module.exports = function(grunt){
// Load plugins
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.initConfig({
options: {
livereload: true,
},
jshint: {
all: ['Resources/**/*.js'],
options: {
validthis: true,
unused: true,
node: true,
newcap: false,
globals: {
Ti: true,
L: true
},
}
},
watch: {
jshint: {
files: ["Resources/**/*.js"],
tasks: ["jshint:all"]
}
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment