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

Setting tsconfig in "overrides" throws on Windows #652

Closed
melusc opened this issue Feb 27, 2022 · 0 comments
Closed

Setting tsconfig in "overrides" throws on Windows #652

melusc opened this issue Feb 27, 2022 · 0 comments

Comments

@melusc
Copy link

melusc commented Feb 27, 2022

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
@melusc melusc closed this as completed Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant