An ESLint plugin to catch React text node conditionals that may lead to browser-translation-based errors.
An ESLint 8 plugin to catch React text node conditionals that may lead to browser-translation-based errors, as outlined in this issue.
This plugin will error on the following cases:
``jsx
// Case 1
{condition && 'Welcome'}
Something
// Case 2
Usage
`js
module.exports = {
plugins: ['no-conditional-text-node'],
rules: {
'no-conditional-text-node/no-conditional-text-node': 'error'
}
}
``