.eslintrc.js 1.3 KB

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