Version: 1.8.0

Lint

ESLint is the primary tool that powers linting in ts-engine.

Linting code

To lint code run the following command:

ts-engine lint

Auto fixing lint issues

Some linting issues are automatically fixable.

To auto fix linting issues run the following command:

ts-engine lint --fix

React support

You can lint codebases with React and JSX in them. When linting with React support React specific rules and a11y rules are applied.

To support React run the following command:

ts-engine lint --react

Extending ESLint config

ESLint config does not need to be provided to ts-engine, however it is possible to extend the config it uses.

Install ts-engine's default eslint config:

yarn add --dev @ts-engine/eslint-config

Add an .eslintrc file in your packages root directory:

.eslintrc
{
"extends": "@ts-engine/eslint-config",
"rules" {
// your rules go here
}
}