4
0

linting.js 735 B

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