powered by
Runs prettier on JavaScript files in app/js directory. Requires Node.js installed.
app/js
format_js(fix = TRUE)
None. This function is called for side effects.
If TRUE, fixes formatting. If FALSE, reports formatting errors without fixing them.
TRUE
You can prevent prettier from formatting a given chunk of your code by adding a special comment:
// prettier-ignore
Read more about ignoring code.