Closed MartinNuc closed 4 years ago
Awesome, thanks! :)
Could you please also add analogical test for the 2 other types:
select
:
https://github.com/productboardlabs/tslint-pb/blob/6dc4eae36f85fe0b0e8a0bd857256d32e0056a7c/test/rules/selectors-format/test.2.tsx.lint#L97-L101
(This should actually yield error Default arguments are forbidden for default select with auto-memoization.
even when the type is missing)
@Aldredcz ✅ added tests for other selectors
noMemo
is supposed to allow default values. Covered in tests:But typical usage is with inferred type:
which was not allowed. This PR allows inferred type for default parameter in the selector.