@masknet/jsx/no-logical
Limit the complexity of JSX logic expression
/**
* @minItems Infinity
*/
export type Options = [
| number
| {
attribute?: number
element?: number
},
]
<foo bar={1 || 2 || 3} />
<foo>{1 || 2 || 3}</foo>
<foo>{1 ? 2 : 3}</foo>
const value = 1 || 2 || 3
const bar = <foo bar={value} />
const baz = <foo>{value}</foo>