This site uses cookies for analytics. By continuing to browse this site, you agree to this use.
A JS Foundation Project

Valid TypeScript configuration

Valid TypeScript configuration (is-valid)

Why is this important?

If you are building an app or a website using TypeScript, you need to be sure the configuration file is valid.

What does the hint check?

This hint checks if the TypeScript configuration is valid. To do this we are using the tsconfig schema but adding the property "additionalProperties": false, to the options compilerOptions and typeAcquisition.

Examples that trigger the hint

The compileOptions has an invalid property:

{
    "compilerOptions": {
        "invalidProperty": true,
        ...
    },
    ...
}

A property has an invalid value:

{
    "compilerOptions": {
        "target": "esnext2",
        ...
    },
    ...
}

Examples that pass the hint

The configuration is valid:

{
    "compilerOptions": {
        "target": "esnext",
        ...
    },
    ...
}

Further Reading