.eslintrc.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. '@typescript-eslint/no-use-before-define': 'off',
  26. '@typescript-eslint/ban-ts-comment': 'off',
  27. '@typescript-eslint/ban-types': 'off',
  28. '@typescript-eslint/no-non-null-assertion': 'off',
  29. '@typescript-eslint/explicit-module-boundary-types': 'off',
  30. '@typescript-eslint/no-unused-vars': [
  31. 'error',
  32. {
  33. argsIgnorePattern: '^h$',
  34. varsIgnorePattern: '^h$',
  35. },
  36. ],
  37. 'no-unused-vars': [
  38. 'error',
  39. {
  40. argsIgnorePattern: '^h$',
  41. varsIgnorePattern: '^h$',
  42. },
  43. ],
  44. 'space-before-function-paren': 'off',
  45. 'vue/attributes-order': 'off',
  46. 'vue/one-component-per-file': 'off',
  47. 'vue/html-closing-bracket-newline': 'off',
  48. 'vue/max-attributes-per-line': 'off',
  49. 'vue/multiline-html-element-content-newline': 'off',
  50. 'vue/singleline-html-element-content-newline': 'off',
  51. 'vue/attribute-hyphenation': 'off',
  52. // 'vue/html-self-closing': 'off',
  53. 'vue/require-default-prop': 'off',
  54. 'vue/html-self-closing': [
  55. 'error',
  56. {
  57. html: {
  58. void: 'always',
  59. normal: 'never',
  60. component: 'always',
  61. },
  62. svg: 'always',
  63. math: 'always',
  64. },
  65. ],
  66. },
  67. };