Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Sep 3, 2023
1 parent cee5e5e commit 5631f1b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ function InsertRootdirFilesPath2TSconfig() {
if (tsconfigContents) {
const tsconfig = JSON.parse(tsconfigContents)
// add "include" project root's configs avoid '@typescript-eslint/await-thenable's parse error https://elmah.io/tools/stack-trace-formatter/212c0a4849bc4054826e4055f5d167a7/
tsconfig.include = ['./**.js', './**.ts', './**.cjs', './**.mjs', ...tsconfig.include]
tsconfig.include = [
'./**.js',
'./**.ts',
'./**.cjs',
'./**.mjs',
...tsconfig.include,
]
writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 2))
} else {
console.log('tsconfig.json not found in root directory')
Expand Down

0 comments on commit 5631f1b

Please sign in to comment.