-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
Description
Search Terms
tsconfig validate
Suggestion
Currently tsc validates and warns about invalid properties in compilerOptions section which is great!. It would be really helpful if it would do the same for the root of the config file.
Use Cases
Easily identify mistakes/typos in configuration.
Examples
Sometimes people put complier option in the root by mistake, then scratching the head for hours trying to understand what is wrong.
In example below path mapping obviously won't work:
{
"compilerOptions": {
...
},
"paths": {
"@module": [
"./src/utils/module"
]
},
"include": [
...
]
}Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug