.eslintrc.js 890 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. 'vue/setup-compiler-macros': true
  6. },
  7. 'extends': [
  8. 'plugin:vue/vue3-essential',
  9. 'eslint:recommended',
  10. '@vue/typescript/recommended'
  11. ],
  12. parserOptions: {
  13. ecmaVersion: 2020
  14. },
  15. rules: {
  16. '@typescript-eslint/no-var-requires': 0,
  17. '@typescript-eslint/explicit-module-boundary-types': 'off',
  18. '@typescript-eslint/no-non-null-assertion': 'off',
  19. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  20. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  21. 'vue/multi-word-component-names': 0,
  22. // https://segmentfault.com/q/1010000040251236
  23. // https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
  24. 'no-undef': 'off',
  25. }
  26. }