linting.js 784 B

12345678910111213141516171819202122232425262728293031323334353637
  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. "no-use-before-define": [1, "nofunc"]
  24. }
  25. },
  26. sources: {
  27. src: ["app.js", "!Gruntfile.js", "lib/**/*.js"]
  28. },
  29. grunt: {
  30. src: ["Gruntfile.js", "tasks/*.js"]
  31. }
  32. }
  33. })
  34. grunt.loadNpmTasks("grunt-check-dependencies")
  35. grunt.loadNpmTasks("grunt-eslint")
  36. }