足力健前端,vue版本

.eslintrc 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "env": {
  3. "browser": true,
  4. "node": true,
  5. "mocha": true
  6. },
  7. "globals": {
  8. "expect": false,
  9. "sinon": false
  10. },
  11. "extends": [
  12. "eslint:recommended"
  13. ],
  14. "rules": {
  15. // possible errors
  16. "no-cond-assign": 0,
  17. "no-empty": 0,
  18. "valid-jsdoc": [2, {
  19. "prefer": {"return": "return"},
  20. "requireReturn": false
  21. }],
  22. // best practices
  23. "no-extra-bind": 2,
  24. // style
  25. "comma-spacing": [2, {"before": false, "after": true}],
  26. "eol-last": [0],
  27. "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
  28. "linebreak-style": [2, "unix"],
  29. "max-len": [2, 80, {"ignoreUrls": true}],
  30. "no-multiple-empty-lines": [2, {"max": 2}],
  31. "no-unused-vars": ["error", {"vars": "all"}],
  32. "no-trailing-spaces": 2,
  33. "object-curly-spacing": [2, "never"],
  34. "quotes": [2, "single"],
  35. "require-jsdoc": [2, {
  36. "require": {
  37. "FunctionDeclaration": true,
  38. "MethodDefinition": true,
  39. "ClassDeclaration": true
  40. }
  41. }],
  42. "semi": [2, "always"],
  43. "semi-spacing": [2, {"before": false, "after": true}],
  44. }
  45. }