.eslintrc.cjs 704 B

1234567891011121314151617181920212223242526272829
  1. /* eslint-env node */
  2. require('@rushstack/eslint-patch/modern-module-resolution')
  3. module.exports = {
  4. root: true,
  5. extends: [
  6. 'plugin:vue/vue3-essential',
  7. 'eslint:recommended',
  8. '@vue/eslint-config-typescript',
  9. '@vue/eslint-config-prettier/skip-formatting'
  10. ],
  11. parserOptions: {
  12. ecmaVersion: 'latest'
  13. },
  14. env: {
  15. node: true
  16. },
  17. rules: {
  18. 'vue/no-deprecated-slot-attribute': 'off',
  19. 'no-unused-vars': 'off',
  20. 'vue/multi-word-component-names': 'off',
  21. '@typescript-eslint/no-unused-vars': 'off'
  22. },
  23. globals: {
  24. Chat: 'readonly',
  25. NoCaptcha: 'readonly',
  26. wx: 'readonly'
  27. }
  28. }