Skip to content

sixman9/create-reactjs-prettier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Prettier-Linted-CRA

A simple, interactive, Bash script configuring AirBNB's ESLint and Prettier configurations during new Create-React-App-based ReactJS project creation (Javascript or TypeScript).

The script also adds linting during Git commits via Husky (Git Hooks).

  1. To run the script, copy and execute the following command:
    bash <(curl -s https://raw.githubusercontent.com/sixman9/create-reactjs-prettier/master/createReactJSPrettier.sh)

  2. The script will ask for the project name and where to create the new ReactJS project and whether you want it in Javascript or TypeScript.

In order to have Visual Studio Code (VSCode) alert you to any Prettier and ESLint formatting issues, please install the following VSCode plugins:

Finally, this Bash script was created on Mac OSX but should work on Linux and most *nixes. It assumes that you have a recent version of NodeJS installed with NPM/NPX, available on the PATH.

This simple script was made possible via the following projects:

About

Bash script to configure AirBNB's ESLint and Prettier settings during ReactJS project creation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages