An open API service indexing awesome lists of open source software.

https://github.com/xojs/eslint-config-xo-react

ESLint shareable config for React to be used with eslint-config-xo
https://github.com/xojs/eslint-config-xo-react

eslint eslint-config eslint-rules nodejs react xo

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# eslint-config-xo-react

> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for React to be used with [eslint-config-xo](https://github.com/xojs/eslint-config-xo)

## Install

```sh
npm install --save-dev eslint-config-xo eslint-config-xo-react
```

## Usage

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

```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:

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

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

## Related

- [eslint-config-xo](https://github.com/xojs/eslint-config-xo) - ESLint shareable config for XO
- [XO](https://github.com/xojs/xo)