.eslintrc.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. 'space-before-function-paren': 0,
  12. 'no-unused-vars': 'off',
  13. camelcase: 'off',
  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. quotes: [
  39. 2,
  40. 'single',
  41. {
  42. avoidEscape: true,
  43. allowTemplateLiterals: true
  44. }
  45. ],
  46. semi: [
  47. 2,
  48. 'never',
  49. {
  50. beforeStatementContinuationChars: 'never'
  51. }
  52. ],
  53. 'no-delete-var': 2,
  54. 'prefer-const': [
  55. 2,
  56. {
  57. ignoreReadBeforeAssign: false
  58. }
  59. ]
  60. },
  61. parserOptions: {
  62. parser: 'babel-eslint'
  63. },
  64. globals: {
  65. wx: true,
  66. tracking: true,
  67. QRCode: true,
  68. defineProps: true,
  69. defineEmits: true
  70. }
  71. }