format_js {rhino} | R Documentation |
Format JavaScript
Description
Runs prettier on JavaScript files in app/js
directory.
Requires Node.js installed.
Usage
format_js(fix = TRUE)
Arguments
fix |
If |
Details
You can prevent prettier from formatting a given chunk of your code by adding a special comment:
// prettier-ignore
Read more about ignoring code.
Value
None. This function is called for side effects.
[Package rhino version 1.9.0 Index]