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
- Host: GitHub
- URL: https://github.com/xojs/eslint-config-xo-react
- Owner: xojs
- License: mit
- Created: 2015-08-01T22:11:40.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-01-21T06:14:56.000Z (5 months ago)
- Last Synced: 2025-05-10T13:43:28.771Z (about 2 months ago)
- Topics: eslint, eslint-config, eslint-rules, nodejs, react, xo
- Language: JavaScript
- Homepage: https://github.com/xojs/xo
- Size: 76.2 KB
- Stars: 120
- Watchers: 8
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
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)