Skip to content

Commit

Permalink
feat(test)!: add eslint-plugin-testing-library
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Nov 3, 2023
1 parent 3646271 commit 8b06686
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ module.exports = {
},
{
files: ["**/__tests__/**", "**/*.test.*"],
extends: ["plugin:jest/recommended"],
extends: ["plugin:jest/recommended", "plugin:testing-library/react"],
rules: {
// it's valid to do @jest-environment or other things in tests
"tsdoc/syntax": 0,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^6.1.0",
"eslint-plugin-tsdoc": "^0.2.17"
},
"devDependencies": {
Expand Down
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b06686

Please sign in to comment.