Skip to content

Commit b91c26a

Browse files
committed
Fix XO usage docs
Fixes #2
1 parent 9bb0fc1 commit b91c26a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

readme.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ Add some ESLint config to your package.json:
1818
{
1919
"name": "my-awesome-project",
2020
"eslintConfig": {
21-
"extends": ["xo", "xo-typescript"]
21+
"extends": [
22+
"xo",
23+
"xo-typescript"
24+
]
2225
}
2326
}
2427
```
@@ -27,7 +30,10 @@ Or to .eslintrc:
2730

2831
```json
2932
{
30-
"extends": ["xo", "xo-typescript"]
33+
"extends": [
34+
"xo",
35+
"xo-typescript"
36+
]
3137
}
3238
```
3339

@@ -44,7 +50,10 @@ $ npm install --save-dev eslint-config-xo-typescript typescript-eslint-parser es
4450
{
4551
"name": "my-awesome-project",
4652
"xo": {
47-
"extends": "xo-typescript"
53+
"extends": "xo-typescript",
54+
"extensions": [
55+
"ts"
56+
]
4857
}
4958
}
5059
```

0 commit comments

Comments
 (0)