@foldkit/oxlint-plugin 0.11.0 → 0.12.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.
Files changed (38) hide show
  1. package/all.json +26 -2
  2. package/dist/guards.d.ts +25 -7
  3. package/dist/guards.d.ts.map +1 -1
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1640 -288
  7. package/dist/message.d.ts +4 -2
  8. package/dist/message.d.ts.map +1 -1
  9. package/dist/rules/command-binding-matches-name.d.ts.map +1 -1
  10. package/dist/rules/command-define-pascal-const.d.ts.map +1 -1
  11. package/dist/rules/got-prefix-requires-submodel-payload.d.ts.map +1 -1
  12. package/dist/rules/got-submodel-message-name.d.ts.map +1 -1
  13. package/dist/rules/got-wrapper-carries-only-routing.d.ts.map +1 -1
  14. package/dist/rules/keyed-required-for-mapped-rows.d.ts.map +1 -1
  15. package/dist/rules/lazy-view-stable-references.d.ts.map +1 -1
  16. package/dist/rules/mount-factory-must-use-element.d.ts.map +1 -1
  17. package/dist/rules/no-array-index-view-keys.d.ts.map +1 -1
  18. package/dist/rules/no-child-message-construction-in-root.d.ts.map +1 -1
  19. package/dist/rules/no-disabling-dev-guardrails.d.ts.map +1 -1
  20. package/dist/rules/no-duplicate-onmount-per-element.d.ts.map +1 -1
  21. package/dist/rules/no-empty-children-array.d.ts.map +1 -1
  22. package/dist/rules/no-empty-commands-array.d.ts.map +1 -1
  23. package/dist/rules/no-empty-object-tagged-call.d.ts.map +1 -1
  24. package/dist/rules/no-empty-to-parent-out-message.d.ts.map +1 -1
  25. package/dist/rules/no-hardcoded-route-strings.d.ts.map +1 -1
  26. package/dist/rules/no-impure-call-at-decision-time.d.ts +7 -0
  27. package/dist/rules/no-impure-call-at-decision-time.d.ts.map +1 -0
  28. package/dist/rules/no-nonportable-server-globals.d.ts.map +1 -1
  29. package/dist/rules/no-noop-message.d.ts.map +1 -1
  30. package/dist/rules/no-raw-dom-event-attributes.d.ts.map +1 -1
  31. package/dist/rules/no-spread-in-evo.d.ts.map +1 -1
  32. package/dist/rules/prefer-effect-module-names.d.ts +3 -0
  33. package/dist/rules/prefer-effect-module-names.d.ts.map +1 -0
  34. package/dist/rules/require-rel-for-external-link.d.ts.map +1 -1
  35. package/dist/rules/selection-submodel-factory-at-module-scope.d.ts.map +1 -1
  36. package/dist/rules/wrap-child-output-in-got-message.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/recommended.json +26 -2
package/dist/message.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- import { type ESTree } from 'effect-oxlint';
1
+ import { type ESTree, type Reference } from 'effect-oxlint';
2
2
  export type MessageCase = Readonly<{
3
3
  name: string;
4
4
  nameNode: ESTree.Node;
5
5
  fields: ESTree.ObjectExpression;
6
6
  }>;
7
7
  export declare const recordFoldkitMessageUnionBindings: (bindings: Set<string>, node: ESTree.Node) => void;
8
- export declare const messageCases: (node: ESTree.CallExpression, bindings: ReadonlySet<string>) => ReadonlyArray<MessageCase>;
8
+ export declare const isFoldkitMessageUnionCall: (node: ESTree.CallExpression, bindings: ReadonlySet<string>, references: WeakMap<ESTree.Node, Reference> | undefined) => boolean;
9
+ export declare const messageCases: (node: ESTree.CallExpression, bindings: ReadonlySet<string>, references: WeakMap<ESTree.Node, Reference> | undefined) => ReadonlyArray<MessageCase>;
9
10
  export declare const hasMessagePayloadProperty: (fields: ESTree.ObjectExpression) => boolean;
11
+ export declare const hasSubmodelMessagePayload: (fields: ESTree.ObjectExpression, references: WeakMap<ESTree.Node, Reference> | undefined) => boolean;
10
12
  //# sourceMappingURL=message.d.ts.map
@@ -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,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
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../src/message.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAa3D,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,yBAAyB,SAC9B,MAAM,CAAC,cAAc,YACjB,WAAW,CAAC,MAAM,CAAC,cACjB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,SAAS,KACtD,OAcF,CAAA;AAED,eAAO,MAAM,YAAY,SACjB,MAAM,CAAC,cAAc,YACjB,WAAW,CAAC,MAAM,CAAC,cACjB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,SAAS,KACtD,aAAa,CAAC,WAAW,CA4B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,MAAM,CAAC,gBAAgB,KAC9B,OAMA,CAAA;AAiCH,eAAO,MAAM,yBAAyB,WAC5B,MAAM,CAAC,gBAAgB,cACnB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,SAAS,KACtD,OAsBF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"command-binding-matches-name.d.ts","sourceRoot":"","sources":["../../src/rules/command-binding-matches-name.ts"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,eAAO,MAAM,yBAAyB,oCAiCpC,CAAA"}
1
+ {"version":3,"file":"command-binding-matches-name.d.ts","sourceRoot":"","sources":["../../src/rules/command-binding-matches-name.ts"],"names":[],"mappings":"AAoDA;;;GAGG;AACH,eAAO,MAAM,yBAAyB,oCAoCpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"command-define-pascal-const.d.ts","sourceRoot":"","sources":["../../src/rules/command-define-pascal-const.ts"],"names":[],"mappings":"AA6FA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oCAwBnC,CAAA"}
1
+ {"version":3,"file":"command-define-pascal-const.d.ts","sourceRoot":"","sources":["../../src/rules/command-define-pascal-const.ts"],"names":[],"mappings":"AA2HA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oCAwBnC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"got-prefix-requires-submodel-payload.d.ts","sourceRoot":"","sources":["../../src/rules/got-prefix-requires-submodel-payload.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,eAAO,MAAM,gCAAgC,oCAoC3C,CAAA"}
1
+ {"version":3,"file":"got-prefix-requires-submodel-payload.d.ts","sourceRoot":"","sources":["../../src/rules/got-prefix-requires-submodel-payload.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,eAAO,MAAM,gCAAgC,oCAuC3C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"got-submodel-message-name.d.ts","sourceRoot":"","sources":["../../src/rules/got-submodel-message-name.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oCAoCjC,CAAA"}
1
+ {"version":3,"file":"got-submodel-message-name.d.ts","sourceRoot":"","sources":["../../src/rules/got-submodel-message-name.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,oCAuCjC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"got-wrapper-carries-only-routing.d.ts","sourceRoot":"","sources":["../../src/rules/got-wrapper-carries-only-routing.ts"],"names":[],"mappings":"AA4CA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,oCAqDvC,CAAA"}
1
+ {"version":3,"file":"got-wrapper-carries-only-routing.d.ts","sourceRoot":"","sources":["../../src/rules/got-wrapper-carries-only-routing.ts"],"names":[],"mappings":"AAiDA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,oCAwDvC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"keyed-required-for-mapped-rows.d.ts","sourceRoot":"","sources":["../../src/rules/keyed-required-for-mapped-rows.ts"],"names":[],"mappings":"AA8LA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,oCAqCrC,CAAA"}
1
+ {"version":3,"file":"keyed-required-for-mapped-rows.d.ts","sourceRoot":"","sources":["../../src/rules/keyed-required-for-mapped-rows.ts"],"names":[],"mappings":"AAySA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,oCAkDrC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"lazy-view-stable-references.d.ts","sourceRoot":"","sources":["../../src/rules/lazy-view-stable-references.ts"],"names":[],"mappings":"AAwUA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oCAqCnC,CAAA"}
1
+ {"version":3,"file":"lazy-view-stable-references.d.ts","sourceRoot":"","sources":["../../src/rules/lazy-view-stable-references.ts"],"names":[],"mappings":"AAmYA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oCA6CnC,CAAA"}
@@ -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":"AA0NA,oPAAoP;AACpP,eAAO,MAAM,0BAA0B,oCA4BrC,CAAA"}
1
+ {"version":3,"file":"mount-factory-must-use-element.d.ts","sourceRoot":"","sources":["../../src/rules/mount-factory-must-use-element.ts"],"names":[],"mappings":"AA0PA,oPAAoP;AACpP,eAAO,MAAM,0BAA0B,oCA+BrC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-array-index-view-keys.d.ts","sourceRoot":"","sources":["../../src/rules/no-array-index-view-keys.ts"],"names":[],"mappings":"AA8KA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,oCAuE/B,CAAA"}
1
+ {"version":3,"file":"no-array-index-view-keys.d.ts","sourceRoot":"","sources":["../../src/rules/no-array-index-view-keys.ts"],"names":[],"mappings":"AA+PA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,oCAoF/B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-child-message-construction-in-root.d.ts","sourceRoot":"","sources":["../../src/rules/no-child-message-construction-in-root.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,eAAO,MAAM,gCAAgC,oCAkD3C,CAAA"}
1
+ {"version":3,"file":"no-child-message-construction-in-root.d.ts","sourceRoot":"","sources":["../../src/rules/no-child-message-construction-in-root.ts"],"names":[],"mappings":"AA4VA;;;GAGG;AACH,eAAO,MAAM,gCAAgC,oCA0C3C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-disabling-dev-guardrails.d.ts","sourceRoot":"","sources":["../../src/rules/no-disabling-dev-guardrails.ts"],"names":[],"mappings":"AA4DA,+PAA+P;AAC/P,eAAO,MAAM,wBAAwB,oCAgCnC,CAAA"}
1
+ {"version":3,"file":"no-disabling-dev-guardrails.d.ts","sourceRoot":"","sources":["../../src/rules/no-disabling-dev-guardrails.ts"],"names":[],"mappings":"AAuFA,+PAA+P;AAC/P,eAAO,MAAM,wBAAwB,oCAsCnC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-duplicate-onmount-per-element.d.ts","sourceRoot":"","sources":["../../src/rules/no-duplicate-onmount-per-element.ts"],"names":[],"mappings":"AA0BA,uNAAuN;AACvN,eAAO,MAAM,4BAA4B,oCAmBvC,CAAA"}
1
+ {"version":3,"file":"no-duplicate-onmount-per-element.d.ts","sourceRoot":"","sources":["../../src/rules/no-duplicate-onmount-per-element.ts"],"names":[],"mappings":"AA+BA,uNAAuN;AACvN,eAAO,MAAM,4BAA4B,oCAwBvC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-empty-children-array.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-children-array.ts"],"names":[],"mappings":"AAuEA,wPAAwP;AACxP,eAAO,MAAM,oBAAoB,oCA8C/B,CAAA"}
1
+ {"version":3,"file":"no-empty-children-array.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-children-array.ts"],"names":[],"mappings":"AAgGA,wPAAwP;AACxP,eAAO,MAAM,oBAAoB,oCAkD/B,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-object-tagged-call.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-object-tagged-call.ts"],"names":[],"mappings":"AA+EA,yEAAyE;AACzE,eAAO,MAAM,uBAAuB,oCAkDlC,CAAA"}
1
+ {"version":3,"file":"no-empty-object-tagged-call.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-object-tagged-call.ts"],"names":[],"mappings":"AAoIA,yEAAyE;AACzE,eAAO,MAAM,uBAAuB,oCAiElC,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-hardcoded-route-strings.d.ts","sourceRoot":"","sources":["../../src/rules/no-hardcoded-route-strings.ts"],"names":[],"mappings":"AAmEA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,oCA8DlC,CAAA"}
1
+ {"version":3,"file":"no-hardcoded-route-strings.d.ts","sourceRoot":"","sources":["../../src/rules/no-hardcoded-route-strings.ts"],"names":[],"mappings":"AA0GA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,oCA8DlC,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":"AA8yBA;;;;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-noop-message.d.ts","sourceRoot":"","sources":["../../src/rules/no-noop-message.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,aAAa,oCAmCxB,CAAA"}
1
+ {"version":3,"file":"no-noop-message.d.ts","sourceRoot":"","sources":["../../src/rules/no-noop-message.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,aAAa,oCAsCxB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-raw-dom-event-attributes.d.ts","sourceRoot":"","sources":["../../src/rules/no-raw-dom-event-attributes.ts"],"names":[],"mappings":"AAuLA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,oCA+BlC,CAAA"}
1
+ {"version":3,"file":"no-raw-dom-event-attributes.d.ts","sourceRoot":"","sources":["../../src/rules/no-raw-dom-event-attributes.ts"],"names":[],"mappings":"AAkMA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,oCAkClC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-spread-in-evo.d.ts","sourceRoot":"","sources":["../../src/rules/no-spread-in-evo.ts"],"names":[],"mappings":"AAqFA,6LAA6L;AAC7L,eAAO,MAAM,aAAa,oCA0BxB,CAAA"}
1
+ {"version":3,"file":"no-spread-in-evo.d.ts","sourceRoot":"","sources":["../../src/rules/no-spread-in-evo.ts"],"names":[],"mappings":"AAmHA,6LAA6L;AAC7L,eAAO,MAAM,aAAa,oCA6BxB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"require-rel-for-external-link.d.ts","sourceRoot":"","sources":["../../src/rules/require-rel-for-external-link.ts"],"names":[],"mappings":"AAkDA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,oCAkEpC,CAAA"}
1
+ {"version":3,"file":"require-rel-for-external-link.d.ts","sourceRoot":"","sources":["../../src/rules/require-rel-for-external-link.ts"],"names":[],"mappings":"AA8DA;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,oCAsEpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"selection-submodel-factory-at-module-scope.d.ts","sourceRoot":"","sources":["../../src/rules/selection-submodel-factory-at-module-scope.ts"],"names":[],"mappings":"AA6KA;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,oCA+BhD,CAAA"}
1
+ {"version":3,"file":"selection-submodel-factory-at-module-scope.d.ts","sourceRoot":"","sources":["../../src/rules/selection-submodel-factory-at-module-scope.ts"],"names":[],"mappings":"AA8MA;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,oCAkChD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"wrap-child-output-in-got-message.d.ts","sourceRoot":"","sources":["../../src/rules/wrap-child-output-in-got-message.ts"],"names":[],"mappings":"AA0MA;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,oCA4CtC,CAAA"}
1
+ {"version":3,"file":"wrap-child-output-in-got-message.d.ts","sourceRoot":"","sources":["../../src/rules/wrap-child-output-in-got-message.ts"],"names":[],"mappings":"AAsRA;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,oCAgDtC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/oxlint-plugin",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Oxlint rules for Foldkit applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
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",