Skip to content

Unclear error message when tslint command is not foundΒ #836

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

πŸ› Bug Report

  • tslint-to-eslint-config version: 2.0.0
  • ESLint version: N/A
  • Node version: N/A

Actual Behavior

❌ Could not start tslint-to-eslint: ❌
  Command failed: tslint --print-config "./tslint.json"
/bin/sh: tslint: command not found

Expected Behavior

❌ Could not start tslint-to-eslint: ❌
    The 'tslint' command was not found. Either install it globally or add it as a devDependency of this repository.

Reproduction

Per @kumaresan-subramani's info in #823:

git clone https://github.com/kumaresan-subramani/ESlint-tester
cd ESlint-tester
npx tslint-to-eslint-config

I'm guessing this hasn't been reported until now because most projects that use TSLint and would want to convert to ESLint already have it as a dependency in their package.json.

I already have a fix for it from just testing this out locally, so I'll send a PR πŸ˜„ .

Metadata

Metadata

Labels

good first issueGood for newcomers; welcome aboard!status: accepting prsPlease, send in a PR to resolve this! ✨type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions