Skip to content

Add mixed to no-weak-types#362

Merged
gajus merged 1 commit intogajus:masterfrom
kangax:no_weak_types_mixed
Oct 13, 2018
Merged

Add mixed to no-weak-types#362
gajus merged 1 commit intogajus:masterfrom
kangax:no_weak_types_mixed

Conversation

@kangax
Copy link
Copy Markdown
Contributor

@kangax kangax commented Oct 12, 2018

Fixes #361

@kangax
Copy link
Copy Markdown
Contributor Author

kangax commented Oct 12, 2018

@gajus my concern is that this is not backward-compatible (from what I can tell) since mixed will now be reported unless disabled explicitly.

@gajus
Copy link
Copy Markdown
Owner

gajus commented Oct 13, 2018

Sorry, I meant as a configuration.

@kangax
Copy link
Copy Markdown
Contributor Author

kangax commented Oct 13, 2018

@gajus you mean as a separate rule?

@gajus
Copy link
Copy Markdown
Owner

gajus commented Oct 13, 2018

@gajus you mean as a separate rule?

I think it doesn't necessitate a separate rule.

However, flowtype/no-weak-types could accept a configuration that lists what a weak type is, overriding the default list.

Alternatively, a new rule, no-restricted-types could be added that allows to list restricted types, such as mixed.

@kangax
Copy link
Copy Markdown
Contributor Author

kangax commented Oct 13, 2018

Hm, not sure I understand. Isn't the rule already accepting a configuration? I just added another option for mixed there.

@gajus
Copy link
Copy Markdown
Owner

gajus commented Oct 13, 2018

Hm, not sure I understand. Isn't the rule already accepting a configuration? I just added another option for mixed there.

Sorry. Ignore my comments. :-)

@gajus gajus merged commit 5e2bbe9 into gajus:master Oct 13, 2018
@gajus
Copy link
Copy Markdown
Owner

gajus commented Oct 13, 2018

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants