ScriptCraft icon indicating copy to clipboard operation
ScriptCraft copied to clipboard

Linter / Formatter for ScriptCraft ?

Open Gloorf opened this issue 7 years ago • 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

Gloorf avatar Jul 31 '18 15:07 Gloorf

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

jonathanperret avatar Aug 01 '18 11:08 jonathanperret