linting.js 658 B

1234567891011121314151617181920212223242526272829303132333435
  1. "use strict"
  2. module.exports = function (grunt) {
  3. grunt.config.merge({
  4. checkDependencies: {
  5. options: {
  6. install: true
  7. },
  8. bower: {
  9. options: {
  10. packageManager: "bower"
  11. }
  12. },
  13. npm: {}
  14. },
  15. eslint: {
  16. options: {
  17. rule: {
  18. semi: [2, "never"],
  19. strict: [2, "never"],
  20. curly: [2, "multi"]
  21. }
  22. },
  23. sources: {
  24. src: ["app.js", "!Gruntfile.js", "lib/*.js"]
  25. },
  26. grunt: {
  27. src: ["Gruntfile.js", "tasks/*.js"]
  28. }
  29. }
  30. })
  31. grunt.loadNpmTasks("grunt-check-dependencies")
  32. grunt.loadNpmTasks("grunt-eslint")
  33. }