init-eslint-react

1.0.1 • Public • Published

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!

Package Sidebar

Install

npm i init-eslint-react

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.03 kB

Total Files

4

Last publish

Collaborators

  • aakashns