@sarj/eslint-plugin 2.8.0 → 2.10.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.
package/dist/index.d.cts CHANGED
@@ -235,7 +235,7 @@ declare const rules: {
235
235
  "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
236
236
  name: string;
237
237
  };
238
- "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
238
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog" | "noRawBodyInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
239
239
  name: string;
240
240
  };
241
241
  "no-unsafe-cast": _typescript_eslint_utils_ts_eslint.RuleModule<"asAny" | "doubleCast", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -290,6 +290,16 @@ declare const rules: {
290
290
  "no-storage-in-stateless-modules": _typescript_eslint_utils_ts_eslint.RuleModule<"storageInStatelessModule", readonly [RuleOptions$2?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
291
291
  name: string;
292
292
  };
293
+ "no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
294
+ name: string;
295
+ };
296
+ "prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
297
+ minElements?: number;
298
+ checkRegex?: boolean;
299
+ ignoreTestFiles?: boolean;
300
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
301
+ name: string;
302
+ };
293
303
  };
294
304
  declare const plugin: {
295
305
  meta: {
@@ -367,7 +377,7 @@ declare const plugin: {
367
377
  "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
368
378
  name: string;
369
379
  };
370
- "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
380
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog" | "noRawBodyInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
371
381
  name: string;
372
382
  };
373
383
  "no-unsafe-cast": _typescript_eslint_utils_ts_eslint.RuleModule<"asAny" | "doubleCast", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -422,6 +432,16 @@ declare const plugin: {
422
432
  "no-storage-in-stateless-modules": _typescript_eslint_utils_ts_eslint.RuleModule<"storageInStatelessModule", readonly [RuleOptions$2?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
423
433
  name: string;
424
434
  };
435
+ "no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
436
+ name: string;
437
+ };
438
+ "prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
439
+ minElements?: number;
440
+ checkRegex?: boolean;
441
+ ignoreTestFiles?: boolean;
442
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
443
+ name: string;
444
+ };
425
445
  };
426
446
  configs: {
427
447
  recommended: {
@@ -461,6 +481,8 @@ declare const plugin: {
461
481
  "@sarj/no-repeated-string-literal": string;
462
482
  "@sarj/no-positional-tuple-return": string;
463
483
  "@sarj/no-dynamic-sql": string;
484
+ "@sarj/no-zod-native-enum": string;
485
+ "@sarj/prefer-module-level-constant": string;
464
486
  };
465
487
  };
466
488
  strict: {
@@ -505,6 +527,8 @@ declare const plugin: {
505
527
  "@sarj/no-dynamic-sql": string;
506
528
  "@sarj/no-raw-fetch-outside-clients": string;
507
529
  "@sarj/no-storage-in-stateless-modules": string;
530
+ "@sarj/no-zod-native-enum": string;
531
+ "@sarj/prefer-module-level-constant": string;
508
532
  };
509
533
  };
510
534
  };
package/dist/index.d.ts CHANGED
@@ -235,7 +235,7 @@ declare const rules: {
235
235
  "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
236
236
  name: string;
237
237
  };
238
- "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
238
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog" | "noRawBodyInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
239
239
  name: string;
240
240
  };
241
241
  "no-unsafe-cast": _typescript_eslint_utils_ts_eslint.RuleModule<"asAny" | "doubleCast", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -290,6 +290,16 @@ declare const rules: {
290
290
  "no-storage-in-stateless-modules": _typescript_eslint_utils_ts_eslint.RuleModule<"storageInStatelessModule", readonly [RuleOptions$2?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
291
291
  name: string;
292
292
  };
293
+ "no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
294
+ name: string;
295
+ };
296
+ "prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
297
+ minElements?: number;
298
+ checkRegex?: boolean;
299
+ ignoreTestFiles?: boolean;
300
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
301
+ name: string;
302
+ };
293
303
  };
294
304
  declare const plugin: {
295
305
  meta: {
@@ -367,7 +377,7 @@ declare const plugin: {
367
377
  "no-fat-try-blocks": _typescript_eslint_utils_ts_eslint.RuleModule<"fatTryBlock", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
368
378
  name: string;
369
379
  };
370
- "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
380
+ "no-secret-in-log": _typescript_eslint_utils_ts_eslint.RuleModule<"noSecretInLog" | "noRawBodyInLog", readonly [LoggingOptions?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
371
381
  name: string;
372
382
  };
373
383
  "no-unsafe-cast": _typescript_eslint_utils_ts_eslint.RuleModule<"asAny" | "doubleCast", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
@@ -422,6 +432,16 @@ declare const plugin: {
422
432
  "no-storage-in-stateless-modules": _typescript_eslint_utils_ts_eslint.RuleModule<"storageInStatelessModule", readonly [RuleOptions$2?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
423
433
  name: string;
424
434
  };
435
+ "no-zod-native-enum": _typescript_eslint_utils_ts_eslint.RuleModule<"nativeEnum" | "enumOfTsEnum", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
436
+ name: string;
437
+ };
438
+ "prefer-module-level-constant": _typescript_eslint_utils_ts_eslint.RuleModule<"hoistCollection" | "hoistRegex", readonly [{
439
+ minElements?: number;
440
+ checkRegex?: boolean;
441
+ ignoreTestFiles?: boolean;
442
+ }?], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
443
+ name: string;
444
+ };
425
445
  };
426
446
  configs: {
427
447
  recommended: {
@@ -461,6 +481,8 @@ declare const plugin: {
461
481
  "@sarj/no-repeated-string-literal": string;
462
482
  "@sarj/no-positional-tuple-return": string;
463
483
  "@sarj/no-dynamic-sql": string;
484
+ "@sarj/no-zod-native-enum": string;
485
+ "@sarj/prefer-module-level-constant": string;
464
486
  };
465
487
  };
466
488
  strict: {
@@ -505,6 +527,8 @@ declare const plugin: {
505
527
  "@sarj/no-dynamic-sql": string;
506
528
  "@sarj/no-raw-fetch-outside-clients": string;
507
529
  "@sarj/no-storage-in-stateless-modules": string;
530
+ "@sarj/no-zod-native-enum": string;
531
+ "@sarj/prefer-module-level-constant": string;
508
532
  };
509
533
  };
510
534
  };