🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

init-eslint-react

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

init-eslint-react

Initialize an ESLint configuration for React & React Native apps

1.0.1
latest
Source
npm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

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!

Keywords

react

FAQs

Package last updated on 26 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts