Javascript: Add a .jsbeautifyrc file to automatically format code based on style guide

Created on 7 Aug 2015  路  5Comments  路  Source: airbnb/javascript

Most helpful comment

Please use Github emoji reactions on the original post instead of commenting "+1" - the existing 2 such comments have been removed, as will any future ones.

All 5 comments

Will do! We'll add it in the upcoming plan: https://github.com/airbnb/javascript/pull/455#issuecomment-128103763

Please use Github emoji reactions on the original post instead of commenting "+1" - the existing 2 such comments have been removed, as will any future ones.

In checking #455, I don't see a .jsbeautifyrc file. Am I missing something, or does this still need completing? I'd be happy to work on generating one if needed.

I think my concern is that it wouldn鈥檛 be kept up to date with the eslint config; separately, eslint autofix should handle any autoformatting that jsbeautify can do. Is there anything you have in mind that jsbeautify is uniquely capable of doing?

Thanks! I appreciate that concern and agree with you. I will need to look into eslint autofix and see if there is a gap between it and jsbeautify.

EDIT: Looks like eslint autofix will do the job for us, thanks!

Was this page helpful?
0 / 5 - 0 ratings