hugoMencoboni / tslint-staged

Run tslint on your staged files only !
MIT License
1 stars 0 forks source link

tslint-staged wont run: /usr/bin/env: «node\r»: No suck file or directory #1

Closed GorillaBus closed 4 years ago

GorillaBus commented 4 years ago

Hi, when I try to run tslint-staged with husky or even from the command line (for example calling ./node_modules/.bin/tslint-staged) I'm getting the following error:

[edu@localhost test-project]$ git commit
husky > pre-commit (node v12.15.0)
/usr/bin/env: «node\r»: No suck file or directory

I'm running Fedora Linux version 32 with: node v12.15.0 yarn 1.22.0 npm 6.13.4

My project runs with yarn workspaces. Everything is configured correctly and I can run tslint alone with no issues.

Thanks in advance!

hugoMencoboni commented 4 years ago

Hello @GorillaBus and thanks for this feedback.

It seems to be a problem with line ending when publishing from a Windows machine, I'll try to publish a new version as soon has possible !

hugoMencoboni commented 4 years ago

I just publish a new package on npm!

@GorillaBus could you let me know if everything works with this new version?

Thanks!