Linter / Formatter for ScriptCraft ?
Gloorf opened this issue ยท 1 comments
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) :
-
ESLint
-
JSHint/JSLint, which is supposed to be used in ScriptCraft (there is multiple jshint syntax, but it's not enforced)
-
https://github.com/Flet/semistandard (or https://github.com/standard/standard if we don't like semicolons)
-
clang-format
I see @walterhiggins has started something using prettier
here: 5ad82a9