.eslintrc.js 680 B

12345678910111213141516171819202122232425262728
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/prettier'],
  7. parserOptions: {
  8. parser: 'babel-eslint',
  9. ecmaFeatures: {
  10. globalReturn: true
  11. }
  12. },
  13. rules: {
  14. 'no-console': 'off',
  15. 'no-debugger': 'off',
  16. 'no-unused-vars': 'off',
  17. 'no-empty': ['error', { allowEmptyCatch: true }],
  18. 'vue/custom-event-name-casing': 0,
  19. 'vue/no-parsing-error': ['error']
  20. },
  21. globals: {
  22. wx: true,
  23. SyncStatus: true,
  24. InstallMode: true,
  25. StatusBar: true,
  26. imageSaver: true
  27. }
  28. };