diff --git a/eslint-vue-ts-recommended.js b/eslint-vue-ts-recommended.js index 8d34ae96..ceab60ca 100644 --- a/eslint-vue-ts-recommended.js +++ b/eslint-vue-ts-recommended.js @@ -9,12 +9,14 @@ */ // eslint-disable-next-line @typescript-eslint/no-var-requires, no-undef -const typescriptEslintEslintRecommended = require('./node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended') +import typescriptEslintEslintRecommended, { + overrides as _overrides +} from '@/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended' // eslint-disable-next-line no-undef -module.exports = { +export default { ...typescriptEslintEslintRecommended, - overrides: typescriptEslintEslintRecommended.overrides.map(override => { + overrides: _overrides.map(override => { if (override.files.includes('*.ts')) { return { ...override, files: [...override.files, '*.vue'] } }