Skip to content

Commit 236afcb

Browse files
committed
Fixing CI
1 parent 4a1e4ae commit 236afcb

File tree

70 files changed

+278
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+278
-359
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import './.next/types/routes.d.ts'
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,38 @@
11
// @ts-check
2-
3-
import rootConfig from './root.eslint.config.js'
42
// @ts-ignore: no types for eslint-config-preact
53
import preact from 'eslint-config-preact'
4+
// eslint-config-preact uses typescript-eslint under the hood
5+
import tseslint from 'typescript-eslint'
6+
7+
import rootConfig from './root.eslint.config.js'
68

79
export default [
810
...rootConfig,
911
...preact,
1012
{
1113
files: ['**/*.{ts,tsx}'],
1214
languageOptions: {
15+
parser: tseslint.parser,
1316
parserOptions: {
1417
project: true,
1518
},
1619
},
20+
plugins: {
21+
'typescript-eslint': tseslint.plugin,
22+
},
1723
rules: {
1824
// Disable base rule to prevent overload false positives
1925
'no-redeclare': 'off',
2026
'no-duplicate-imports': 'off',
27+
'no-unused-vars': 'off',
28+
'import/order': 'off',
29+
'sort-imports': 'off',
30+
'no-import-assign': 'off',
31+
// TS-aware version handles overloads correctly
32+
'@typescript-eslint/no-redeclare': 'error',
33+
'@typescript-eslint/array-type': 'off',
34+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
35+
'@typescript-eslint/no-unnecessary-condition': 'off',
2136
},
2237
},
23-
{
24-
files: ['**/__tests__/**'],
25-
},
2638
]

packages/preact-query/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/TanStack/query.git",
9+
"url": "git+https://github.com/TanStack/query.git",
1010
"directory": "packages/preact-query"
1111
},
1212
"homepage": "https://tanstack.com/query",
@@ -75,7 +75,8 @@
7575
"eslint-config-preact": "^2.0.0",
7676
"npm-run-all2": "^5.0.0",
7777
"preact": "^10.28.0",
78-
"preact-render-to-string": "^6.6.4"
78+
"preact-render-to-string": "^6.6.4",
79+
"typescript-eslint": "^8.54.0"
7980
},
8081
"peerDependencies": {
8182
"preact": "^10.0.0"

0 commit comments

Comments
 (0)