@foldkit/oxlint-plugin 0.10.0 → 0.11.0-canary.0053b7691fcd

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.
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../src/message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAA;AAM3C,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAA;CAChC,CAAC,CAAA;AAoBF,eAAO,MAAM,iCAAiC,GAC5C,UAAU,GAAG,CAAC,MAAM,CAAC,EACrB,MAAM,MAAM,CAAC,IAAI,KAChB,IA0BF,CAAA;AAED,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,CAAC,cAAc,EAC3B,UAAU,WAAW,CAAC,MAAM,CAAC,KAC5B,aAAa,CAAC,WAAW,CA4B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,QAAQ,MAAM,CAAC,gBAAgB,KAC9B,OAMA,CAAA"}
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../src/message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAA;AAW3C,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAA;CAChC,CAAC,CAAA;AAEF,eAAO,MAAM,iCAAiC,aAClC,GAAG,CAAC,MAAM,CAAC,QACf,MAAM,CAAC,IAAI,KAChB,IA0BF,CAAA;AAED,eAAO,MAAM,YAAY,SACjB,MAAM,CAAC,cAAc,YACjB,WAAW,CAAC,MAAM,CAAC,KAC5B,aAAa,CAAC,WAAW,CA4B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,MAAM,CAAC,gBAAgB,KAC9B,OAMA,CAAA"}
@@ -1,3 +1,3 @@
1
- /** Flags applied Mount.define and Mount.defineStream factories that never use their element parameter. A Mount exists for element-caused, element-targeted work; a factory that ignores the element belongs in a Command, Subscription, or ManagedResource. */
1
+ /** Flags Mount.define and Mount.defineStream definitions whose `execute` never uses its element. A Mount exists for element-caused, element-targeted work; work that ignores the element belongs in a Command, Subscription, or ManagedResource. */
2
2
  export declare const mountFactoryMustUseElement: import("effect-oxlint").CreateRule;
3
3
  //# sourceMappingURL=mount-factory-must-use-element.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mount-factory-must-use-element.d.ts","sourceRoot":"","sources":["../../src/rules/mount-factory-must-use-element.ts"],"names":[],"mappings":"AA4GA,+PAA+P;AAC/P,eAAO,MAAM,0BAA0B,oCAiCrC,CAAA"}
1
+ {"version":3,"file":"mount-factory-must-use-element.d.ts","sourceRoot":"","sources":["../../src/rules/mount-factory-must-use-element.ts"],"names":[],"mappings":"AA0NA,oPAAoP;AACpP,eAAO,MAAM,0BAA0B,oCA4BrC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-empty-commands-array.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-commands-array.ts"],"names":[],"mappings":"AA+DA;;;2EAG2E;AAC3E,eAAO,MAAM,oBAAoB,oCAyE/B,CAAA"}
1
+ {"version":3,"file":"no-empty-commands-array.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-commands-array.ts"],"names":[],"mappings":"AAgDA;;;2EAG2E;AAC3E,eAAO,MAAM,oBAAoB,oCAyE/B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-empty-to-parent-out-message.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-to-parent-out-message.ts"],"names":[],"mappings":"AAsJA;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,oCAgFpC,CAAA"}
1
+ {"version":3,"file":"no-empty-to-parent-out-message.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-to-parent-out-message.ts"],"names":[],"mappings":"AAgHA;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,oCAgFpC,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Flags direct calls to known nondeterministic globals unless they appear in a
3
+ * recognized deferred Effect, Stream, Command, Mount, Subscription, or
4
+ * ManagedResource callback.
5
+ */
6
+ export declare const noImpureCallAtDecisionTime: import("effect-oxlint").CreateRule;
7
+ //# sourceMappingURL=no-impure-call-at-decision-time.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-impure-call-at-decision-time.d.ts","sourceRoot":"","sources":["../../src/rules/no-impure-call-at-decision-time.ts"],"names":[],"mappings":"AA80BA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,oCAyCrC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-nonportable-server-globals.d.ts","sourceRoot":"","sources":["../../src/rules/no-nonportable-server-globals.ts"],"names":[],"mappings":"AAuIA;;GAEG;AACH,eAAO,MAAM,0BAA0B,oCAsErC,CAAA"}
1
+ {"version":3,"file":"no-nonportable-server-globals.d.ts","sourceRoot":"","sources":["../../src/rules/no-nonportable-server-globals.ts"],"names":[],"mappings":"AA+EA;;GAEG;AACH,eAAO,MAAM,0BAA0B,oCAuErC,CAAA"}
@@ -0,0 +1,3 @@
1
+ /** Requires PascalCase Effect modules to keep their exported names. */
2
+ export declare const preferEffectModuleNames: import("effect-oxlint").CreateRule;
3
+ //# sourceMappingURL=prefer-effect-module-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-effect-module-names.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-effect-module-names.ts"],"names":[],"mappings":"AAyLA,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,oCAkDlC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/oxlint-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0-canary.0053b7691fcd",
4
4
  "description": "Oxlint rules for Foldkit applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -15,15 +15,16 @@
15
15
  "./all.json": "./all.json"
16
16
  },
17
17
  "dependencies": {
18
- "effect-oxlint": "^0.3.2"
18
+ "effect-oxlint": "^0.3.4"
19
19
  },
20
20
  "devDependencies": {
21
- "@types/node": "^25.9.3",
21
+ "@types/node": "^26.4.0",
22
+ "@typescript/native": "npm:typescript@^7.0.2",
22
23
  "effect": "4.0.0-rc.112",
23
- "esbuild": "^0.28.1",
24
+ "esbuild": "^0.28.2",
24
25
  "rimraf": "^6.1.3",
25
- "typescript": "^6.0.3",
26
- "vitest": "^4.1.9"
26
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
27
+ "vitest": "^4.1.11"
27
28
  },
28
29
  "files": [
29
30
  "dist",
package/recommended.json CHANGED
@@ -24,12 +24,14 @@
24
24
  "foldkit/no-empty-object-tagged-call": "error",
25
25
  "foldkit/no-hand-rolled-command-struct": "error",
26
26
  "foldkit/no-hardcoded-route-strings": "error",
27
+ "foldkit/no-impure-call-at-decision-time": "error",
27
28
  "foldkit/no-module-level-mutable-state": "error",
28
29
  "foldkit/no-nonportable-server-globals": "off",
29
30
  "foldkit/no-noop-message": "error",
30
31
  "foldkit/no-raw-dom-event-attributes": "error",
31
32
  "foldkit/no-spread-in-evo": "error",
32
33
  "foldkit/prefer-callable-message-constructor": "error",
34
+ "foldkit/prefer-effect-module-names": "error",
33
35
  "foldkit/require-rel-for-external-link": "error",
34
36
  "foldkit/selection-submodel-factory-at-module-scope": "error",
35
37
  "foldkit/wrap-child-output-in-got-message": "error"
@@ -41,7 +43,8 @@
41
43
  "**/entry.server.tsx",
42
44
  "**/server/**/*.ts",
43
45
  "**/server/**/*.tsx",
44
- "**/prerender.ts"
46
+ "**/prerender.ts",
47
+ "**/prerender.tsx"
45
48
  ],
46
49
  "excludeFiles": [
47
50
  "**/*.test.ts",
@@ -50,7 +53,27 @@
50
53
  "**/*.spec.tsx"
51
54
  ],
52
55
  "rules": {
53
- "foldkit/no-nonportable-server-globals": "error"
56
+ "foldkit/no-nonportable-server-globals": "error",
57
+ "foldkit/no-impure-call-at-decision-time": "off"
58
+ }
59
+ },
60
+ {
61
+ "files": [
62
+ "**/entry.ts",
63
+ "**/entry.tsx",
64
+ "**/entry.client.ts",
65
+ "**/entry.client.tsx",
66
+ "**/entry.server.ts",
67
+ "**/entry.server.tsx"
68
+ ],
69
+ "excludeFiles": [
70
+ "**/*.test.ts",
71
+ "**/*.test.tsx",
72
+ "**/*.spec.ts",
73
+ "**/*.spec.tsx"
74
+ ],
75
+ "rules": {
76
+ "foldkit/no-impure-call-at-decision-time": "off"
54
77
  }
55
78
  },
56
79
  {
@@ -79,6 +102,7 @@
79
102
  "foldkit/no-empty-object-tagged-call": "off",
80
103
  "foldkit/no-hand-rolled-command-struct": "off",
81
104
  "foldkit/no-hardcoded-route-strings": "off",
105
+ "foldkit/no-impure-call-at-decision-time": "off",
82
106
  "foldkit/no-module-level-mutable-state": "off",
83
107
  "foldkit/no-nonportable-server-globals": "off",
84
108
  "foldkit/no-noop-message": "off",