.eslintrc.js 869 B

1234567891011121314151617181920212223242526272829303132
  1. // @ts-check
  2. const { defineConfig } = require('eslint-define-config')
  3. // 个人开发用,保持宽松,只做基础检查
  4. module.exports = defineConfig({
  5. root: true,
  6. env: {
  7. browser: true,
  8. node: true,
  9. es6: true
  10. },
  11. parser: 'vue-eslint-parser',
  12. parserOptions: {
  13. parser: '@typescript-eslint/parser',
  14. ecmaVersion: 2020,
  15. sourceType: 'module',
  16. ecmaFeatures: { jsx: true }
  17. },
  18. extends: [
  19. 'plugin:vue/vue3-essential',
  20. 'plugin:@typescript-eslint/recommended',
  21. 'prettier'
  22. ],
  23. rules: {
  24. '@typescript-eslint/no-explicit-any': 'off',
  25. '@typescript-eslint/no-unused-vars': 'off',
  26. '@typescript-eslint/ban-ts-comment': 'off',
  27. '@typescript-eslint/no-empty-function': 'off',
  28. '@typescript-eslint/explicit-module-boundary-types': 'off',
  29. 'vue/multi-word-component-names': 'off',
  30. 'no-console': 'off'
  31. }
  32. })