chore: fix eslint config

pull/82/head
fantasticit 2022-06-10 22:33:31 +08:00
parent 82446482c7
commit e3fd5efb49
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ module.exports = {
files: ['*.ts', '*.tsx', '.js', '.jsx'], files: ['*.ts', '*.tsx', '.js', '.jsx'],
parserOptions: { parserOptions: {
project: ['./tsconfig.json'], project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
sourceType: 'module', sourceType: 'module',
}, },
}, },

View File

@ -8,6 +8,7 @@ module.exports = {
parserOptions: { parserOptions: {
project: ['./tsconfig.json'], project: ['./tsconfig.json'],
sourceType: 'module', sourceType: 'module',
tsconfigRootDir: __dirname,
}, },
}, },
], ],