Skip to content

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 9