.eslintrc.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* eslint-env node */
  2. require('@rushstack/eslint-patch/modern-module-resolution')
  3. module.exports = {
  4. root: true,
  5. ignorePatterns: ['src/uni_modules/'],
  6. extends: [
  7. 'plugin:vue/vue3-essential',
  8. 'eslint:recommended',
  9. '@vue/eslint-config-typescript/recommended',
  10. '@vue/eslint-config-prettier'
  11. ],
  12. rules: {
  13. 'prettier/prettier': [
  14. 'warn',
  15. {
  16. semi: false,
  17. singleQuote: true,
  18. printWidth: 100,
  19. proseWrap: 'preserve',
  20. bracketSameLine: false,
  21. endOfLine: 'lf',
  22. tabWidth: 4,
  23. useTabs: false,
  24. trailingComma: 'none'
  25. }
  26. ],
  27. 'vue/multi-word-component-names': 'off',
  28. '@typescript-eslint/no-explicit-any': 'off',
  29. '@typescript-eslint/ban-ts-comment': 'off',
  30. 'no-undef': 'off',
  31. 'vue/prefer-import-from-vue': 'off',
  32. 'no-prototype-builtins': 'off',
  33. 'prefer-spread': 'off',
  34. '@typescript-eslint/no-non-null-assertion': 'off',
  35. '@typescript-eslint/no-non-null-asserted-optional-chain': 'off'
  36. },
  37. globals: {}
  38. }