mirror of
https://github.com/documenso/documenso
synced 2026-05-24 09:28:27 +00:00
fix: eslint config file parseOptions.project path is updated (#1008)
I found out that the problem of slow down is the use of parseOption.project with multiple tsconfig files which increases usage of memory consumption quite a lot. Here is the reference I found to resolve this issue: [reference link](https://github.com/typescript-eslint/typescript-eslint/issues/1192) [Doc link](https://typescript-eslint.io/getting-started/typed-linting/monorepos/) Based on this reference I created the solution and tested out locally it does reduce the eslint time. #1002
This commit is contained in:
commit
373e806bd9
2 changed files with 5 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ module.exports = {
|
|||
|
||||
parserOptions: {
|
||||
tsconfigRootDir: __dirname,
|
||||
project: ['../../apps/*/tsconfig.json', '../../packages/*/tsconfig.json'],
|
||||
project: ['../../tsconfig.eslint.json'],
|
||||
ecmaVersion: 2022,
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
|
|
|
|||
4
tsconfig.eslint.json
Normal file
4
tsconfig.eslint.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": "./packages/tsconfig/base.json",
|
||||
"include": ["packages/**/*", "apps/**/*"]
|
||||
}
|
||||
Loading…
Reference in a new issue