chore: fix eslint

This commit is contained in:
fantasticit 2022-06-10 21:57:49 +08:00
parent c5ebb307aa
commit 8cadda82c2
2 changed files with 10 additions and 5 deletions

View File

@ -11,7 +11,7 @@ module.exports = {
{
files: ['*.ts', '*.tsx', '.js', '.jsx'],
parserOptions: {
project: ['./packages/client/tsconfig.json'],
project: ['./tsconfig.json'],
sourceType: 'module',
},
},

View File

@ -1,11 +1,16 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './packages/server/tsconfig.json',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'prettier'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
overrides: [
{
files: ['*.ts', '*.tsx', '.js', '.jsx'],
parserOptions: {
project: ['./tsconfig.json'],
sourceType: 'module',
},
},
],
root: true,
env: {
node: true,