Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
spence-s committed Oct 21, 2021
1 parent 3e7496c commit 3ac6bc8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 3.5

- Adds a configuration for a custom xo path for xo to resolve from.

### 3.4

- Make debounce configurable and default to 0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"default": null,
"pattern": "^file://.*(.js)$",
"format": "uri",
"description": "A file uri for the extension to load xo from."
"description": "An absolute file uri for the extension to load xo from."
}
}
},
Expand Down
12 changes: 12 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,20 @@ Since linting occurs on any file change, large files with complex configurations
}
```

If you want to resolve xo from a custom path - such as a global node_modules folder, supply an absolute file uri. Must start with file:// and end with .js and should have all of its dependencies available to work properly. Could use with Deno or to have the xo library lint itself.

```json
{
"xo.path": "file:///path/to/node_modules/xo/index.js"
}
```

## Recent Updates

- v3.5.0

- Adds a configuration for a custom xo path for xo to resolve from.

- v3.4.0

- Added initial support for code action quick fixes so you can fix errors one at a time.
Expand Down

0 comments on commit 3ac6bc8

Please sign in to comment.