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

eslint-config-standard-react

Package Overview
Dependencies
Maintainers
15
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-standard-react

JavaScript Standard Style React/JSX support - ESLint Shareable Config

  • 13.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
15
Created

What is eslint-config-standard-react?

eslint-config-standard-react is an ESLint shareable config for React that extends the standard JavaScript style guide with additional rules for React. It helps enforce consistent coding styles and best practices in React projects.

What are eslint-config-standard-react's main functionalities?

React-specific linting rules

This configuration extends the standard JavaScript style guide with additional rules for React, ensuring that your React code adheres to best practices and consistent style.

{
  "extends": [
    "standard",
    "standard-react"
  ]
}

JSX syntax validation

These rules ensure that JSX syntax is correctly used and that React components and variables are properly defined and used within your code.

{
  "rules": {
    "react/jsx-uses-react": "error",
    "react/jsx-uses-vars": "error"
  }
}

React hooks rules

These rules enforce the correct usage of React hooks, ensuring that hooks are used in accordance with the rules of hooks and that dependencies are properly specified.

{
  "rules": {
    "react-hooks/rules-of-hooks": "error",
    "react-hooks/exhaustive-deps": "warn"
  }
}

Other packages similar to eslint-config-standard-react

Keywords

FAQs

Package last updated on 15 Dec 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