@hint/hint-typescript-config
Version:
hint that that checks if the TypeScript configuration is valid.
62 lines (46 loc) • 1.13 kB
Markdown
or a website using TypeScript, you
need to be sure the configuration file is valid.
This hint checks if the TypeScript configuration is valid.
To do this we are using the
[ ][typescript schema] but adding the property
`"additionalProperties": false,` to the options `compilerOptions`
and `typeAcquisition`.
The `compileOptions` has an invalid property:
```json
{
"compilerOptions": {
"invalidProperty": true,
...
},
...
}
```
A property has an invalid value:
```json
{
"compilerOptions": {
"target": "esnext2",
...
},
...
}
```
The configuration is valid:
```json
{
"compilerOptions": {
"target": "esnext",
...
},
...
}
```
* [TypeScript Documentation][typescript docs]
[ ]: https://www.typescriptlang.org/docs/home.html
[ ]: http://json.schemastore.org/tsconfig
If you are building an app