Skip to content

aakashns/init-eslint-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

init-eslint-react

Initialize an eslint configuration for React & React Native apps.

Usage

Run the following command in the root folder of your React or React Native project:

npx init-eslint-react

This will install eslint-config-react-app and its dependencies, and create a .eslintrc file with the following contents:

{
  "extends": "react-app"
}

With this, your editor should be able to show ESLint warnings if you have the appropriate extension installed. For instance, if you're using VS Code, you should install this extension: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint .

NOTE: This is really just a bash script under the hood, and it hasn't been tested on Windows. Contributions welcome!

About

Initialize an eslint configuration for React & React Native apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages