Skip to content

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

License

Notifications You must be signed in to change notification settings

xojs/eslint-config-xo-react

Repository files navigation

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
];

Related