Skip to content

Fails with cryptic error if unspecified default .eslintrc.js is missingΒ #1045

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

πŸ› Bug Report

  • tslint-to-eslint-config version: 2.3.0
  • ESLint version: N/A
  • Node version: N/A; 14.x

Actual Behavior

On Windows in a fresh new project:

❌ Could not start tslint-to-eslint: ❌
  Could not import the 'C module. Do you need to install packages?

😬

Expected Behavior

It should not crash.

Reproduction

In a project with just a tslint.json for linter configs, npx tslint-to-eslint-config

The root issue is that findOriginalConfigurations is seeing the "cannot find" error from running eslint on the CLI and thinks it's a module-not-found error.

Metadata

Metadata

Labels

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