- Install prettier
- Make a .prettierignore file, and add directories you'd like prettier to not format, for example: **/node_modules
- Run prettier --write "**/*.js"*Don't forget the quotes.
- Optional: if you want to format JSON/SCSS files too, replace js with json/scss.
- 
      
- 
        Save alxbnct/dabd7af7786dd6f75e0daf79678099a0 to your computer and use it in GitHub Desktop. 
    Run prettier on all JS files in a directory
  
        
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment