.eslintrc.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. module.exports = {
  2. parser: 'vue-eslint-parser',
  3. parserOptions: {
  4. parser: '@typescript-eslint/parser',
  5. ecmaVersion: 2020,
  6. sourceType: 'module',
  7. ecmaFeatures: {
  8. jsx: true,
  9. },
  10. },
  11. extends: [
  12. 'plugin:vue/vue3-recommended',
  13. 'plugin:@typescript-eslint/recommended',
  14. 'prettier/@typescript-eslint',
  15. 'plugin:prettier/recommended',
  16. ],
  17. rules: {
  18. '@typescript-eslint/ban-ts-ignore': 'off',
  19. '@typescript-eslint/explicit-function-return-type': 'off',
  20. '@typescript-eslint/no-explicit-any': 'off',
  21. '@typescript-eslint/no-var-requires': 'off',
  22. '@typescript-eslint/no-empty-function': 'off',
  23. 'vue/custom-event-name-casing': 'off',
  24. 'no-use-before-define': 'off',
  25. // 'no-use-before-define': [
  26. // 'error',
  27. // {
  28. // functions: false,
  29. // classes: true,
  30. // },
  31. // ],
  32. '@typescript-eslint/no-use-before-define': 'off',
  33. // '@typescript-eslint/no-use-before-define': [
  34. // 'error',
  35. // {
  36. // functions: false,
  37. // classes: true,
  38. // },
  39. // ],
  40. '@typescript-eslint/ban-ts-comment': 'off',
  41. '@typescript-eslint/ban-types': 'off',
  42. '@typescript-eslint/no-non-null-assertion': 'off',
  43. '@typescript-eslint/explicit-module-boundary-types': 'off',
  44. '@typescript-eslint/no-unused-vars': [
  45. 'error',
  46. {
  47. argsIgnorePattern: '^h$',
  48. varsIgnorePattern: '^h$',
  49. },
  50. ],
  51. 'no-unused-vars': [
  52. 'error',
  53. {
  54. argsIgnorePattern: '^h$',
  55. varsIgnorePattern: '^h$',
  56. },
  57. ],
  58. 'space-before-function-paren': 'off',
  59. },
  60. };