eslint-plugin-class-validator-type-match 4.1.0 → 4.1.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/dist/index.d.ts CHANGED
@@ -5,16 +5,28 @@ declare const _default: {
5
5
  version: string;
6
6
  };
7
7
  rules: {
8
- 'decorator-type-match': TSESLint.RuleModule<"mismatch" | "enumMismatch" | "invalidEachOption", [], unknown, TSESLint.RuleListener>;
8
+ 'decorator-type-match': TSESLint.RuleModule<"mismatch" | "enumMismatch" | "invalidEachOption", [], unknown, TSESLint.RuleListener> & {
9
+ name: string;
10
+ };
9
11
  'optional-decorator-match': TSESLint.RuleModule<"missingOptionalDecorator" | "missingOptionalSyntax" | "conflictingDefiniteAssignment" | "undefinedUnionWithoutDecorator" | "undefinedUnionWithoutOptional" | "nullUnionIncorrect" | "redundantUndefinedInType", [{
10
12
  strictNullChecks?: boolean;
11
13
  checkDefaultValues?: boolean;
12
14
  customOptionalDecorators?: string[];
13
- }], unknown, TSESLint.RuleListener>;
14
- 'validate-nested-match': TSESLint.RuleModule<"nestedArrayMismatch" | "missingValidateNested" | "missingEachOption" | "unnecessaryValidateNested" | "tupleValidationWarning" | "multiTypeUnionWarning" | "mixedComplexityUnionWarning" | "pickOmitWarning", [], unknown, TSESLint.RuleListener>;
15
- 'type-decorator-match': TSESLint.RuleModule<"typeMismatch" | "missingTypeDecorator", [], unknown, TSESLint.RuleListener>;
16
- 'definite-assignment-match': TSESLint.RuleModule<"incorrectDefiniteAssignment", [], unknown, TSESLint.RuleListener>;
17
- 'dto-filename-match': TSESLint.RuleModule<"incorrectDtoClassName", [], unknown, TSESLint.RuleListener>;
15
+ }], unknown, TSESLint.RuleListener> & {
16
+ name: string;
17
+ };
18
+ 'validate-nested-match': TSESLint.RuleModule<"nestedArrayMismatch" | "missingValidateNested" | "missingEachOption" | "unnecessaryValidateNested" | "tupleValidationWarning" | "multiTypeUnionWarning" | "mixedComplexityUnionWarning" | "pickOmitWarning", [], unknown, TSESLint.RuleListener> & {
19
+ name: string;
20
+ };
21
+ 'type-decorator-match': TSESLint.RuleModule<"typeMismatch" | "missingTypeDecorator", [], unknown, TSESLint.RuleListener> & {
22
+ name: string;
23
+ };
24
+ 'definite-assignment-match': TSESLint.RuleModule<"incorrectDefiniteAssignment", [], unknown, TSESLint.RuleListener> & {
25
+ name: string;
26
+ };
27
+ 'dto-filename-match': TSESLint.RuleModule<"incorrectDtoClassName", [], unknown, TSESLint.RuleListener> & {
28
+ name: string;
29
+ };
18
30
  };
19
31
  configs: Record<string, TSESLint.ClassicConfig.Config>;
20
32
  flatConfigs: TSESLint.FlatConfig.SharedConfigs;
@@ -46,5 +46,7 @@ type MessageIds = 'mismatch' | 'enumMismatch' | 'invalidEachOption';
46
46
  * name!: string; // Error: { each: true } on non-array type
47
47
  * }
48
48
  */
49
- declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener>;
49
+ declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener> & {
50
+ name: string;
51
+ };
50
52
  export default _default;
@@ -66,5 +66,7 @@ import { ESLintUtils } from '@typescript-eslint/utils';
66
66
  * name!: string | undefined;
67
67
  * }
68
68
  */
69
- declare const _default: ESLintUtils.RuleModule<"incorrectDefiniteAssignment", [], unknown, ESLintUtils.RuleListener>;
69
+ declare const _default: ESLintUtils.RuleModule<"incorrectDefiniteAssignment", [], unknown, ESLintUtils.RuleListener> & {
70
+ name: string;
71
+ };
70
72
  export default _default;
@@ -44,5 +44,7 @@ import { ESLintUtils } from '@typescript-eslint/utils';
44
44
  * filter?: string;
45
45
  * }
46
46
  */
47
- declare const _default: ESLintUtils.RuleModule<"incorrectDtoClassName", [], unknown, ESLintUtils.RuleListener>;
47
+ declare const _default: ESLintUtils.RuleModule<"incorrectDtoClassName", [], unknown, ESLintUtils.RuleListener> & {
48
+ name: string;
49
+ };
48
50
  export default _default;
@@ -71,5 +71,7 @@ type Options = [
71
71
  * value: string | null; // Should be value?: string or value: string | undefined
72
72
  * }
73
73
  */
74
- declare const _default: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>;
74
+ declare const _default: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
75
+ name: string;
76
+ };
75
77
  export default _default;
@@ -39,5 +39,7 @@ type MessageIds = 'typeMismatch' | 'missingTypeDecorator';
39
39
  * address!: Address;
40
40
  * }
41
41
  */
42
- declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener>;
42
+ declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener> & {
43
+ name: string;
44
+ };
43
45
  export default _default;
@@ -46,5 +46,7 @@ type MessageIds = 'nestedArrayMismatch' | 'missingValidateNested' | 'missingEach
46
46
  * tags!: string[];
47
47
  * }
48
48
  */
49
- declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener>;
49
+ declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener> & {
50
+ name: string;
51
+ };
50
52
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-class-validator-type-match",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "ESLint plugin to ensure class-validator decorators match TypeScript type annotations",
5
5
  "keywords": [
6
6
  "eslint",
@@ -32,18 +32,18 @@
32
32
  "prepare": "husky"
33
33
  },
34
34
  "peerDependencies": {
35
- "@typescript-eslint/parser": "8.46.0",
36
- "eslint": "9.37.0"
35
+ "@typescript-eslint/parser": "8.53.0",
36
+ "eslint": "9.39.2"
37
37
  },
38
38
  "dependencies": {
39
- "@typescript-eslint/utils": "8.46.0"
39
+ "@typescript-eslint/utils": "8.53.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@commitlint/cli": "20.3.1",
43
43
  "@commitlint/config-conventional": "20.3.1",
44
44
  "@eslint/js": "9.39.2",
45
45
  "@typescript-eslint/parser": "8.53.0",
46
- "@typescript-eslint/rule-tester": "8.46.0",
46
+ "@typescript-eslint/rule-tester": "8.53.0",
47
47
  "@vitest/coverage-v8": "4.0.17",
48
48
  "eslint": "9.39.2",
49
49
  "globals": "16.5.0",