.eslintrc.js 618 B

12345678910111213141516171819202122232425
  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. }
  25. }