diff --git a/create-quasar/templates/app/quasar-v2/ts-webpack-4/eslint/_eslint.config.js b/create-quasar/templates/app/quasar-v2/ts-webpack-4/eslint/_eslint.config.js index 855fff5815d..1da668fd247 100644 --- a/create-quasar/templates/app/quasar-v2/ts-webpack-4/eslint/_eslint.config.js +++ b/create-quasar/templates/app/quasar-v2/ts-webpack-4/eslint/_eslint.config.js @@ -36,17 +36,14 @@ export default [ ...pluginVue.configs[ 'flat/essential' ], // this rule needs to be above the vueTsEslintConfig to avoid error: 'You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file.' - { + { + files: ['**/*.ts', '**/*.vue'], rules: { - 'prefer-promise-reject-errors': 'off', - '@typescript-eslint/consistent-type-imports': [ - 'error', - { prefer: 'type-imports' } - ], - - // allow debugger during development only - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' - } + '@typescript-eslint/consistent-type-imports': [ + 'error', + { prefer: 'type-imports' } + ], + } }, // https://github.com/vuejs/eslint-config-typescript ...vueTsEslintConfig({