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

TypeScript configuration hints set

TypeScript configuration hints set (typescript-config)

typescript-config contains hints to check if your TypeScript configuration has the most recommended configuration.

Why is this important?

If you are building an app or a website using TypeScript, you need to be sure that your configuration is the best for your needs.

Hints

How to use these hints?

This package is installed automatically by webhint:

npm install hint --save-dev

To use it, activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": [...],
    "hints": {
        "typescript-config/is-valid": "error",
        "typescript-config/no-comment": "error",
        "typescript-config/target": "error",
        ...
    },
    "parsers": [...],
    ...
}

Note: The recommended way of running webhint is as a devDependency of your project.

Further Reading