eslint-plugin-class-validator-type-match 4.1.3 → 4.1.5
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 +129 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,134 @@ declare const _default: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
configs: Record<string, TSESLint.ClassicConfig.Config>;
|
|
32
|
-
flatConfigs:
|
|
32
|
+
flatConfigs: {
|
|
33
|
+
recommended: {
|
|
34
|
+
name: string;
|
|
35
|
+
plugins: {
|
|
36
|
+
'class-validator-type-match': {
|
|
37
|
+
meta: {
|
|
38
|
+
name: string;
|
|
39
|
+
version: string;
|
|
40
|
+
};
|
|
41
|
+
rules: {
|
|
42
|
+
'decorator-type-match': TSESLint.RuleModule<"mismatch" | "enumMismatch" | "invalidEachOption", [], unknown, TSESLint.RuleListener> & {
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
'optional-decorator-match': TSESLint.RuleModule<"missingOptionalDecorator" | "missingOptionalSyntax" | "conflictingDefiniteAssignment" | "undefinedUnionWithoutDecorator" | "undefinedUnionWithoutOptional" | "nullUnionIncorrect" | "redundantUndefinedInType", [{
|
|
46
|
+
strictNullChecks?: boolean;
|
|
47
|
+
checkDefaultValues?: boolean;
|
|
48
|
+
customOptionalDecorators?: string[];
|
|
49
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
'validate-nested-match': TSESLint.RuleModule<"nestedArrayMismatch" | "missingValidateNested" | "missingEachOption" | "unnecessaryValidateNested" | "tupleValidationWarning" | "multiTypeUnionWarning" | "mixedComplexityUnionWarning" | "pickOmitWarning", [], unknown, TSESLint.RuleListener> & {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
'type-decorator-match': TSESLint.RuleModule<"typeMismatch" | "missingTypeDecorator", [], unknown, TSESLint.RuleListener> & {
|
|
56
|
+
name: string;
|
|
57
|
+
};
|
|
58
|
+
'definite-assignment-match': TSESLint.RuleModule<"incorrectDefiniteAssignment", [], unknown, TSESLint.RuleListener> & {
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
'dto-filename-match': TSESLint.RuleModule<"incorrectDtoClassName", [], unknown, TSESLint.RuleListener> & {
|
|
62
|
+
name: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
rules: {
|
|
68
|
+
'class-validator-type-match/decorator-type-match': "error";
|
|
69
|
+
'class-validator-type-match/optional-decorator-match': "error";
|
|
70
|
+
'class-validator-type-match/validate-nested-match': "error";
|
|
71
|
+
'class-validator-type-match/type-decorator-match': "error";
|
|
72
|
+
'class-validator-type-match/definite-assignment-match': "error";
|
|
73
|
+
'class-validator-type-match/dto-filename-match': "error";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
strict: {
|
|
77
|
+
name: string;
|
|
78
|
+
plugins: {
|
|
79
|
+
'class-validator-type-match': {
|
|
80
|
+
meta: {
|
|
81
|
+
name: string;
|
|
82
|
+
version: string;
|
|
83
|
+
};
|
|
84
|
+
rules: {
|
|
85
|
+
'decorator-type-match': TSESLint.RuleModule<"mismatch" | "enumMismatch" | "invalidEachOption", [], unknown, TSESLint.RuleListener> & {
|
|
86
|
+
name: string;
|
|
87
|
+
};
|
|
88
|
+
'optional-decorator-match': TSESLint.RuleModule<"missingOptionalDecorator" | "missingOptionalSyntax" | "conflictingDefiniteAssignment" | "undefinedUnionWithoutDecorator" | "undefinedUnionWithoutOptional" | "nullUnionIncorrect" | "redundantUndefinedInType", [{
|
|
89
|
+
strictNullChecks?: boolean;
|
|
90
|
+
checkDefaultValues?: boolean;
|
|
91
|
+
customOptionalDecorators?: string[];
|
|
92
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
93
|
+
name: string;
|
|
94
|
+
};
|
|
95
|
+
'validate-nested-match': TSESLint.RuleModule<"nestedArrayMismatch" | "missingValidateNested" | "missingEachOption" | "unnecessaryValidateNested" | "tupleValidationWarning" | "multiTypeUnionWarning" | "mixedComplexityUnionWarning" | "pickOmitWarning", [], unknown, TSESLint.RuleListener> & {
|
|
96
|
+
name: string;
|
|
97
|
+
};
|
|
98
|
+
'type-decorator-match': TSESLint.RuleModule<"typeMismatch" | "missingTypeDecorator", [], unknown, TSESLint.RuleListener> & {
|
|
99
|
+
name: string;
|
|
100
|
+
};
|
|
101
|
+
'definite-assignment-match': TSESLint.RuleModule<"incorrectDefiniteAssignment", [], unknown, TSESLint.RuleListener> & {
|
|
102
|
+
name: string;
|
|
103
|
+
};
|
|
104
|
+
'dto-filename-match': TSESLint.RuleModule<"incorrectDtoClassName", [], unknown, TSESLint.RuleListener> & {
|
|
105
|
+
name: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
rules: {
|
|
111
|
+
'class-validator-type-match/decorator-type-match': "error";
|
|
112
|
+
'class-validator-type-match/optional-decorator-match': "error";
|
|
113
|
+
'class-validator-type-match/validate-nested-match': "error";
|
|
114
|
+
'class-validator-type-match/type-decorator-match': "error";
|
|
115
|
+
'class-validator-type-match/definite-assignment-match': "error";
|
|
116
|
+
'class-validator-type-match/dto-filename-match': "error";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
basic: {
|
|
120
|
+
name: string;
|
|
121
|
+
plugins: {
|
|
122
|
+
'class-validator-type-match': {
|
|
123
|
+
meta: {
|
|
124
|
+
name: string;
|
|
125
|
+
version: string;
|
|
126
|
+
};
|
|
127
|
+
rules: {
|
|
128
|
+
'decorator-type-match': TSESLint.RuleModule<"mismatch" | "enumMismatch" | "invalidEachOption", [], unknown, TSESLint.RuleListener> & {
|
|
129
|
+
name: string;
|
|
130
|
+
};
|
|
131
|
+
'optional-decorator-match': TSESLint.RuleModule<"missingOptionalDecorator" | "missingOptionalSyntax" | "conflictingDefiniteAssignment" | "undefinedUnionWithoutDecorator" | "undefinedUnionWithoutOptional" | "nullUnionIncorrect" | "redundantUndefinedInType", [{
|
|
132
|
+
strictNullChecks?: boolean;
|
|
133
|
+
checkDefaultValues?: boolean;
|
|
134
|
+
customOptionalDecorators?: string[];
|
|
135
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
136
|
+
name: string;
|
|
137
|
+
};
|
|
138
|
+
'validate-nested-match': TSESLint.RuleModule<"nestedArrayMismatch" | "missingValidateNested" | "missingEachOption" | "unnecessaryValidateNested" | "tupleValidationWarning" | "multiTypeUnionWarning" | "mixedComplexityUnionWarning" | "pickOmitWarning", [], unknown, TSESLint.RuleListener> & {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
141
|
+
'type-decorator-match': TSESLint.RuleModule<"typeMismatch" | "missingTypeDecorator", [], unknown, TSESLint.RuleListener> & {
|
|
142
|
+
name: string;
|
|
143
|
+
};
|
|
144
|
+
'definite-assignment-match': TSESLint.RuleModule<"incorrectDefiniteAssignment", [], unknown, TSESLint.RuleListener> & {
|
|
145
|
+
name: string;
|
|
146
|
+
};
|
|
147
|
+
'dto-filename-match': TSESLint.RuleModule<"incorrectDtoClassName", [], unknown, TSESLint.RuleListener> & {
|
|
148
|
+
name: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
rules: {
|
|
154
|
+
'class-validator-type-match/decorator-type-match': "error";
|
|
155
|
+
'class-validator-type-match/optional-decorator-match': "error";
|
|
156
|
+
'class-validator-type-match/definite-assignment-match': "error";
|
|
157
|
+
'class-validator-type-match/dto-filename-match': "error";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
33
161
|
};
|
|
34
162
|
export = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-class-validator-type-match",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "ESLint plugin to ensure class-validator decorators match TypeScript type annotations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@typescript-eslint/rule-tester": "8.53.0",
|
|
47
47
|
"@vitest/coverage-v8": "4.0.17",
|
|
48
48
|
"eslint": "9.39.2",
|
|
49
|
-
"globals": "
|
|
49
|
+
"globals": "17.0.0",
|
|
50
50
|
"husky": "9.1.7",
|
|
51
51
|
"lint-staged": "16.2.7",
|
|
52
52
|
"prettier": "3.8.0",
|