Skip to content

Output node 12 requirement if not met #267

Closed
@moonray

Description

@moonray

🐛 Bug Report

When using an older version of node you are simply met by Unexpected token { and nothing else happens. It would be helpful if a node version check is done before execution and preemptively exit with a notice to upgrade node.

Actual Behavior

When using node 8 (for instance), the script aborts with Unexpected token {.

Expected Behavior

An elegant warning.

Reproduction

  1. use node 8
  2. run npx tslint-to-eslint-config

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: in discussionThis issue needs more discussion before code changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions