xo icon indicating copy to clipboard operation
xo copied to clipboard

Setting tsconfig in "overrides" throws on Windows

Open melusc opened this issue 3 years ago • 0 comments

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 avatar Feb 27 '22 19:02 melusc