From e3fd5efb49942f8c0270b880ed39860b18b24405 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Fri, 10 Jun 2022 22:33:31 +0800 Subject: [PATCH] chore: fix eslint config --- packages/client/.eslintrc.js | 1 + packages/server/.eslintrc.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/client/.eslintrc.js b/packages/client/.eslintrc.js index af5ae49..47ca066 100644 --- a/packages/client/.eslintrc.js +++ b/packages/client/.eslintrc.js @@ -12,6 +12,7 @@ module.exports = { files: ['*.ts', '*.tsx', '.js', '.jsx'], parserOptions: { project: ['./tsconfig.json'], + tsconfigRootDir: __dirname, sourceType: 'module', }, }, diff --git a/packages/server/.eslintrc.js b/packages/server/.eslintrc.js index a25b308..179df16 100644 --- a/packages/server/.eslintrc.js +++ b/packages/server/.eslintrc.js @@ -8,6 +8,7 @@ module.exports = { parserOptions: { project: ['./tsconfig.json'], sourceType: 'module', + tsconfigRootDir: __dirname, }, }, ],