hopglass/tasks/linting.js

38 lines
784 B
JavaScript
Raw Normal View History

2015-03-29 14:43:02 +02:00
module.exports = function (grunt) {
grunt.config.merge({
checkDependencies: {
options: {
install: true
},
bower: {
options: {
packageManager: "bower"
}
},
npm: {}
},
eslint: {
options: {
2015-03-29 16:14:10 +02:00
rules: {
"semi": [2, "never"],
"curly": [2, "multi"],
"strict": [2, "never"],
"no-multi-spaces": 0,
"no-new": 0,
2015-04-07 17:41:17 +02:00
"no-shadow": 0,
"no-use-before-define": [1, "nofunc"]
2015-03-29 14:43:02 +02:00
}
},
sources: {
2015-03-30 03:20:43 +02:00
src: ["app.js", "!Gruntfile.js", "lib/**/*.js"]
2015-03-29 14:43:02 +02:00
},
grunt: {
src: ["Gruntfile.js", "tasks/*.js"]
}
}
})
grunt.loadNpmTasks("grunt-check-dependencies")
grunt.loadNpmTasks("grunt-eslint")
}