nrwl / precise-commits

:sparkles: Painlessly apply Prettier by only formatting lines you have modified anyway!
MIT License
471 stars 20 forks source link

Line numbers displayed in precise-commits errors is incorrect #24

Open jhalaa opened 5 years ago

jhalaa commented 5 years ago

When I run precise-commits I get an error as below ->

✔ [1/1] Processing file: src/main/##/##/##/##/sample.js ✖ precise-commits: An Error occurred

{ SyntaxError: Unexpected token, expected "," (46:12) 44 | progress.resolve() 45 | }

46 | } | ^

But line 46 in the file actually is something else and the above line is actually line 499

claudionunezjr commented 5 years ago

I have the same issue.