Add terminating newline to generated tsconfig.json

This commit adds a terminating newline to tsconfig.json
generated by `tsc --init`, just like `npm init`'s package.json.

The main reason I created this pull request is for editor friendliness.
Recently I created a new TypeScript project with `tsc --init`,
then I modified some compilerOptions and tried to git-commit the change,
but I found a newline was automatically added by my editor.

I think it's better that the default tsconfig.json template has a
terminating newline.
This commit is contained in:
r7kamura
2018-12-01 03:07:11 +09:00
parent 3d8668c3d4
commit 0f5121df9f
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1893,7 +1893,7 @@ namespace ts {
}
result.push(`}`);
return result.join(newLine);
return result.join(newLine) + newLine;
}
}
@@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}
@@ -62,4 +62,4 @@
"declarationDir": "lib", /* Output directory for generated declaration files. */
"skipLibCheck": true /* Skip type checking of declaration files. */
}
}
}
@@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}
@@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}
@@ -62,4 +62,4 @@
"file1.ts",
"file2.ts"
]
}
}
@@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}
@@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}
@@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}
@@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}