npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

eslint-config-xo-react

0.30.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:3748030
$ npm install eslint-config-xo-react
DailyWeeklyMonthlyYearly

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

Usage

Add some ESLint config to your eslint.config.js:

import eslintConfigXo from 'eslint-config-xo';
import eslintConfigXoReact from 'eslint-config-xo-react';

export default [
	...eslintConfigXo(),
	...eslintConfigXoReact(),
];

Options

space

Type: boolean | number
Default: false

Use spaces for indentation instead of tabs for JSX props. Set to true for 2 spaces, or a number for a custom count.

export default [
	...eslintConfigXo({space: true}),
	...eslintConfigXoReact({space: true}),
];

Related

  • eslint-config-xo - ESLint shareable config for XO
  • XO