Skip to content

Commit

Permalink
fix(.eslintrc.cjs): fix eslint errors by adding a tsconfig.eslint.jso…
Browse files Browse the repository at this point in the history
…n that includes .eslintrc.cjs
  • Loading branch information
waldronmatt committed Sep 12, 2023
1 parent beb6899 commit 332c218
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/vite-project/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
8 changes: 8 additions & 0 deletions apps/vite-project/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"include": [".*.cjs", "*.cjs", "*.config.ts", "src/*"],
"compilerOptions": {
"noEmit": true,
"allowJs": true
}
}

0 comments on commit 332c218

Please sign in to comment.