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

eslint-config-xo-react

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-xo-react

ESLint shareable config for React to be used with eslint-config-xo

  • 0.25.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
32K
increased by1.42%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-config-xo-react

ESLint shareable config for React to be used with eslint-config-xo

Install

$ npm install --save-dev eslint-config-xo eslint-config-xo-react eslint-plugin-react eslint-plugin-react-hooks

Usage

Add some ESLint config to your package.json:

{
	"name": "my-awesome-project",
	"eslintConfig": {
		"extends": [
			"xo",
			"xo-react"
		]
	}
}

Or to .eslintrc:

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

Use the space sub-config if you want 2 space indentation instead of tabs:

{
	"extends": [
		"xo",
		"xo-react/space"
	]
}

You can also mix it with a XO sub-config:

{
	"extends": [
		"xo/esnext",
		"xo-react"
	]
}

Tip

Use with XO

$ npm install --save-dev eslint-config-xo-react eslint-plugin-react eslint-plugin-react-hooks
{
	"name": "my-awesome-project",
	"xo": {
		"extends": "xo-react"
	}
}

Keywords

FAQs

Package last updated on 03 Apr 2021

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