walterhiggins / ScriptCraft

Write Minecraft Plugins in JavaScript.
MIT License
1.84k stars 379 forks source link

Linter / Formatter for ScriptCraft ? #385

Open Gloorf opened 6 years ago

Gloorf commented 6 years ago

Hi, I've been developping quite a lot with ScriptCraft lately, and I was wondering if there is any linter / formatter recommended. Personally, I'm using clang-format right now (but I'm not particulary attached to it and will change if needed). There is some code that I would like to publish, but the formatter different style makes diff unreadable.

So I was wondering if we could agree on some linter / formatter. I'm definitively not an expert in JS (and the JS environment), but from what I gather we could use anyone of those (feel free to add more) :

jonathanperret commented 6 years ago

I see @walterhiggins has started something using prettier here: https://github.com/walterhiggins/ScriptCraft/commit/5ad82a95f05edf187f354c6d0fd43af0c9bb4c3a