Skip to content

Commit

Permalink
Fix XO usage docs
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
sindresorhus committed Oct 10, 2018
1 parent 9bb0fc1 commit b91c26a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions readme.md
Expand Up @@ -18,7 +18,10 @@ Add some ESLint config to your package.json:
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": ["xo", "xo-typescript"]
"extends": [
"xo",
"xo-typescript"
]
}
}
```
Expand All @@ -27,7 +30,10 @@ Or to .eslintrc:

```json
{
"extends": ["xo", "xo-typescript"]
"extends": [
"xo",
"xo-typescript"
]
}
```

Expand All @@ -44,7 +50,10 @@ $ npm install --save-dev eslint-config-xo-typescript typescript-eslint-parser es
{
"name": "my-awesome-project",
"xo": {
"extends": "xo-typescript"
"extends": "xo-typescript",
"extensions": [
"ts"
]
}
}
```
Expand Down

0 comments on commit b91c26a

Please sign in to comment.