Q3学习计划
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
873 B

3 years ago
3 years ago
  1. /* eslint-env node */
  2. require('@rushstack/eslint-patch/modern-module-resolution')
  3. module.exports = {
  4. root: true,
  5. extends: [
  6. 'plugin:vue/vue3-essential',
  7. 'eslint:recommended',
  8. '@vue/eslint-config-typescript',
  9. '@vue/eslint-config-prettier',
  10. ],
  11. // 小程序全局变量
  12. globals: {
  13. uni: true,
  14. wx: true,
  15. WechatMiniprogram: true,
  16. getCurrentPages: true,
  17. UniHelper: true,
  18. },
  19. parserOptions: {
  20. ecmaVersion: 'latest',
  21. },
  22. rules: {
  23. 'prettier/prettier': [
  24. 'warn',
  25. {
  26. singleQuote: true,
  27. semi: false,
  28. printWidth: 80,
  29. trailingComma: 'all',
  30. endOfLine: 'auto',
  31. },
  32. ],
  33. 'vue/multi-word-component-names': ['off'],
  34. 'vue/no-setup-props-destructure': ['off'],
  35. 'vue/no-deprecated-html-element-is': ['off'],
  36. '@typescript-eslint/no-unused-vars': ['off'],
  37. },
  38. }