Skip to content

Feature request: Add a trailing comma to generated tsconfig.json #500

@akeeton

Description

@akeeton

It would be nice if the generated tsconfig.json had a trailing comma after the last uncommented compilerOptions setting so that the settings under /* Additional Checks */ can be quickly uncommented without further editing.

For example, after "strict": true in this:

{
	"compilerOptions": {
		"module": "Node16",
		"target": "ES2022",
		"outDir": "out",
		"lib": [
			"ES2022"
		],
		"sourceMap": true,
		"rootDir": "src",
		"strict": true /* trailing comma */   /* enable all strict type-checking options */
		/* Additional Checks */
		// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
		// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
		// "noUnusedParameters": true,  /* Report errors on unused parameters. */
	}
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions