Skip to content

Commit

Permalink
Update _eslint.config.js for ts-webpack-4: add files
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtsiantaris authored Jan 15, 2025
1 parent 31b3545 commit cf79433
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit cf79433

Please sign in to comment.