@bastidood/eslint-config-svelte 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -24,10 +24,10 @@ List `SVELTE` after `CORE`.
|
|
|
24
24
|
|
|
25
25
|
## Entry Points
|
|
26
26
|
|
|
27
|
-
| Entry point
|
|
28
|
-
|
|
|
29
|
-
| `@bastidood/eslint-config-svelte`
|
|
30
|
-
| `@bastidood/eslint-config-svelte/tanstack
|
|
27
|
+
| Entry point | Contents |
|
|
28
|
+
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------- |
|
|
29
|
+
| `@bastidood/eslint-config-svelte` | Svelte rules and type-aware parsing; bans `$effect` |
|
|
30
|
+
| `@bastidood/eslint-config-svelte/tanstack/table` | Reserved for Svelte Table rules; compose with `TANSTACK_TABLE` from `@bastidood/eslint-config/tanstack/table` |
|
|
31
31
|
|
|
32
32
|
## Limitations
|
|
33
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastidood/eslint-config-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Svelte rules and type-aware parsing for ESLint, composed with @bastidood/eslint-config.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/BastiDood/slopstopper",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.mjs",
|
|
18
|
-
"./tanstack
|
|
18
|
+
"./tanstack/table": "./dist/tanstack/table.mjs"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"eslint-plugin-svelte": "^3.
|
|
27
|
+
"eslint-plugin-svelte": "^3.24.0",
|
|
28
28
|
"typescript-eslint": "^8.72.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@bastidood/tsconfig": "0.1.1",
|
|
32
32
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
33
|
-
"eslint": "^10.
|
|
34
|
-
"tsdown": "^0.23.
|
|
33
|
+
"eslint": "^10.14.0",
|
|
34
|
+
"tsdown": "^0.23.5",
|
|
35
35
|
"typescript": "npm:@typescript/typescript6@^6.0.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@bastidood/eslint-config": "^0.
|
|
38
|
+
"@bastidood/eslint-config": "^0.5.0",
|
|
39
39
|
"eslint": "^10.0.0",
|
|
40
40
|
"svelte": "^5.0.0",
|
|
41
41
|
"typescript": ">=4.8.4 <6.1.0"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// src/tanstack-svelte-query.ts
|
|
2
|
-
/** Forbids capturing the TanStack Svelte Query client in closures. */
|
|
3
|
-
const TANSTACK_SVELTE_QUERY = { restrictions: { importPaths: [{
|
|
4
|
-
name: "@tanstack/svelte-query",
|
|
5
|
-
importNames: ["useQueryClient"],
|
|
6
|
-
message: "Obtain the `QueryClient` from the query or mutation callback context instead of capturing `useQueryClient` in a closure."
|
|
7
|
-
}] } };
|
|
8
|
-
export { TANSTACK_SVELTE_QUERY };
|