eslint-config-xo-react-space
ESLint shareable config for React with 2 space indent to be used with eslint-config-xo
Install
$ npm install --save-dev eslint-config-xo eslint-config-xo-react-space eslint-plugin-react
Usage
Add some ESLint config to your package.json
:
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": ["xo", "xo-react-space"]
}
}
Or to .eslintrc
:
{
"extends": ["xo", "xo-react-space"]
}
You can also mix it with a sub-config:
{
"extends": ["xo/esnext", "xo-react-space"]
}
Tip
Use with XO
$ npm install --save-dev eslint-config-xo-react-space eslint-plugin-react
{
"name": "my-awesome-project",
"xo": {
"extends": "xo-react-space"
}
}
Related
License
MIT