@noctcore/eslint-plugin-contracts 0.6.1 → 0.7.1
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/README.md +74 -32
- package/dist/index.cjs +330 -34
- package/dist/index.d.cts +36 -26
- package/dist/index.d.ts +36 -26
- package/dist/index.js +331 -35
- package/docs/rules/env-var-schema-parity.md +10 -2
- package/docs/rules/fetch-must-check-ok.md +18 -6
- package/docs/rules/money-must-be-decimal.md +14 -5
- package/docs/rules/no-direct-process-env.md +10 -2
- package/docs/rules/no-error-stringify.md +10 -0
- package/docs/rules/require-error-cause.md +17 -13
- package/docs/rules/require-registered-keys.md +13 -4
- package/docs/rules/require-schema-parse-at-boundary.md +101 -7
- package/docs/rules/restrict-throw-to-taxonomy.md +10 -4
- package/docs/rules/schema-enum-field-consistency.md +14 -0
- package/docs/rules/translation-key-exists.md +14 -10
- package/docs/rules/wire-message-naming.md +9 -1
- package/docs/rules/zod-schema-naming.md +10 -0
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
import * as _noctcore_eslint_utils from '@noctcore/eslint-utils';
|
|
2
3
|
import { TSESTree, TSESLint } from '@typescript-eslint/utils';
|
|
3
4
|
|
|
4
5
|
interface FetchMustCheckOkOptions {
|
|
@@ -21,6 +22,15 @@ interface SchemaEnumFieldConsistencyOptions {
|
|
|
21
22
|
readonly enumIdentifierPattern?: string;
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
interface RequireSchemaParseAtBoundaryOptions {
|
|
26
|
+
/**
|
|
27
|
+
* Extra callees whose result is boundary data: a bare name (`readBody`) or a
|
|
28
|
+
* dotted path (`ipcRenderer.invoke`). `readBody(event) as T` and
|
|
29
|
+
* `(await readBody(event)) as T` are then flagged like `JSON.parse`. Default `[]`.
|
|
30
|
+
*/
|
|
31
|
+
readonly boundaries?: readonly string[];
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
interface EnvVarSchemaParityOptions {
|
|
25
35
|
/** Path to the env declaration source — a `.env.example` or a zod-env module. Empty = rule is inert. */
|
|
26
36
|
readonly schema?: string;
|
|
@@ -247,43 +257,43 @@ declare function translationSettingsOf(options: TranslationKeyExistsOptions): Tr
|
|
|
247
257
|
|
|
248
258
|
/** Every rule this plugin exposes, keyed by its (unprefixed) rule id. */
|
|
249
259
|
declare const rules: {
|
|
250
|
-
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions],
|
|
260
|
+
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
251
261
|
name: string;
|
|
252
262
|
};
|
|
253
|
-
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions],
|
|
263
|
+
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
254
264
|
name: string;
|
|
255
265
|
};
|
|
256
|
-
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions],
|
|
266
|
+
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
257
267
|
name: string;
|
|
258
268
|
};
|
|
259
|
-
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions],
|
|
269
|
+
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
260
270
|
name: string;
|
|
261
271
|
};
|
|
262
|
-
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions],
|
|
272
|
+
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
263
273
|
name: string;
|
|
264
274
|
};
|
|
265
|
-
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [],
|
|
275
|
+
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
266
276
|
name: string;
|
|
267
277
|
};
|
|
268
|
-
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions],
|
|
278
|
+
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
269
279
|
name: string;
|
|
270
280
|
};
|
|
271
|
-
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions],
|
|
281
|
+
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
272
282
|
name: string;
|
|
273
283
|
};
|
|
274
|
-
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions],
|
|
284
|
+
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
275
285
|
name: string;
|
|
276
286
|
};
|
|
277
|
-
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [],
|
|
287
|
+
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [RequireSchemaParseAtBoundaryOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
278
288
|
name: string;
|
|
279
289
|
};
|
|
280
|
-
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions],
|
|
290
|
+
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
281
291
|
name: string;
|
|
282
292
|
};
|
|
283
|
-
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions],
|
|
293
|
+
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
284
294
|
name: string;
|
|
285
295
|
};
|
|
286
|
-
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions],
|
|
296
|
+
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
297
|
name: string;
|
|
288
298
|
};
|
|
289
299
|
};
|
|
@@ -294,43 +304,43 @@ declare const plugin: {
|
|
|
294
304
|
version: string;
|
|
295
305
|
};
|
|
296
306
|
rules: {
|
|
297
|
-
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions],
|
|
307
|
+
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
298
308
|
name: string;
|
|
299
309
|
};
|
|
300
|
-
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions],
|
|
310
|
+
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
301
311
|
name: string;
|
|
302
312
|
};
|
|
303
|
-
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions],
|
|
313
|
+
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
304
314
|
name: string;
|
|
305
315
|
};
|
|
306
|
-
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions],
|
|
316
|
+
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
307
317
|
name: string;
|
|
308
318
|
};
|
|
309
|
-
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions],
|
|
319
|
+
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
310
320
|
name: string;
|
|
311
321
|
};
|
|
312
|
-
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [],
|
|
322
|
+
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
313
323
|
name: string;
|
|
314
324
|
};
|
|
315
|
-
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions],
|
|
325
|
+
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
316
326
|
name: string;
|
|
317
327
|
};
|
|
318
|
-
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions],
|
|
328
|
+
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
319
329
|
name: string;
|
|
320
330
|
};
|
|
321
|
-
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions],
|
|
331
|
+
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
322
332
|
name: string;
|
|
323
333
|
};
|
|
324
|
-
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [],
|
|
334
|
+
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [RequireSchemaParseAtBoundaryOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
325
335
|
name: string;
|
|
326
336
|
};
|
|
327
|
-
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions],
|
|
337
|
+
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
328
338
|
name: string;
|
|
329
339
|
};
|
|
330
|
-
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions],
|
|
340
|
+
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
331
341
|
name: string;
|
|
332
342
|
};
|
|
333
|
-
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions],
|
|
343
|
+
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
334
344
|
name: string;
|
|
335
345
|
};
|
|
336
346
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
|
+
import * as _noctcore_eslint_utils from '@noctcore/eslint-utils';
|
|
2
3
|
import { TSESTree, TSESLint } from '@typescript-eslint/utils';
|
|
3
4
|
|
|
4
5
|
interface FetchMustCheckOkOptions {
|
|
@@ -21,6 +22,15 @@ interface SchemaEnumFieldConsistencyOptions {
|
|
|
21
22
|
readonly enumIdentifierPattern?: string;
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
interface RequireSchemaParseAtBoundaryOptions {
|
|
26
|
+
/**
|
|
27
|
+
* Extra callees whose result is boundary data: a bare name (`readBody`) or a
|
|
28
|
+
* dotted path (`ipcRenderer.invoke`). `readBody(event) as T` and
|
|
29
|
+
* `(await readBody(event)) as T` are then flagged like `JSON.parse`. Default `[]`.
|
|
30
|
+
*/
|
|
31
|
+
readonly boundaries?: readonly string[];
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
interface EnvVarSchemaParityOptions {
|
|
25
35
|
/** Path to the env declaration source — a `.env.example` or a zod-env module. Empty = rule is inert. */
|
|
26
36
|
readonly schema?: string;
|
|
@@ -247,43 +257,43 @@ declare function translationSettingsOf(options: TranslationKeyExistsOptions): Tr
|
|
|
247
257
|
|
|
248
258
|
/** Every rule this plugin exposes, keyed by its (unprefixed) rule id. */
|
|
249
259
|
declare const rules: {
|
|
250
|
-
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions],
|
|
260
|
+
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
251
261
|
name: string;
|
|
252
262
|
};
|
|
253
|
-
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions],
|
|
263
|
+
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
254
264
|
name: string;
|
|
255
265
|
};
|
|
256
|
-
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions],
|
|
266
|
+
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
257
267
|
name: string;
|
|
258
268
|
};
|
|
259
|
-
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions],
|
|
269
|
+
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
260
270
|
name: string;
|
|
261
271
|
};
|
|
262
|
-
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions],
|
|
272
|
+
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
263
273
|
name: string;
|
|
264
274
|
};
|
|
265
|
-
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [],
|
|
275
|
+
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
266
276
|
name: string;
|
|
267
277
|
};
|
|
268
|
-
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions],
|
|
278
|
+
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
269
279
|
name: string;
|
|
270
280
|
};
|
|
271
|
-
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions],
|
|
281
|
+
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
272
282
|
name: string;
|
|
273
283
|
};
|
|
274
|
-
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions],
|
|
284
|
+
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
275
285
|
name: string;
|
|
276
286
|
};
|
|
277
|
-
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [],
|
|
287
|
+
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [RequireSchemaParseAtBoundaryOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
278
288
|
name: string;
|
|
279
289
|
};
|
|
280
|
-
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions],
|
|
290
|
+
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
281
291
|
name: string;
|
|
282
292
|
};
|
|
283
|
-
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions],
|
|
293
|
+
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
284
294
|
name: string;
|
|
285
295
|
};
|
|
286
|
-
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions],
|
|
296
|
+
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
287
297
|
name: string;
|
|
288
298
|
};
|
|
289
299
|
};
|
|
@@ -294,43 +304,43 @@ declare const plugin: {
|
|
|
294
304
|
version: string;
|
|
295
305
|
};
|
|
296
306
|
rules: {
|
|
297
|
-
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions],
|
|
307
|
+
'zod-schema-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"schemaNaming" | "missingType", [ZodSchemaNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
298
308
|
name: string;
|
|
299
309
|
};
|
|
300
|
-
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions],
|
|
310
|
+
'wire-message-naming': _typescript_eslint_utils_ts_eslint.RuleModule<"typeMismatch", [WireMessageNamingOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
301
311
|
name: string;
|
|
302
312
|
};
|
|
303
|
-
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions],
|
|
313
|
+
'no-error-stringify': _typescript_eslint_utils_ts_eslint.RuleModule<"noErrorStringify", [NoErrorStringifyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
304
314
|
name: string;
|
|
305
315
|
};
|
|
306
|
-
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions],
|
|
316
|
+
'no-direct-process-env': _typescript_eslint_utils_ts_eslint.RuleModule<"directProcessEnv", [NoDirectProcessEnvOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
307
317
|
name: string;
|
|
308
318
|
};
|
|
309
|
-
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions],
|
|
319
|
+
'money-must-be-decimal': _typescript_eslint_utils_ts_eslint.RuleModule<"moneyMustBeDecimal", [MoneyMustBeDecimalOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
310
320
|
name: string;
|
|
311
321
|
};
|
|
312
|
-
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [],
|
|
322
|
+
'require-error-cause': _typescript_eslint_utils_ts_eslint.RuleModule<"missingCause", [], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
313
323
|
name: string;
|
|
314
324
|
};
|
|
315
|
-
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions],
|
|
325
|
+
'restrict-throw-to-taxonomy': _typescript_eslint_utils_ts_eslint.RuleModule<"disallowedErrorClass" | "nonErrorThrow", [RestrictThrowToTaxonomyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
316
326
|
name: string;
|
|
317
327
|
};
|
|
318
|
-
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions],
|
|
328
|
+
'require-registered-keys': _typescript_eslint_utils_ts_eslint.RuleModule<"unregisteredKey", [RequireRegisteredKeysOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
319
329
|
name: string;
|
|
320
330
|
};
|
|
321
|
-
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions],
|
|
331
|
+
'env-var-schema-parity': _typescript_eslint_utils_ts_eslint.RuleModule<"undeclaredEnvVar", [EnvVarSchemaParityOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
322
332
|
name: string;
|
|
323
333
|
};
|
|
324
|
-
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [],
|
|
334
|
+
'require-schema-parse-at-boundary': _typescript_eslint_utils_ts_eslint.RuleModule<"castedBoundaryData", [RequireSchemaParseAtBoundaryOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
325
335
|
name: string;
|
|
326
336
|
};
|
|
327
|
-
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions],
|
|
337
|
+
'schema-enum-field-consistency': _typescript_eslint_utils_ts_eslint.RuleModule<"widenedEnumField", [SchemaEnumFieldConsistencyOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
328
338
|
name: string;
|
|
329
339
|
};
|
|
330
|
-
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions],
|
|
340
|
+
'fetch-must-check-ok': _typescript_eslint_utils_ts_eslint.RuleModule<"missingOkCheck", [FetchMustCheckOkOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
331
341
|
name: string;
|
|
332
342
|
};
|
|
333
|
-
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions],
|
|
343
|
+
'translation-key-exists': _typescript_eslint_utils_ts_eslint.RuleModule<"missingKey" | "missingKeyPrefix" | "unknownNamespace" | "catalogUnreadable", [TranslationKeyExistsOptions], _noctcore_eslint_utils.NoctcoreRuleDocs, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
|
334
344
|
name: string;
|
|
335
345
|
};
|
|
336
346
|
};
|