@alint-js/plugin-simplicity 0.0.24 → 0.0.27

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/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { RuleContext, SourceLocation, SourceRange } from "@alint-js/core";
2
2
  import { AgentTool } from "@alint-js/core/agent";
3
3
  import { InferOutput } from "valibot";
4
-
5
4
  //#region src/extract/types.d.ts
6
5
  interface CallSite {
7
6
  /** The last segment only: `a.b.helper()` and `helper()` both yield `helper`. */
@@ -175,7 +174,8 @@ declare const needlessHelperRule: import("@alint-js/core").RuleDefinition;
175
174
  //#endregion
176
175
  //#region src/rules/shared/settings.d.ts
177
176
  declare const settingsSchema: import("valibot").ObjectSchema<{
178
- readonly cache: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, true>; /** Globs matched against the repository-relative file path. */
177
+ readonly cache: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, true>;
178
+ /** Globs matched against the repository-relative file path. */
179
179
  readonly ignores: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
180
180
  /**
181
181
  * When false, no model is called: `no-duplicated-helper` still reports what a fingerprint settles,
package/dist/index.mjs CHANGED
@@ -1234,7 +1234,8 @@ async function judge(ctx, filePath, candidates, cacheEnabled) {
1234
1234
  metering: ctx.metering,
1235
1235
  model: await ctx.model(),
1236
1236
  operation: "no-needless-helper-judge",
1237
- schema: needlessHelperResponseSchema
1237
+ schema: needlessHelperResponseSchema,
1238
+ signal: ctx.signal
1238
1239
  }));
1239
1240
  } catch (error) {
1240
1241
  ctx.logger.debug(`no-needless-helper: could not judge ${filePath}: ${errorMessageFrom(error) ?? "unknown error"}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alint-js/plugin-simplicity",
3
3
  "type": "module",
4
- "version": "0.0.24",
4
+ "version": "0.0.27",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.mts",
@@ -17,15 +17,15 @@
17
17
  "minimatch": "^10.2.5",
18
18
  "pathe": "^2.0.3",
19
19
  "tree-sitter-wasms": "^0.1.13",
20
- "valibot": "^1.4.1",
20
+ "valibot": "^1.4.2",
21
21
  "web-tree-sitter": "^0.24.7",
22
- "@alint-js/core": "0.0.24",
23
- "@alint-js/tools-fs": "0.0.24"
22
+ "@alint-js/core": "0.0.27",
23
+ "@alint-js/tools-fs": "0.0.27"
24
24
  },
25
25
  "devDependencies": {
26
- "tsdown": "^0.22.3",
26
+ "tsdown": "^0.22.8",
27
27
  "typescript": "^6.0.3",
28
- "@alint-js/agent-apeira": "0.0.24"
28
+ "@alint-js/agent-apeira": "0.0.27"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "tsdown",