[consistent-type-assertion] False positive if type is namespaced #629
Labels
bug
Something isn't working
good first issue
Good for newcomers
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
I'm trying to make the action parameter in my reducer accept a empty object:
adding
{"allowAsParameter": true}
makes no difference.Expected Result
There should be no difference in using a namespaced type or not - error should be thrown in both cases
Actual Result
Error is not thrown when type is imported with star
Versions
@typescript-eslint/eslint-plugin
1.10.2
@typescript-eslint/parser
1.10.2
TypeScript
3.5.1
ESLint
5.16
node
10.15.3
The text was updated successfully, but these errors were encountered: