xo
xo copied to clipboard
Setting tsconfig in "overrides" throws on Windows
With a config like this:
{
"overrides": [
{
"files": ["**/*"],
"parserOptions": {
"project": "./tsconfig.2.json"
}
}
],
"parserOptions": {
"project": "./tsconfig.json"
}
}
running xo throws with The URL must be of scheme file
.
- It only throws when resolving the override
- It only happens on Windows, not WSL (because Windows has
C:
which looks like a protocol)
I've created a minimal reproducible example: https://github.com/melusc/xo-overrides-tsconfig-bug
Version | |
---|---|
Windows | 11 |
Node | 17.6.0 |
xo | 0.48.0 |