.eslintrc.cjs 632 B

123456789101112131415161718192021222324252627282930
  1. /* eslint-env node */
  2. require('@rushstack/eslint-patch/modern-module-resolution')
  3. module.exports = {
  4. root: true,
  5. env: {
  6. browser: true,
  7. node: true
  8. },
  9. globals: {
  10. loginflag: true,
  11. $: true,
  12. JyObj: true,
  13. _hmt: true,
  14. vComponentChart: true
  15. },
  16. plugins: ['vue'],
  17. rules: {
  18. 'vue/no-mutating-props': 'off',
  19. 'vue/multi-word-component-names': 'off',
  20. 'no-empty': ['error', { allowEmptyCatch: true }],
  21. 'no-unused-vars': 'off',
  22. 'no-console': 'off',
  23. 'no-debugger': 'warn'
  24. },
  25. extends: [
  26. 'plugin:vue/essential',
  27. 'eslint:recommended',
  28. '@vue/eslint-config-prettier'
  29. ]
  30. }