typescript-eslint/tslint-to-eslint-config

Cannot read package files on Windows

JoshuaKGoldberg opened this issue ยท 2 comments

๐Ÿ› Bug Report

  • tslint-to-eslint-config version: 2.6.0
  • ESLint version: N/A
  • Node version: 12.X, 14.X

Actual Behavior

When trying to find package.json dependencies, cat path/to/package.json is a CLI command that gets run.

Expected Behavior

cat doesn't exist on Windows.

Reproduction

On Windows, npx tslint-to-eslint-config and see the error in findOriginalConfigurations for package.

Spotted in #1149.

I believe #1151 is the right fix and I should recreate it, but I'm waiting for confirmation in angular-eslint/angular-eslint#571 to be sure.

angular-eslint/angular-eslint#571 (comment)

Hmm, I'm not convinced this won't come back again if I revert the revert. The original issue (typescript-eslint/tslint-to-eslint-config#1150) is that tslint-to-eslint-config tries using cat on Windows. I can switch that to using type on Windows.