Skip to content

Commit 9a9dab2

Browse files
committed
remove creating tsconfig.json file
1 parent a439b75 commit 9a9dab2

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

bin/eslint-github-init.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,6 @@ const questions = [
6060
if (answers.typeSystem === 'typescript') {
6161
eslintrc.extends.push('plugin:github/typescript')
6262
eslintrc.parser = '@typescript-eslint/parser'
63-
64-
// Create a `tsconfig.json`.
65-
const tsconfigPath = path.resolve(process.cwd(), 'tsconfig.json')
66-
if (!fs.existsSync(tsconfigPath)) {
67-
const tsconfigDefaults = {
68-
compilerOptions: {
69-
target: 'es2015',
70-
module: 'esnext',
71-
lib: ['esnext', 'dom'],
72-
allowSyntheticDefaultImports: true,
73-
moduleResolution: 'node'
74-
}
75-
}
76-
fs.writeFileSync(tsconfigPath, JSON.stringify(tsconfigDefaults, null, ' '), 'utf8')
77-
}
7863
}
7964

8065
fs.writeFileSync(path.resolve(process.cwd(), '.eslintrc.json'), JSON.stringify(eslintrc, null, ' '), 'utf8')

0 commit comments

Comments
 (0)