Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const config = tseslint.config(
reactPlugin.configs.flat.recommended, // This is not a plugin object, but a shareable config object
reactPlugin.configs.flat['jsx-runtime'], // Add this if you are using React 17+
// eslint-plugin-react-hooks
...reactHooksPlugin.configs.recommended,
reactHooksPlugin.configs.flat.recommended,
{
languageOptions: {
globals: {
Expand Down
26 changes: 22 additions & 4 deletions examples/react-router-ts/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/react-router-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "6.1.1",
"eslint-plugin-react-hooks": "7.0.0",
"globals": "16.4.0",
"typescript": "5.8.3",
"typescript-eslint": "8.44.1",
Expand Down
4 changes: 1 addition & 3 deletions examples/vite-ts/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@ import tseslint from 'typescript-eslint';
export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
extends: [js.configs.recommended, ...tseslint.configs.recommended, reactHooks.configs.flat.recommended, ],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
},
},
Expand Down
26 changes: 22 additions & 4 deletions examples/vite-ts/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@vitejs/plugin-react": "5.0.4",
"cypress": "15.2.0",
"eslint": "9.36.0",
"eslint-plugin-react-hooks": "6.1.1",
"eslint-plugin-react-hooks": "7.0.0",
"eslint-plugin-react-refresh": "0.4.23",
"globals": "16.4.0",
"typescript-eslint": "8.44.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"eslint-plugin-no-only-tests": "3.3.0",
"eslint-plugin-prettier": "5.5.4",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "6.1.1",
"eslint-plugin-react-hooks": "7.0.0",
"eslint-plugin-storybook": "9.1.10",
"glob": "11.0.3",
"globals": "16.4.0",
Expand Down
26 changes: 22 additions & 4 deletions patterns/navigation-layout/package-lock.json

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

2 changes: 1 addition & 1 deletion patterns/navigation-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@types/react-dom": "19.1.11",
"@vitejs/plugin-react": "5.0.4",
"eslint": "9.36.0",
"eslint-plugin-react-hooks": "6.1.1",
"eslint-plugin-react-hooks": "7.0.0",
"eslint-plugin-react-refresh": "0.4.23",
"globals": "16.4.0",
"typescript": "5.8.3",
Expand Down
26 changes: 22 additions & 4 deletions templates/vite-ts/package-lock.json

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

2 changes: 1 addition & 1 deletion templates/vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@ui5/webcomponents-cypress-commands": "2.15.2",
"cypress": "15.2.0",
"eslint": "9.36.0",
"eslint-plugin-react-hooks": "6.1.1",
"eslint-plugin-react-hooks": "7.0.0",
"eslint-plugin-react-refresh": "0.4.23",
"globals": "16.4.0",
"typescript": "5.8.3",
Expand Down
27 changes: 22 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9473,17 +9473,18 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-react-hooks@npm:6.1.1":
version: 6.1.1
resolution: "eslint-plugin-react-hooks@npm:6.1.1"
"eslint-plugin-react-hooks@npm:7.0.0":
version: 7.0.0
resolution: "eslint-plugin-react-hooks@npm:7.0.0"
dependencies:
"@babel/core": "npm:^7.24.4"
"@babel/parser": "npm:^7.24.4"
hermes-parser: "npm:^0.25.1"
zod: "npm:^3.22.4 || ^4.0.0"
zod-validation-error: "npm:^3.0.3 || ^4.0.0"
peerDependencies:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
checksum: 10c0/579be053bc89c995a6c03996f9ee3f6bac88946b4b1c8b891b42f981e7c05a9c5de46324bbd2a33199855c0a602820c0e3eeb7f840730301b77a9ba3dc7a0ae2
checksum: 10c0/911c9efdd9b102ce2eabac247dff8c217ecb8d6972aaf3b7eecfb1cfc293d4d902766355993ff7a37a33c0abde3e76971f43bc1c8ff36d6c123310e5680d0423
languageName: node
linkType: hard

Expand Down Expand Up @@ -11338,6 +11339,22 @@ __metadata:
languageName: node
linkType: hard

"hermes-estree@npm:0.25.1":
version: 0.25.1
resolution: "hermes-estree@npm:0.25.1"
checksum: 10c0/48be3b2fa37a0cbc77a112a89096fa212f25d06de92781b163d67853d210a8a5c3784fac23d7d48335058f7ed283115c87b4332c2a2abaaccc76d0ead1a282ac
languageName: node
linkType: hard

"hermes-parser@npm:^0.25.1":
version: 0.25.1
resolution: "hermes-parser@npm:0.25.1"
dependencies:
hermes-estree: "npm:0.25.1"
checksum: 10c0/3abaa4c6f1bcc25273f267297a89a4904963ea29af19b8e4f6eabe04f1c2c7e9abd7bfc4730ddb1d58f2ea04b6fee74053d8bddb5656ec6ebf6c79cc8d14202c
languageName: node
linkType: hard

"highlight.js@npm:^11.6.0":
version: 11.10.0
resolution: "highlight.js@npm:11.10.0"
Expand Down Expand Up @@ -20220,7 +20237,7 @@ __metadata:
eslint-plugin-no-only-tests: "npm:3.3.0"
eslint-plugin-prettier: "npm:5.5.4"
eslint-plugin-react: "npm:7.37.5"
eslint-plugin-react-hooks: "npm:6.1.1"
eslint-plugin-react-hooks: "npm:7.0.0"
eslint-plugin-storybook: "npm:9.1.10"
glob: "npm:11.0.3"
globals: "npm:16.4.0"
Expand Down
Loading