@sarj/eslint-plugin 15.17.17 → 15.17.18

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.cjs CHANGED
@@ -54,32 +54,32 @@ var LIBRARY_POLICY = [
54
54
  {
55
55
  "id": "LIB101",
56
56
  "module": "request",
57
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
58
- "replacement": "ky"
57
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
58
+ "replacement": "native fetch"
59
59
  },
60
60
  {
61
61
  "id": "LIB101",
62
62
  "module": "node-fetch",
63
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
64
- "replacement": "ky"
63
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
64
+ "replacement": "native fetch"
65
65
  },
66
66
  {
67
67
  "id": "LIB101",
68
68
  "module": "cross-fetch",
69
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
70
- "replacement": "ky"
69
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
70
+ "replacement": "native fetch"
71
71
  },
72
72
  {
73
73
  "id": "LIB101",
74
74
  "module": "isomorphic-fetch",
75
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
76
- "replacement": "ky"
75
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
76
+ "replacement": "native fetch"
77
77
  },
78
78
  {
79
79
  "id": "LIB101",
80
80
  "module": "axios",
81
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
82
- "replacement": "ky"
81
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
82
+ "replacement": "native fetch"
83
83
  },
84
84
  {
85
85
  "id": "LIB102",
@@ -21434,7 +21434,7 @@ var RULES = {
21434
21434
  };
21435
21435
  var meta = {
21436
21436
  name: "@sarj/eslint-plugin",
21437
- version: "15.17.17"
21437
+ version: "15.17.18"
21438
21438
  };
21439
21439
  var APPLICATION_ONLY_RULES = [];
21440
21440
  var LIBRARY_IMPORT_POLICY = ["error", {
package/dist/index.d.cts CHANGED
@@ -330,39 +330,39 @@ declare const RECOMMENDED_RULES: {
330
330
  readonly "no-restricted-imports": readonly ["error", {
331
331
  readonly paths: {
332
332
  name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
333
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
333
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
334
334
  }[];
335
335
  readonly patterns: {
336
336
  group: string[];
337
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
337
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
338
338
  }[];
339
339
  }];
340
340
  readonly "@sarj/no-restricted-library-load": readonly ["error", {
341
341
  readonly libraries: readonly [{
342
342
  readonly id: "LIB101";
343
343
  readonly module: "request";
344
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
345
- readonly replacement: "ky";
344
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
345
+ readonly replacement: "native fetch";
346
346
  }, {
347
347
  readonly id: "LIB101";
348
348
  readonly module: "node-fetch";
349
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
350
- readonly replacement: "ky";
349
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
350
+ readonly replacement: "native fetch";
351
351
  }, {
352
352
  readonly id: "LIB101";
353
353
  readonly module: "cross-fetch";
354
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
355
- readonly replacement: "ky";
354
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
355
+ readonly replacement: "native fetch";
356
356
  }, {
357
357
  readonly id: "LIB101";
358
358
  readonly module: "isomorphic-fetch";
359
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
360
- readonly replacement: "ky";
359
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
360
+ readonly replacement: "native fetch";
361
361
  }, {
362
362
  readonly id: "LIB101";
363
363
  readonly module: "axios";
364
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
365
- readonly replacement: "ky";
364
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
365
+ readonly replacement: "native fetch";
366
366
  }, {
367
367
  readonly id: "LIB102";
368
368
  readonly module: "moment";
@@ -615,39 +615,39 @@ declare const STRICT_RULES: {
615
615
  readonly "no-restricted-imports": readonly ["error", {
616
616
  readonly paths: {
617
617
  name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
618
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
618
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
619
619
  }[];
620
620
  readonly patterns: {
621
621
  group: string[];
622
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
622
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
623
623
  }[];
624
624
  }];
625
625
  readonly "@sarj/no-restricted-library-load": readonly ["error", {
626
626
  readonly libraries: readonly [{
627
627
  readonly id: "LIB101";
628
628
  readonly module: "request";
629
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
630
- readonly replacement: "ky";
629
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
630
+ readonly replacement: "native fetch";
631
631
  }, {
632
632
  readonly id: "LIB101";
633
633
  readonly module: "node-fetch";
634
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
635
- readonly replacement: "ky";
634
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
635
+ readonly replacement: "native fetch";
636
636
  }, {
637
637
  readonly id: "LIB101";
638
638
  readonly module: "cross-fetch";
639
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
640
- readonly replacement: "ky";
639
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
640
+ readonly replacement: "native fetch";
641
641
  }, {
642
642
  readonly id: "LIB101";
643
643
  readonly module: "isomorphic-fetch";
644
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
645
- readonly replacement: "ky";
644
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
645
+ readonly replacement: "native fetch";
646
646
  }, {
647
647
  readonly id: "LIB101";
648
648
  readonly module: "axios";
649
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
650
- readonly replacement: "ky";
649
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
650
+ readonly replacement: "native fetch";
651
651
  }, {
652
652
  readonly id: "LIB102";
653
653
  readonly module: "moment";
@@ -908,7 +908,7 @@ type FlatPreset = {
908
908
  declare const PLUGIN: {
909
909
  readonly meta: {
910
910
  readonly name: "@sarj/eslint-plugin";
911
- readonly version: "15.17.17";
911
+ readonly version: "15.17.18";
912
912
  };
913
913
  readonly rules: {
914
914
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
package/dist/index.d.ts CHANGED
@@ -330,39 +330,39 @@ declare const RECOMMENDED_RULES: {
330
330
  readonly "no-restricted-imports": readonly ["error", {
331
331
  readonly paths: {
332
332
  name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
333
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
333
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
334
334
  }[];
335
335
  readonly patterns: {
336
336
  group: string[];
337
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
337
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
338
338
  }[];
339
339
  }];
340
340
  readonly "@sarj/no-restricted-library-load": readonly ["error", {
341
341
  readonly libraries: readonly [{
342
342
  readonly id: "LIB101";
343
343
  readonly module: "request";
344
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
345
- readonly replacement: "ky";
344
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
345
+ readonly replacement: "native fetch";
346
346
  }, {
347
347
  readonly id: "LIB101";
348
348
  readonly module: "node-fetch";
349
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
350
- readonly replacement: "ky";
349
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
350
+ readonly replacement: "native fetch";
351
351
  }, {
352
352
  readonly id: "LIB101";
353
353
  readonly module: "cross-fetch";
354
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
355
- readonly replacement: "ky";
354
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
355
+ readonly replacement: "native fetch";
356
356
  }, {
357
357
  readonly id: "LIB101";
358
358
  readonly module: "isomorphic-fetch";
359
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
360
- readonly replacement: "ky";
359
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
360
+ readonly replacement: "native fetch";
361
361
  }, {
362
362
  readonly id: "LIB101";
363
363
  readonly module: "axios";
364
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
365
- readonly replacement: "ky";
364
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
365
+ readonly replacement: "native fetch";
366
366
  }, {
367
367
  readonly id: "LIB102";
368
368
  readonly module: "moment";
@@ -615,39 +615,39 @@ declare const STRICT_RULES: {
615
615
  readonly "no-restricted-imports": readonly ["error", {
616
616
  readonly paths: {
617
617
  name: "request" | "node-fetch" | "cross-fetch" | "isomorphic-fetch" | "axios" | "moment" | "dayjs" | "lodash" | "lodash-es" | "underscore" | "classnames" | "joi" | "yup" | "superstruct" | "io-ts" | "runtypes" | "jsonwebtoken" | "express" | "koa" | "jest" | "mocha" | "sinon" | "commander" | "yargs" | "bluebird" | "rimraf" | "fs-extra" | "abort-controller" | "querystring" | "dotenv" | "chalk" | "faker" | "node-sass" | "tslint";
618
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
618
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
619
619
  }[];
620
620
  readonly patterns: {
621
621
  group: string[];
622
- message: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
622
+ message: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration." | "Standards standardizes date utilities on date-fns; migration is not API-compatible." | "Standards standardizes collection utilities on Remeda and native APIs." | "Use clsx for conditional class-name composition." | "Standards standardizes runtime validation on Zod; schemas are not drop-in compatible." | "Use jose; review key formats and async signing and verification APIs." | "Standards standardizes servers on Hono; Node deployments also need @hono/node-server." | "Standards standardizes tests on Vitest; review globals, timers, mocks, and environment setup." | "Use Vitest spies, mocks, and fake timers instead of Sinon." | "Standards standardizes command-line interfaces on citty." | "Use native Promise, adding p-limit or p-map only for the extensions actually needed." | "Prefer node:fs/promises; verify recursive removal, copy, path, and error semantics." | "Node 22 provides global AbortController." | "Use URLSearchParams and explicitly review repeated keys, escaping, arrays, and object coercion." | "Standards standardizes environment loading on @dotenvx/dotenvx." | "Use picocolors for terminal colors." | "The original faker package is abandoned; use @faker-js/faker." | "node-sass is end-of-life; use Dart Sass." | "TSLint is deprecated; use ESLint with typescript-eslint.";
623
623
  }[];
624
624
  }];
625
625
  readonly "@sarj/no-restricted-library-load": readonly ["error", {
626
626
  readonly libraries: readonly [{
627
627
  readonly id: "LIB101";
628
628
  readonly module: "request";
629
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
630
- readonly replacement: "ky";
629
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
630
+ readonly replacement: "native fetch";
631
631
  }, {
632
632
  readonly id: "LIB101";
633
633
  readonly module: "node-fetch";
634
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
635
- readonly replacement: "ky";
634
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
635
+ readonly replacement: "native fetch";
636
636
  }, {
637
637
  readonly id: "LIB101";
638
638
  readonly module: "cross-fetch";
639
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
640
- readonly replacement: "ky";
639
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
640
+ readonly replacement: "native fetch";
641
641
  }, {
642
642
  readonly id: "LIB101";
643
643
  readonly module: "isomorphic-fetch";
644
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
645
- readonly replacement: "ky";
644
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
645
+ readonly replacement: "native fetch";
646
646
  }, {
647
647
  readonly id: "LIB101";
648
648
  readonly module: "axios";
649
- readonly note: "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.";
650
- readonly replacement: "ky";
649
+ readonly note: "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.";
650
+ readonly replacement: "native fetch";
651
651
  }, {
652
652
  readonly id: "LIB102";
653
653
  readonly module: "moment";
@@ -908,7 +908,7 @@ type FlatPreset = {
908
908
  declare const PLUGIN: {
909
909
  readonly meta: {
910
910
  readonly name: "@sarj/eslint-plugin";
911
- readonly version: "15.17.17";
911
+ readonly version: "15.17.18";
912
912
  };
913
913
  readonly rules: {
914
914
  readonly "excessive-commentary": DocumentedRule<readonly [], "excessive">;
package/dist/index.js CHANGED
@@ -3,32 +3,32 @@ var LIBRARY_POLICY = [
3
3
  {
4
4
  "id": "LIB101",
5
5
  "module": "request",
6
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
7
- "replacement": "ky"
6
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
7
+ "replacement": "native fetch"
8
8
  },
9
9
  {
10
10
  "id": "LIB101",
11
11
  "module": "node-fetch",
12
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
13
- "replacement": "ky"
12
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
13
+ "replacement": "native fetch"
14
14
  },
15
15
  {
16
16
  "id": "LIB101",
17
17
  "module": "cross-fetch",
18
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
19
- "replacement": "ky"
18
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
19
+ "replacement": "native fetch"
20
20
  },
21
21
  {
22
22
  "id": "LIB101",
23
23
  "module": "isomorphic-fetch",
24
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
25
- "replacement": "ky"
24
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
25
+ "replacement": "native fetch"
26
26
  },
27
27
  {
28
28
  "id": "LIB101",
29
29
  "module": "axios",
30
- "note": "Standards standardizes HTTP clients on Ky; review errors, retries, hooks, and response parsing.",
31
- "replacement": "ky"
30
+ "note": "Use the platform-native fetch API; review errors, timeouts, retries, and response parsing during migration.",
31
+ "replacement": "native fetch"
32
32
  },
33
33
  {
34
34
  "id": "LIB102",
@@ -21443,7 +21443,7 @@ var RULES = {
21443
21443
  };
21444
21444
  var meta = {
21445
21445
  name: "@sarj/eslint-plugin",
21446
- version: "15.17.17"
21446
+ version: "15.17.18"
21447
21447
  };
21448
21448
  var APPLICATION_ONLY_RULES = [];
21449
21449
  var LIBRARY_IMPORT_POLICY = ["error", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarj/eslint-plugin",
3
- "version": "15.17.17",
3
+ "version": "15.17.18",
4
4
  "packageManager": "npm@12.0.2",
5
5
  "description": "Custom ESLint rules for hypermodern TypeScript / React / Next.js projects",
6
6
  "type": "module",