Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-react-app

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-app

ESLint configuration used by Create React App

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44K
increased by297.29%
Maintainers
1
Weekly downloads
 
Created
Source

npm version styled with prettier

eslint-plugin-react-app

This plugin exposes the ESLint configuration used by Create React App without the need of declaring all its dependencies.
Use it if you need a simple and tested ESLint configuration without the need of installing a bunch of dependecies.
It also works in React Native out of the box.

Disclaimer

This project is not officially maintained (nor officially "supported") by the Create React App team.
Let me know if you discover any issue.

Setup

  1. Install it using npm: npm install --development eslint eslint-plugin-react-app.
  2. Extend plugin:react-app/recommended in your .eslintrc.

Example .eslintrc:

{
  "extends": ["plugin:react-app/recommended"]
}

Configuring the rules

You can configure the rules like every other plugin. Just keep in mind that if you want to change a rule of an included plugin (for example of eslint-plugin-react) you must prefix the rule with react-app/ (for preventing namespace collisions).
For example:

{
  "extends": ["plugin:react-app/recommended"],
  "rules": {
    "react-app/react/react-in-jsx-scope": ["warn"]
  }
}

Included plugins  

The currently included create-react-app plugins are the following:

Acknowledgements

Thanks to fson and its Create React App pull request for the initial idea of this plugin.
Thanks to gaeron and everyone who contributed to Create React App.

FAQs

Package last updated on 22 Apr 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc