module.exports = { parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], globals: { uni: true, wx: true }, rules: { 'no-debugger': 2, // 禁止使用 var 'no-var': 'error', // 优先使用 interface 而不是 type // '@typescript-eslint/consistent-type-definitions': ['error', 'interface'], }, }