-
Notifications
You must be signed in to change notification settings - Fork 198
new rule: enforce simple TSX attributes #147
Comments
Hi @JoshuaKGoldberg. |
Hey @noamyogev84, glad to see you're interested! #543 is a good example of what you'll want to add:
The As for creating the new rule, it looks like you'd want to find all nodes of type Let me know if that's not the right or not enough information to go off of! |
@JoshuaKGoldberg Thanks man! I'm starting to explore it. |
Hi @JoshuaKGoldberg Any help? |
Absolutely! That complaint comes from validation that every rule has a documentation area in Does that fix it for you? |
Hi @JoshuaKGoldberg . Can you please look at my PR?
Thanks! |
I'm not seeing that. Travis is running the first test: https://travis-ci.org/Microsoft/tslint-microsoft-contrib/jobs/450301500
That's intentional and good 😊 in order to write the JSX syntax, there needs to exist some global "factory" to create the elements. |
* implement use-simple-attribute * fix typo in useSimpleAttributeRule reorder use-simple-attribute in tslint.json * add rationale to useSimpleAttributeRule * Merge branch master; rename to plural rule * Added description to README.md
new rule: enforce simple TSX attributes
Among the things that you should allow in tsx attributes:
Things to avoid:
The text was updated successfully, but these errors were encountered: