ESLint shareable config for React to be used with eslint-config-xo
npm install --save-dev eslint-config-xo eslint-config-xo-react
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
];
- eslint-config-xo - ESLint shareable config for XO
- XO