1 | # eslint-config-xo-space
|
2 |
|
3 | > ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for [XO](https://github.com/xojs/xo) with 2-space indent
|
4 |
|
5 | This is for advanced users. [You probably want to use XO directly.](https://github.com/xojs/eslint-config-xo#use-the-xo-cli-instead)
|
6 |
|
7 | **Use the [XO issue tracker](https://github.com/xojs/xo/issues) instead of this one.**
|
8 |
|
9 | ## Install
|
10 |
|
11 | ```sh
|
12 | npm install --save-dev eslint-config-xo-space
|
13 | ```
|
14 |
|
15 | ## Usage
|
16 |
|
17 | Add some ESLint config to your `package.json`:
|
18 |
|
19 | ```json
|
20 | {
|
21 | "name": "my-awesome-project",
|
22 | "eslintConfig": {
|
23 | "extends": "xo-space"
|
24 | }
|
25 | }
|
26 | ```
|
27 |
|
28 | Or to `.eslintrc`:
|
29 |
|
30 | ```json
|
31 | {
|
32 | "extends": "xo-space"
|
33 | }
|
34 | ```
|
35 |
|
36 | This package also exposes [`xo-space/browser`](browser.js) if you're in the browser:
|
37 |
|
38 | ```json
|
39 | {
|
40 | "extends": "xo-space/browser"
|
41 | }
|
42 | ```
|
43 |
|
44 | ## Related
|
45 |
|
46 | - [eslint-config-xo](https://github.com/xojs/eslint-config-xo) - ESLint shareable config for XO
|
47 | - [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react) - ESLint shareable config for React to be used with the above
|