UNPKG

eslint-config-lemon

Version:

<div align="center"> <br> <img width="400" src="logo.svg"> <br> <br> </div>

81 lines (62 loc) 1.21 kB
# 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 eslint-plugin-react eslint-plugin-react-hooks ``` ## Usage Add some ESLint config to your package.json: ```json { "name": "my-awesome-project", "eslintConfig": { "extends": [ "xo", "xo-react" ] } } ``` Or to .eslintrc: ```json { "extends": [ "xo", "xo-react" ] } ``` Use the `space` sub-config if you want 2 space indentation instead of tabs: ```json { "extends": [ "xo", "xo-react/space" ] } ``` You can also mix it with a [XO](https://github.com/xojs/xo) sub-config: ```json { "extends": [ "xo/esnext", "xo-react" ] } ``` ## Tip ### Use with XO ``` $ npm install --save-dev eslint-config-xo-react eslint-plugin-react eslint-plugin-react-hooks ``` ```json { "name": "my-awesome-project", "xo": { "extends": "xo-react" } } ``` ## Related - [eslint-config-xo](https://github.com/xojs/eslint-config-xo) - ESLint shareable config for XO - [XO](https://github.com/xojs/xo)