Skip to content

Commit

Permalink
feat: add new method to check local tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Dec 24, 2023
1 parent 9da86d4 commit 4e0e58b
Show file tree
Hide file tree
Showing 5 changed files with 1,210 additions and 1,204 deletions.
1,202 changes: 601 additions & 601 deletions .yarn/releases/yarn.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion code/code-lint-worker/src/linter.worker.content.js

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions code/code-typescript/src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class TypeScript {
return typecheckIgnorePatterns
}

private async getProjectConfiguration(): Promise<Array<string>> {
const content = await readFile(join(this.cwd, 'tsconfig.json'), 'utf-8')

return JSON.parse(content)
}

check(include: Array<string> = []): Promise<Array<Diagnostic>> {
return this.run(include)
}
Expand Down
1,202 changes: 601 additions & 601 deletions yarn/cli/bundles/yarn.js

Large diffs are not rendered by default.

0 comments on commit 4e0e58b

Please sign in to comment.