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.

38 lines
852 B

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. },
  18. parserOptions: {
  19. ecmaVersion: 'latest',
  20. },
  21. rules: {
  22. 'prettier/prettier': [
  23. 'warn',
  24. {
  25. singleQuote: true,
  26. semi: false,
  27. printWidth: 80,
  28. trailingComma: 'all',
  29. endOfLine: 'auto',
  30. },
  31. ],
  32. 'vue/multi-word-component-names': ['off'],
  33. 'vue/no-setup-props-destructure': ['off'],
  34. 'vue/no-deprecated-html-element-is': ['off'],
  35. '@typescript-eslint/no-unused-vars': ['off'],
  36. },
  37. }