False `render-result-naming-convention` warning
jiaruivh opened this issue · 0 comments
jiaruivh commented
Have you read the Troubleshooting section?
Yes
Plugin version
v4.10.1
ESLint version
v7.31.0
Node.js version
14.17.3
package manager and version
npm 6.14.13
Operating system
macOS Ventura 13.5.2
Bug description
False render-result-naming-convention warning. I have a function named renderTestComponent calling render within and returning a javascript object, but the plugin is complaining "ESLint: result is not a recommended name for render returned value. Instead, you should destructure it, or name it using one of: view, or `utils".
Steps to reproduce
As shown in the image attached
Error output/screenshots
ESLint configuration
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react'],
rules: {
'testing-library/await-async-events': 'off',
},
Rule(s) affected
render-result-naming-convention
Anything else?
No response
Do you want to submit a pull request to fix this bug?
No