Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note about "parserOptions.project" error #627

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 18 additions & 0 deletions readme.md
Expand Up @@ -47,6 +47,24 @@ $ npm install xo --save-dev

*JSX is supported by default, but you'll need [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react#use-with-xo) for React specific linting. Vue components are not supported by default. You'll need [eslint-config-xo-vue](https://github.com/ChocPanda/eslint-config-xo-vue#use-with-xo) for specific linting in a Vue app.*

## Notice:

If using version 0.46.0, which includes this fix: #622, you may see an error regarding "parserOptions.project".
Try adding this to your XO options:

```
"parserOptions": {
"project": "./tsconfig.xo.json"
},
```
Where `tsconfig.xo.json` is simply something like:
```
{
"extends": "./tsconfig.json",
"include": ["src"]
}
```

## Usage

```
Expand Down