hluisson / eslint-plugin-jsx-expressions

Rules for safe logical expressions in JSX
95 stars 12 forks source link

Check arrays #7

Open fabien88 opened 2 years ago

fabien88 commented 2 years ago

It seems that arrays are not properly checked :

const myArray = [''];
...
{myArray[0] && ...}

doesn't throw any error.

BTW, Thanks for this great plugin !