Settings for javascript linting / formatting (Prettier?)
I love not having to argue about syntax formatting. On most projects, we set up a code linter / formatter, and happily move on.
Jumpstart already uses StandardRB for linting / formatting .rb files, which is neat.
I'd also like to have a linter / formatter for other files. Mainly .js, but I usually use it on .html / . scss / .yml files. I usually set up https://prettier.io, which I think works pretty great with a few custom rules (mainly about quotes and trailing commas).
When running Prettier's auto-fix on a fresh Jumpstart repo, it changed a lot of code. Not only quotes / commas, but also indentation and linebreaks and empty lines.
Because I intend to keep my repo as close as possible with Jumpstart updates, I'd like to avoid formatting discrepancies as much as possible.
Apart StandardRB rules, I didn't find any other (Prettier's or other's) rules I could customize.
So, before trying to reverse-engineer your current formatting rules,
Chris Oliver
do you use any linter / formatter for JS / HTML / etc., and if so could you share or commit your rules?
Thank you!
Jumpstart already uses StandardRB for linting / formatting .rb files, which is neat.
I'd also like to have a linter / formatter for other files. Mainly .js, but I usually use it on .html / . scss / .yml files. I usually set up https://prettier.io, which I think works pretty great with a few custom rules (mainly about quotes and trailing commas).
When running Prettier's auto-fix on a fresh Jumpstart repo, it changed a lot of code. Not only quotes / commas, but also indentation and linebreaks and empty lines.
Because I intend to keep my repo as close as possible with Jumpstart updates, I'd like to avoid formatting discrepancies as much as possible.
Apart StandardRB rules, I didn't find any other (Prettier's or other's) rules I could customize.
So, before trying to reverse-engineer your current formatting rules,
Thank you!
(or at least, confirm/infirm if you follow any specific linting rules for JS/CSS, so that we can decide if we can use tools like Prettier without having them "clean up" most of Jumpstart sources)
Thanks!
Notifications
You’re not receiving notifications from this thread.