.eslintrc.js 718 B

1234567891011121314151617181920212223242526272829
  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. "prettier/prettier": "off"
  21. },
  22. globals: {
  23. wx: true,
  24. SyncStatus: true,
  25. InstallMode: true,
  26. StatusBar: true,
  27. imageSaver: true
  28. }
  29. };