Open gkiely opened 7 months ago
Yes
6.2.0
8.54.0
20.2.0
9.6.6
macOS Monterey, 12.7
Using a logger in my code, specifically log.debug('')
log.debug('')
log.debug()
error Unexpected debug statement testing-library/no-debugging-utils
{ "env": { "shared-node-browser": true, "es2022": true }, "ignorePatterns": ["src/app/index.css", "public"], "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": "latest", "tsconfigRootDir": ".", "project": ["./tsconfig.json", "./tsconfig.node.json"] }, "settings": { "react": { "version": "detect" } }, "plugins": ["testing-library"], "testing-library/no-debugging-utils": "error", }
testing-library/no-debugging-utils
Ideally it would only affect .debug() or when it is using screen or a testing-library helper method. Alternatively having an option to be able to limit it to screen.debug() would also suffice
.debug()
screen.debug()
Hey @gkiely! This is related to Aggressive Reporting. Have you checked the Troubleshooting section to find more about restricting this behavior?
Have you read the Troubleshooting section?
Yes
Plugin version
6.2.0
ESLint version
8.54.0
Node.js version
20.2.0
package manager and version
9.6.6
Operating system
macOS Monterey, 12.7
Bug description
Using a logger in my code, specifically
log.debug('')
Steps to reproduce
log.debug()
Error output/screenshots
error Unexpected debug statement testing-library/no-debugging-utils
ESLint configuration
Rule(s) affected
testing-library/no-debugging-utils
Anything else?
Ideally it would only affect
.debug()
or when it is using screen or a testing-library helper method. Alternatively having an option to be able to limit it toscreen.debug()
would also sufficeDo you want to submit a pull request to fix this bug?
Yes