hopglass/tasks/linting.js

36 lines
658 B
JavaScript
Raw Normal View History

2015-03-29 14:43:02 +02:00
"use strict"
module.exports = function (grunt) {
grunt.config.merge({
checkDependencies: {
options: {
install: true
},
bower: {
options: {
packageManager: "bower"
}
},
npm: {}
},
eslint: {
options: {
rule: {
semi: [2, "never"],
strict: [2, "never"],
curly: [2, "multi"]
}
},
sources: {
src: ["app.js", "!Gruntfile.js", "lib/*.js"]
},
grunt: {
src: ["Gruntfile.js", "tasks/*.js"]
}
}
})
grunt.loadNpmTasks("grunt-check-dependencies")
grunt.loadNpmTasks("grunt-eslint")
}