@bastidood/eslint-config-svelte 0.4.0 → 0.6.1

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 | Contents |
28
- | ------------------------------------------------------- | --------------------------------------------------- |
29
- | `@bastidood/eslint-config-svelte` | Svelte rules and type-aware parsing; bans `$effect` |
30
- | `@bastidood/eslint-config-svelte/tanstack-svelte-query` | Bans `useQueryClient` |
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
 
@@ -0,0 +1,4 @@
1
+ /** TanStack Svelte Table rules. */
2
+ export declare const TANSTACK_SVELTE_TABLE: {
3
+ restrictions: {};
4
+ };
@@ -0,0 +1,4 @@
1
+ // src/tanstack/table.ts
2
+ /** TanStack Svelte Table rules. */
3
+ const TANSTACK_SVELTE_TABLE = { restrictions: {} };
4
+ export { TANSTACK_SVELTE_TABLE };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastidood/eslint-config-svelte",
3
- "version": "0.4.0",
3
+ "version": "0.6.1",
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-svelte-query": "./dist/tanstack-svelte-query.mjs"
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.23.1",
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.13.0",
34
- "tsdown": "^0.23.4",
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.4.0",
38
+ "@bastidood/eslint-config": "^0.6.1",
39
39
  "eslint": "^10.0.0",
40
40
  "svelte": "^5.0.0",
41
41
  "typescript": ">=4.8.4 <6.1.0"
@@ -1,10 +0,0 @@
1
- /** Forbids capturing the TanStack Svelte Query client in closures. */
2
- export declare const TANSTACK_SVELTE_QUERY: {
3
- restrictions: {
4
- importPaths: {
5
- name: string;
6
- importNames: string[];
7
- message: string;
8
- }[];
9
- };
10
- };
@@ -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 };