Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-xo-react

xojs111.4kMIT0.28.0

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

react, jsx, eslintconfig, xo, xoxo, hugs, kisses, happy, happiness, code, quality, style, lint, linter, jscs, jshint, jslint, eslint, validate, code style, standard, strict, check, checker, verify, enforce, hint, simple

readme

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 xo from 'eslint-config-xo';
import xoReact from 'eslint-config-xo-react';

export default [
    ...xo,
    ...xoReact
];

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

import xoSpace from 'eslint-config-xo/space';
import xoReactSpace from 'eslint-config-xo-react/space';

export default [
    ...xoSpace,
    ...xoReactSpace
];