Skip to content

Commit

Permalink
ESLint: Add no-debugging-utils rule
Browse files Browse the repository at this point in the history
This adds `testing-library/no-debugging-utils` rule to output an error when a debugging statement was left over in the code.
  • Loading branch information
regexowl authored and lucasgarfield committed Jan 25, 2024
1 parent 269293e commit 27b4e22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
],
"rules": {
"react/display-name": "off",
"react/prop-types": "off"
"react/prop-types": "off",
"testing-library/no-debugging-utils": "error"
},
"extends": [
"plugin:testing-library/react",
Expand Down

0 comments on commit 27b4e22

Please sign in to comment.