From 332c218e3c5fbb090b7f1870fee3da0ff1d06a86 Mon Sep 17 00:00:00 2001 From: waldronmatt Date: Tue, 12 Sep 2023 16:45:48 -0400 Subject: [PATCH] fix(.eslintrc.cjs): fix eslint errors by adding a tsconfig.eslint.json that includes .eslintrc.cjs --- apps/vite-project/.eslintrc.cjs | 2 +- apps/vite-project/tsconfig.eslint.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 apps/vite-project/tsconfig.eslint.json diff --git a/apps/vite-project/.eslintrc.cjs b/apps/vite-project/.eslintrc.cjs index 4ae283a7..5180046c 100644 --- a/apps/vite-project/.eslintrc.cjs +++ b/apps/vite-project/.eslintrc.cjs @@ -5,7 +5,7 @@ module.exports = { parserOptions: { ecmaVersion: 'latest', sourceType: 'module', - project: ['./tsconfig.json', './tsconfig.node.json'], + project: ['tsconfig.eslint.json', 'tsconfig.node.json'], tsconfigRootDir: __dirname, }, }; diff --git a/apps/vite-project/tsconfig.eslint.json b/apps/vite-project/tsconfig.eslint.json new file mode 100644 index 00000000..3aa69a4e --- /dev/null +++ b/apps/vite-project/tsconfig.eslint.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "include": [".*.cjs", "*.cjs", "*.config.ts", "src/*"], + "compilerOptions": { + "noEmit": true, + "allowJs": true + } +}