Socket
Socket
Sign inDemoInstall

@iteam/eslint-config-react

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iteam/eslint-config-react

Contains our preferred eslint defaults for JS and TS React development


Version published
Weekly downloads
69
decreased by-28.87%
Maintainers
3
Weekly downloads
 
Created
Source

Iteam ESLint config for React

Contains our preferred eslint defaults for JS and TS React development

This library only contains eslint code quality rules and is unopinionated regarding the consumer projects formatting preferences.

Althought it shouldn't happend, this means that any prettier configs you decide to use locally will override any potential conflicts it would raise with this eslint config.

Installation

Add the peer dependencies of @iteam/eslint-config-react to your dev dependencies:

npx install-peerdeps --dev @iteam/eslint-config-react

Then add @iteam/eslint-config-react

npm install --save-dev @iteam/eslint-config-react

Then add the @iteam/eslint-config-react in your .eslintrc

{
  "extends": ["@iteam/eslint-config-react"]
}

or if you're using TS:

{
  "extends": ["@iteam/eslint-config-react/typescript"]
}

If you bootstrapped with create-react-app, edit package.json:

"eslintConfig": {
    "extends": [
      "@iteam/eslint-config-react"
    ]
  },

or if you're using TS:

"eslintConfig": {
    "extends": [
      "@iteam/eslint-config-react/typescript"
    ]
  },

Plugins

  • ESLint recommended
  • React recommended
  • React Hooks recommended
  • Imports recommended
  • JSX a11y recommended

FAQs

Package last updated on 29 Mar 2022

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