.eslintrc.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. module.exports = {
  2. "root": true,
  3. "env": {
  4. "node": true
  5. },
  6. "extends": [
  7. "plugin:vue/strongly-recommended",
  8. "@vue/standard"
  9. ],
  10. "parserOptions": {
  11. "parser": "babel-eslint"
  12. },
  13. "rules": {
  14. "generator-star-spacing": "off",
  15. "no-mixed-operators": 0,
  16. "vue/max-attributes-per-line": [
  17. 2,
  18. {
  19. "singleline": 5,
  20. "multiline": {
  21. "max": 1,
  22. "allowFirstLine": false
  23. }
  24. }
  25. ],
  26. "vue/attribute-hyphenation": 0,
  27. "vue/html-self-closing": 0,
  28. "vue/component-name-in-template-casing": 0,
  29. "vue/html-closing-bracket-spacing": 0,
  30. "vue/singleline-html-element-content-newline": 0,
  31. "vue/no-unused-components": 0,
  32. "vue/multiline-html-element-content-newline": 0,
  33. "vue/no-use-v-if-with-v-for": 0,
  34. "vue/html-closing-bracket-newline": 0,
  35. "vue/no-parsing-error": 0,
  36. "no-console": 0,
  37. "no-tabs": 0,
  38. "camelcase": "off",
  39. "quotes": [
  40. 2,
  41. "single",
  42. {
  43. "avoidEscape": true,
  44. "allowTemplateLiterals": true
  45. }
  46. ],
  47. "semi": [
  48. 2,
  49. "never",
  50. {
  51. "beforeStatementContinuationChars": "never"
  52. }
  53. ],
  54. "no-delete-var": 2,
  55. "prefer-const": [
  56. 2,
  57. {
  58. "ignoreReadBeforeAssign": false
  59. }
  60. ]
  61. }
  62. }