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

Cannot read property 'reportOnly' of undefined #15

Open
kuba-orlik opened this issue May 20, 2021 · 0 comments
Open

Cannot read property 'reportOnly' of undefined #15

kuba-orlik opened this issue May 20, 2021 · 0 comments

Comments

@kuba-orlik
Copy link

kuba-orlik commented May 20, 2021

First of all, thanks for the module, it's exactly what I needed and I'm sooo surprised that eslint doesn't do that by default and that there seems to be no standard way to get a machine-readable format out of tsc...

There seems to be a minor issue - when run with such settings:

	rules: {
		"@typescript-eslint/require-await": 0,
		"no-await-in-loop": 2,
		"with-tsc-error/all": "warn"
	},

then the linter throws an error:

Cannot read property 'reportOnly' of undefined

Changing it to

	rules: {
		"@typescript-eslint/require-await": 0,
		"no-await-in-loop": 2,
		"with-tsc-error/all": ["warn", {}],
	},

fixes the issue

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