Formats .js files using prettier. Selects all files in the working directory that do not begin with . and end with .js.
npm install -g rfmt
From the command line:
- Change directory
cdinto the target directory that contains your JavaScript files. - Run
fmt.