This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
new rule: enforce simple TSX attributes #147
Closed
Description
new rule: enforce simple TSX attributes
Among the things that you should allow in tsx attributes:
- variables
- properties
- method invocations
- binary expressions on constants ( className={ "container" + "whatever" }
- binary expressions with a single constant ( className={ "container" + myClassName }
Things to avoid:
- ternary expressions
- complex binary expressions ( className = { someName + '-' + someOtherName } )