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