.eslintrc.js 799 B

123456789101112131415161718192021222324252627282930
  1. module.exports = {
  2. root: true,
  3. parser: 'vue-eslint-parser',
  4. globals: {
  5. postMessage: true
  6. },
  7. parserOptions: {
  8. parser: '@typescript-eslint/parser',
  9. sourceType: 'module',
  10. ecmaFeatures: {
  11. jsx: true,
  12. tsx: true
  13. }
  14. },
  15. env: {
  16. node: true,
  17. // The Follow config only works with eslint-plugin-vue v8.0.0+
  18. 'vue/setup-compiler-macros': true
  19. },
  20. extends: ['plugin:vue/vue3-essential', 'eslint:recommended'],
  21. rules: {
  22. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  23. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  24. 'no-unused-vars': 'off',
  25. 'vue/no-unused-vars': 'off',
  26. 'vue/multi-word-component-names': 'off',
  27. 'vue/valid-template-root': 'off',
  28. 'vue/no-mutating-props': 'off'
  29. }
  30. }