Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 682 Bytes

ts-package-json-engine-is-present.md

File metadata and controls

39 lines (27 loc) · 682 Bytes

ts-package-json-engine-is-present

Requires support for all Node LTS version.

Currently, this requires engine in package.json to be set to ">=8.0.0".

This rule is fixable using the --fix option.

Examples

Good

{
  "engine": ">=8.0.0"
}

Bad

{
    "engine": ">=6.0.0"
}
```'

```json
{
    "engine": ">=10.0.0"
}
{}

Also encompasses ts-node-support, as the rules are similar enough to not exist separately for linting purposes.