0.5.0 • Published 9 years ago
eslint-config-xo-react-space v0.5.0
eslint-config-xo-react-space
ESLint shareable config for React to be used with eslint-config-xo-space
This is for advanced users. You probably want to use XO directly.
Install
$ npm install --save-dev eslint-config-xo-space 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
- eslint-config-xo - ESLint shareable config for XO
- eslint-config-xo-space - ESLint shareable config for XO with 2-space indent
- eslint-config-xo-react - ESLint shareable config for React to be used with eslint-config-xo
License
MIT © Mehdy Dara