From c8f8b3bc3891e7c34207a2e61ca173cfd1e3db58 Mon Sep 17 00:00:00 2001 From: Damian Osipiuk Date: Tue, 26 Jul 2022 17:38:54 +0200 Subject: [PATCH] fix: lint and tests --- packages/query-async-storage-persister/.eslintrc | 2 +- .../tsconfig.lint.json | 14 ++++++++++++++ .../query-broadcast-client-experimental/.eslintrc | 2 +- .../tsconfig.lint.json | 11 +++++++++++ packages/query-core/.eslintrc | 2 +- packages/query-core/tsconfig.lint.json | 10 ++++++++++ packages/query-sync-storage-persister/.eslintrc | 2 +- .../tsconfig.lint.json | 13 +++++++++++++ packages/react-query-devtools/.eslintrc | 2 +- packages/react-query-devtools/tsconfig.lint.json | 14 ++++++++++++++ packages/react-query-persist-client/.eslintrc | 2 +- .../react-query-persist-client/tsconfig.lint.json | 14 ++++++++++++++ packages/react-query/.eslintrc | 2 +- packages/react-query/tsconfig.lint.json | 13 +++++++++++++ 14 files changed, 96 insertions(+), 7 deletions(-) create mode 100644 packages/query-async-storage-persister/tsconfig.lint.json create mode 100644 packages/query-broadcast-client-experimental/tsconfig.lint.json create mode 100644 packages/query-core/tsconfig.lint.json create mode 100644 packages/query-sync-storage-persister/tsconfig.lint.json create mode 100644 packages/react-query-devtools/tsconfig.lint.json create mode 100644 packages/react-query-persist-client/tsconfig.lint.json create mode 100644 packages/react-query/tsconfig.lint.json diff --git a/packages/query-async-storage-persister/.eslintrc b/packages/query-async-storage-persister/.eslintrc index 067a57a4163..fbc604e96c2 100644 --- a/packages/query-async-storage-persister/.eslintrc +++ b/packages/query-async-storage-persister/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "./tsconfig.json", + "project": "./tsconfig.lint.json", "sourceType": "module" } } diff --git a/packages/query-async-storage-persister/tsconfig.lint.json b/packages/query-async-storage-persister/tsconfig.lint.json new file mode 100644 index 00000000000..4b2b5f7be91 --- /dev/null +++ b/packages/query-async-storage-persister/tsconfig.lint.json @@ -0,0 +1,14 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "rootDir": "./src", + "outDir": "./build/lib", + "tsBuildInfoFile": "./build/.tsbuildinfo" + }, + "include": ["src"], + "references": [ + { "path": "../query-core" }, + { "path": "../react-query-persist-client" } + ] +} diff --git a/packages/query-broadcast-client-experimental/.eslintrc b/packages/query-broadcast-client-experimental/.eslintrc index 067a57a4163..fbc604e96c2 100644 --- a/packages/query-broadcast-client-experimental/.eslintrc +++ b/packages/query-broadcast-client-experimental/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "./tsconfig.json", + "project": "./tsconfig.lint.json", "sourceType": "module" } } diff --git a/packages/query-broadcast-client-experimental/tsconfig.lint.json b/packages/query-broadcast-client-experimental/tsconfig.lint.json new file mode 100644 index 00000000000..7f90d602fb1 --- /dev/null +++ b/packages/query-broadcast-client-experimental/tsconfig.lint.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "rootDir": "./src", + "outDir": "./build/lib", + "tsBuildInfoFile": "./build/.tsbuildinfo" + }, + "include": ["src"], + "references": [{ "path": "../query-core" }] +} diff --git a/packages/query-core/.eslintrc b/packages/query-core/.eslintrc index 067a57a4163..fbc604e96c2 100644 --- a/packages/query-core/.eslintrc +++ b/packages/query-core/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "./tsconfig.json", + "project": "./tsconfig.lint.json", "sourceType": "module" } } diff --git a/packages/query-core/tsconfig.lint.json b/packages/query-core/tsconfig.lint.json new file mode 100644 index 00000000000..9ee9f26e254 --- /dev/null +++ b/packages/query-core/tsconfig.lint.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "rootDir": "./src", + "outDir": "./build/lib", + "tsBuildInfoFile": "./build/.tsbuildinfo" + }, + "include": ["src"] +} diff --git a/packages/query-sync-storage-persister/.eslintrc b/packages/query-sync-storage-persister/.eslintrc index 067a57a4163..fbc604e96c2 100644 --- a/packages/query-sync-storage-persister/.eslintrc +++ b/packages/query-sync-storage-persister/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "./tsconfig.json", + "project": "./tsconfig.lint.json", "sourceType": "module" } } diff --git a/packages/query-sync-storage-persister/tsconfig.lint.json b/packages/query-sync-storage-persister/tsconfig.lint.json new file mode 100644 index 00000000000..2dd100c7b84 --- /dev/null +++ b/packages/query-sync-storage-persister/tsconfig.lint.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "rootDir": "./src", + "outDir": "./build/lib", + "tsBuildInfoFile": "./build/.tsbuildinfo" + }, + "include": ["src"], + "references": [ + { "path": "../react-query-persist-client" } + ] +} diff --git a/packages/react-query-devtools/.eslintrc b/packages/react-query-devtools/.eslintrc index 067a57a4163..fbc604e96c2 100644 --- a/packages/react-query-devtools/.eslintrc +++ b/packages/react-query-devtools/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "./tsconfig.json", + "project": "./tsconfig.lint.json", "sourceType": "module" } } diff --git a/packages/react-query-devtools/tsconfig.lint.json b/packages/react-query-devtools/tsconfig.lint.json new file mode 100644 index 00000000000..4b2b5f7be91 --- /dev/null +++ b/packages/react-query-devtools/tsconfig.lint.json @@ -0,0 +1,14 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "rootDir": "./src", + "outDir": "./build/lib", + "tsBuildInfoFile": "./build/.tsbuildinfo" + }, + "include": ["src"], + "references": [ + { "path": "../query-core" }, + { "path": "../react-query-persist-client" } + ] +} diff --git a/packages/react-query-persist-client/.eslintrc b/packages/react-query-persist-client/.eslintrc index 067a57a4163..fbc604e96c2 100644 --- a/packages/react-query-persist-client/.eslintrc +++ b/packages/react-query-persist-client/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "./tsconfig.json", + "project": "./tsconfig.lint.json", "sourceType": "module" } } diff --git a/packages/react-query-persist-client/tsconfig.lint.json b/packages/react-query-persist-client/tsconfig.lint.json new file mode 100644 index 00000000000..6411238e53e --- /dev/null +++ b/packages/react-query-persist-client/tsconfig.lint.json @@ -0,0 +1,14 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "rootDir": "./src", + "outDir": "./build/lib", + "tsBuildInfoFile": "./build/.tsbuildinfo" + }, + "include": ["src"], + "references": [ + { "path": "../query-core" }, + { "path": "../react-query" } + ] +} diff --git a/packages/react-query/.eslintrc b/packages/react-query/.eslintrc index 067a57a4163..fbc604e96c2 100644 --- a/packages/react-query/.eslintrc +++ b/packages/react-query/.eslintrc @@ -1,6 +1,6 @@ { "parserOptions": { - "project": "./tsconfig.json", + "project": "./tsconfig.lint.json", "sourceType": "module" } } diff --git a/packages/react-query/tsconfig.lint.json b/packages/react-query/tsconfig.lint.json new file mode 100644 index 00000000000..85281afb6c3 --- /dev/null +++ b/packages/react-query/tsconfig.lint.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "composite": true, + "rootDir": "./src", + "outDir": "./build/lib", + "tsBuildInfoFile": "./build/.tsbuildinfo" + }, + "include": ["src"], + "references": [ + { "path": "../query-core" } + ] +}