linting.js 821 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. "no-underscore-dangle": 0
  25. }
  26. },
  27. sources: {
  28. src: ["app.js", "!Gruntfile.js", "lib/**/*.js"]
  29. },
  30. grunt: {
  31. src: ["Gruntfile.js", "tasks/*.js"]
  32. }
  33. }
  34. })
  35. grunt.loadNpmTasks("grunt-check-dependencies")
  36. grunt.loadNpmTasks("grunt-eslint")
  37. }