hopglass/tasks/linting.js
Milan Pässler f1e9aacdf7 fix linting
2017-03-21 22:53:35 +01:00

36 lines
683 B
JavaScript

module.exports = function (grunt) {
grunt.config.merge({
checkDependencies: {
options: {
install: true
},
bower: {
options: {
packageManager: "bower"
}
},
npm: {}
},
eslint: {
options: {
extends: [
"defaults/configurations/eslint"
],
rules: {
"semi": [2, "always"],
"no-undef": 0
}
},
sources: {
src: ["app.js", "!Gruntfile.js", "lib/**/*.js"]
},
grunt: {
src: ["Gruntfile.js", "tasks/*.js"]
}
}
});
grunt.loadNpmTasks("grunt-check-dependencies");
grunt.loadNpmTasks("grunt-eslint");
};