Skip to content

Commit

Permalink
test setup and eslint improved
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiHotz committed Aug 26, 2023
1 parent 7cbeb9d commit 2cda4d0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 43 deletions.
8 changes: 1 addition & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,7 @@ module.exports = {
'no-debugger': 'warn',
'no-warning-comments': 'warn',
'object-shorthand': 'error',
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: ['acc', 'next'],
},
],
'no-param-reassign': 'off',
'react/prop-types': 'off',
'react/self-closing-comp': [
'error',
Expand Down
Binary file modified .yarn/install-state.gz
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@svgr/rollup": "^8.1.0",
"@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^14.0.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.4.3",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "latest",
Expand All @@ -82,6 +82,7 @@
"prettier": "3.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"regenerator-runtime": "^0.14.0",
"rimraf": "^5.0.1",
"rollup": "^3.28.1",
"rollup-plugin-dts": "^6.0.0",
Expand Down
1 change: 1 addition & 0 deletions setupTests.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import '@testing-library/jest-dom';
import 'regenerator-runtime/runtime';
38 changes: 3 additions & 35 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4010,28 +4010,6 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/react-hooks@npm:^8.0.1":
version: 8.0.1
resolution: "@testing-library/react-hooks@npm:8.0.1"
dependencies:
"@babel/runtime": ^7.12.5
react-error-boundary: ^3.1.0
peerDependencies:
"@types/react": ^16.9.0 || ^17.0.0
react: ^16.9.0 || ^17.0.0
react-dom: ^16.9.0 || ^17.0.0
react-test-renderer: ^16.9.0 || ^17.0.0
peerDependenciesMeta:
"@types/react":
optional: true
react-dom:
optional: true
react-test-renderer:
optional: true
checksum: 7fe44352e920deb5cb1876f80d64e48615232072c9d5382f1e0284b3aab46bb1c659a040b774c45cdf084a5257b8fe463f7e08695ad8480d8a15635d4d3d1f6d
languageName: node
linkType: hard

"@testing-library/react@npm:^14.0.0":
version: 14.0.0
resolution: "@testing-library/react@npm:14.0.0"
Expand All @@ -4046,7 +4024,7 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/user-event@npm:^14.0.0":
"@testing-library/user-event@npm:^14.0.0, @testing-library/user-event@npm:^14.4.3":
version: 14.4.3
resolution: "@testing-library/user-event@npm:14.4.3"
peerDependencies:
Expand Down Expand Up @@ -12041,17 +12019,6 @@ __metadata:
languageName: node
linkType: hard

"react-error-boundary@npm:^3.1.0":
version: 3.1.4
resolution: "react-error-boundary@npm:3.1.4"
dependencies:
"@babel/runtime": ^7.12.5
peerDependencies:
react: ">=16.13.1"
checksum: f36270a5d775a25c8920f854c0d91649ceea417b15b5bc51e270a959b0476647bb79abb4da3be7dd9a4597b029214e8fe43ea914a7f16fa7543c91f784977f1b
languageName: node
linkType: hard

"react-inspector@npm:^6.0.0":
version: 6.0.2
resolution: "react-inspector@npm:6.0.2"
Expand Down Expand Up @@ -12151,7 +12118,7 @@ __metadata:
"@svgr/rollup": ^8.1.0
"@testing-library/jest-dom": ^6.1.2
"@testing-library/react": ^14.0.0
"@testing-library/react-hooks": ^8.0.1
"@testing-library/user-event": ^14.4.3
"@types/react": ^18.2.21
"@types/react-dom": ^18.2.7
"@typescript-eslint/eslint-plugin": latest
Expand All @@ -12174,6 +12141,7 @@ __metadata:
prettier: 3.0.2
react: ^18.2.0
react-dom: ^18.2.0
regenerator-runtime: ^0.14.0
rimraf: ^5.0.1
rollup: ^3.28.1
rollup-plugin-dts: ^6.0.0
Expand Down

0 comments on commit 2cda4d0

Please sign in to comment.