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.

.eslintrc.js 332B

123456789101112131415
  1. module.exports = {
  2. parser: '@typescript-eslint/parser',
  3. plugins: ['@typescript-eslint'],
  4. globals: {
  5. uni: true,
  6. wx: true
  7. },
  8. rules: {
  9. 'no-debugger': 2,
  10. // 禁止使用 var
  11. 'no-var': 'error',
  12. // 优先使用 interface 而不是 type
  13. // '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
  14. },
  15. }