Skip to content

Commit 4df5802

Browse files
committed
Set up eslint-plugin-testing-library
1 parent 701996c commit 4df5802

File tree

3 files changed

+103
-1
lines changed

3 files changed

+103
-1
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ module.exports = {
231231
'*.test.ts',
232232
'*.test.tsx',
233233
],
234-
extends: ['plugin:mocha/recommended'],
234+
extends: ['plugin:mocha/recommended', 'plugin:testing-library/react'],
235235
rules: {
236236
// does not work with wildcard imports. Mistakes will throw at runtime anyway
237237
'import/named': 'off',

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
"eslint-plugin-react": "^7.34.3",
155155
"eslint-plugin-react-compiler": "0.0.0-experimental-0998c1e-20240625",
156156
"eslint-plugin-react-hooks": "^4.6.2",
157+
"eslint-plugin-testing-library": "^6.2.2",
157158
"fast-glob": "^3.3.2",
158159
"fs-extra": "^11.2.0",
159160
"globby": "^14.0.2",

pnpm-lock.yaml

+101
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)