max-mapper / standard-format

converts your code into Standard JavaScript Format
264 stars 59 forks source link

Make transform not crashable #175

Closed sergey-lapin closed 8 years ago

sergey-lapin commented 8 years ago

Change transform signature from

file:string

to

{fileContent:string, name:string} 

to be able to print meaningful error message with filename in case of crash and process the rest of the files.

Currently, es6/7 is not supported I believe any plans on it? Also, I use flow which is not standard, but it's annotations breaks formatter as well - is it possible to skip them somehow?

These two tests that are failing were failed already before I made changes, not sure why.

sergey-lapin commented 8 years ago

It is ok to make some changes in my PR before the merge, or decline and close, but I expect some explanation, why you close this. Your comments do not seem a reasonable explanation.