diff --git a/.changeset/soft-cherries-hide.md b/.changeset/soft-cherries-hide.md new file mode 100644 index 0000000000..377b0e941b --- /dev/null +++ b/.changeset/soft-cherries-hide.md @@ -0,0 +1,5 @@ +--- +"@tanstack/eslint-plugin-query": patch +--- + +fix(eslint-plugin-query): declare typescript as optional peer dependency diff --git a/packages/eslint-plugin-query/package.json b/packages/eslint-plugin-query/package.json index 74620a6f71..b6f8ffd32b 100644 --- a/packages/eslint-plugin-query/package.json +++ b/packages/eslint-plugin-query/package.json @@ -69,6 +69,12 @@ "npm-run-all2": "^5.0.0" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0" + "eslint": "^8.57.0 || ^9.0.0", + "typescript": "^5.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29764711a0..7ce5b94603 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2344,6 +2344,9 @@ importers: '@typescript-eslint/utils': specifier: ^8.48.0 version: 8.48.0(eslint@9.36.0(jiti@2.5.1))(typescript@5.8.3) + typescript: + specifier: ^5.0.0 + version: 5.8.3 devDependencies: '@typescript-eslint/parser': specifier: ^8.48.0