@darraghor/eslint-plugin-nestjs-typed 7.1.33 → 7.2.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 +86 -0
- package/dist/index.js +20 -17
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,92 @@ export declare const plugin: TSESLint.FlatConfig.Plugin;
|
|
|
7
7
|
export { classicPlugin };
|
|
8
8
|
export type ConfigArray = EslintLinter.Config[];
|
|
9
9
|
declare const _default: {
|
|
10
|
+
meta: {
|
|
11
|
+
name: string;
|
|
12
|
+
version: string;
|
|
13
|
+
};
|
|
14
|
+
rules: {
|
|
15
|
+
"all-properties-have-explicit-defined": TSESLint.RuleModule<"missing-is-defined-decorator" | "missing-is-optional-decorator" | "conflicting-defined-decorators-defined-optional" | "conflicting-defined-decorators-optional-validate-if" | "conflicting-defined-decorators-all", [{
|
|
16
|
+
additionalDecorators?: string[];
|
|
17
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
20
|
+
"api-property-matches-property-optionality": TSESLint.RuleModule<"shouldUseOptionalDecorator" | "shouldUseRequiredDecorator" | "redundantRequired", [{
|
|
21
|
+
checkRedundantRequired?: boolean;
|
|
22
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
23
|
+
name: string;
|
|
24
|
+
};
|
|
25
|
+
"injectable-should-be-provided": TSESLint.RuleModule<"injectableInModule" | "controllersInModule", [{
|
|
26
|
+
src: string[];
|
|
27
|
+
filterFromPaths: string[];
|
|
28
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
29
|
+
name: string;
|
|
30
|
+
};
|
|
31
|
+
"no-duplicate-decorators": TSESLint.RuleModule<"noDuplicateDecorators", import("./rules/noDuplicateDecorators/noDuplicateDecorators.js").NoDuplicateDecoratorsOptions, unknown, TSESLint.RuleListener> & {
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
"provided-injected-should-match-factory-parameters": TSESLint.RuleModule<"mainMessage", [], unknown, TSESLint.RuleListener> & {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
"controllers-should-supply-api-tags": TSESLint.RuleModule<"shouldUseApiTagDecorator", [], unknown, TSESLint.RuleListener> & {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
"api-method-should-specify-api-response": TSESLint.RuleModule<"shouldSpecifyApiResponse", import("./rules/apiMethodsShouldSpecifyApiResponse/apiMethodsShouldSpecifyApiResponse.js").ApiMethodShouldSpecifyApiResponseOptions, unknown, TSESLint.RuleListener> & {
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
"api-method-should-specify-api-operation": TSESLint.RuleModule<"shouldSpecifyApiOperation", [], unknown, TSESLint.RuleListener> & {
|
|
44
|
+
name: string;
|
|
45
|
+
};
|
|
46
|
+
"api-enum-property-best-practices": TSESLint.RuleModule<"needsEnumAdded" | "needsEnumNameAdded" | "needsTypeRemoved" | "enumNameShouldMatchType", [], unknown, TSESLint.RuleListener> & {
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
49
|
+
"api-property-returning-array-should-set-array": TSESLint.RuleModule<"shouldSetArrayPropertyTrue" | "shouldSetArrayPropertyFalse", [], unknown, TSESLint.RuleListener> & {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
"validation-pipe-should-use-forbid-unknown": TSESLint.RuleModule<"shouldSpecifyForbidUnknownValues", [], unknown, TSESLint.RuleListener> & {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
"param-decorator-name-matches-route-param": TSESLint.RuleModule<"paramIdentifierDoesntNeedColon" | "paramIdentifierShouldMatchRouteOrController" | "paramIdentifierShouldMatchRouteOnly", [{
|
|
56
|
+
shouldCheckController: boolean;
|
|
57
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
58
|
+
name: string;
|
|
59
|
+
};
|
|
60
|
+
"validated-non-primitive-property-needs-type-decorator": TSESLint.RuleModule<"shouldUseTypeDecorator" | "autofixWithTypeDecorator", import("./rules/validateNonPrimitiveNeedsTypeDecorator/validateNonPrimitiveNeedsDecorators.js").ValidateNonPrimitivePropertyTypeDecoratorOptions, unknown, TSESLint.RuleListener> & {
|
|
61
|
+
name: string;
|
|
62
|
+
};
|
|
63
|
+
"validate-nested-of-array-should-set-each": TSESLint.RuleModule<"shouldSetEachPropertyTrue" | "shouldSetEachPropertyFalse", [], unknown, TSESLint.RuleListener> & {
|
|
64
|
+
name: string;
|
|
65
|
+
};
|
|
66
|
+
"all-properties-are-whitelisted": TSESLint.RuleModule<"missing-property-decorator", [{
|
|
67
|
+
additionalDecorators?: string[];
|
|
68
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
69
|
+
name: string;
|
|
70
|
+
};
|
|
71
|
+
"api-methods-should-be-guarded": TSESLint.RuleModule<"apiMethodsShouldBeGuarded", [], unknown, TSESLint.RuleListener> & {
|
|
72
|
+
name: string;
|
|
73
|
+
};
|
|
74
|
+
"sort-module-metadata-arrays": TSESLint.RuleModule<"moduleMetadataArraysAreSorted", import("./rules/sortModuleMetadataArrays/sortModuleMetadataArrays.js").RuleOptions, unknown, TSESLint.RuleListener> & {
|
|
75
|
+
name: string;
|
|
76
|
+
};
|
|
77
|
+
"use-correct-endpoint-naming-convention": TSESLint.RuleModule<"controllerPathShouldBePlural" | "controllerPathShouldBeKebabCase" | "routePathShouldBeKebabCase", [{
|
|
78
|
+
checkPluralization: boolean;
|
|
79
|
+
caseFormat: "kebab-case" | "snake_case" | "camelCase";
|
|
80
|
+
}], unknown, TSESLint.RuleListener> & {
|
|
81
|
+
name: string;
|
|
82
|
+
};
|
|
83
|
+
"use-injectable-provided-token": TSESLint.RuleModule<"useInjectableProvidedToken", [], unknown, TSESLint.RuleListener> & {
|
|
84
|
+
name: string;
|
|
85
|
+
};
|
|
86
|
+
"api-property-should-have-api-extra-models": TSESLint.RuleModule<"shouldUseApiExtraModels", [], unknown, TSESLint.RuleListener> & {
|
|
87
|
+
name: string;
|
|
88
|
+
};
|
|
89
|
+
"api-operation-summary-description-capitalized": TSESLint.RuleModule<"shouldBeCapitalized", [], unknown, TSESLint.RuleListener> & {
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
"use-dependency-injection": TSESLint.RuleModule<"useDependencyInjection", [], unknown, TSESLint.RuleListener> & {
|
|
93
|
+
name: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
10
96
|
plugin: FlatConfig.Plugin;
|
|
11
97
|
configs: {
|
|
12
98
|
flatRecommended: ConfigArray;
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export const parser = {
|
|
|
22
22
|
};
|
|
23
23
|
const classicPlugin = {
|
|
24
24
|
configs: {
|
|
25
|
-
recommended
|
|
25
|
+
recommended,
|
|
26
26
|
"no-swagger": noSwagger,
|
|
27
27
|
},
|
|
28
28
|
rules,
|
|
@@ -44,23 +44,26 @@ const flatBaseConfig = (plugin, parser) => {
|
|
|
44
44
|
};
|
|
45
45
|
// export the classic plugin configs
|
|
46
46
|
export { classicPlugin };
|
|
47
|
+
const flatConfigs = {
|
|
48
|
+
flatRecommended: [
|
|
49
|
+
flatBaseConfig(plugin, parser),
|
|
50
|
+
{
|
|
51
|
+
name: "@darraghor/nestjs-typed/recommended",
|
|
52
|
+
rules: recommended.rules,
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
flatNoSwagger: [
|
|
56
|
+
{
|
|
57
|
+
name: "@darraghor/nestjs-typed/no-swagger",
|
|
58
|
+
rules: noSwagger.rules,
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
};
|
|
47
62
|
// export the flat configs
|
|
48
63
|
export default {
|
|
64
|
+
meta,
|
|
65
|
+
rules,
|
|
49
66
|
plugin,
|
|
50
|
-
configs:
|
|
51
|
-
flatRecommended: [
|
|
52
|
-
flatBaseConfig(plugin, parser),
|
|
53
|
-
{
|
|
54
|
-
name: "@darraghor/nestjs-typed/recommended",
|
|
55
|
-
rules: recommended.rules,
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
flatNoSwagger: [
|
|
59
|
-
{
|
|
60
|
-
name: "@darraghor/nestjs-typed/no-swagger",
|
|
61
|
-
rules: noSwagger.rules,
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
},
|
|
67
|
+
configs: flatConfigs,
|
|
65
68
|
};
|
|
66
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
69
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxTQUFTLE1BQU0sd0JBQXdCLENBQUM7QUFDL0MsT0FBTyxXQUFXLE1BQU0sMEJBQTBCLENBQUM7QUFDbkQsT0FBTyxLQUFLLE1BQU0sa0JBQWtCLENBQUM7QUFFckMsT0FBTyxLQUFLLFVBQVUsTUFBTSwyQkFBMkIsQ0FBQztBQUN4RCxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sS0FBSyxDQUFDO0FBQ2xDLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxJQUFJLENBQUM7QUFDaEMsT0FBTyxFQUFDLE9BQU8sRUFBRSxPQUFPLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFFdEMsZ0VBQWdFO0FBQ2hFLE1BQU0sVUFBVSxHQUFHLGFBQWEsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBQ2xELGdFQUFnRTtBQUNoRSxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUM7QUFDdEMsTUFBTSxFQUFDLElBQUksRUFBRSxPQUFPLEVBQUMsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUM5QixZQUFZLENBQ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S0FBSyxFQUFFLFdBQVcsQ0FBQyxLQUFLO1NBQzNCO0tBQ3NCO0lBQzNCLGFBQWEsRUFBRTtRQUNYO1lBQ0ksSUFBSSxFQUFFLG9DQUFvQztZQUMxQyxLQUFLLEVBQUUsU0FBUyxDQUFDLEtBQUs7U0FDekI7S0FDSjtDQUNKLENBQUM7QUFDRiwwQkFBMEI7QUFDMUIsZUFBZTtJQUNYLElBQUk7SUFDSixLQUFLO0lBQ0wsTUFBTTtJQUNOLE9BQU8sRUFBRSxXQUFXO0NBQ3ZCLENBQUMifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darraghor/eslint-plugin-nestjs-typed",
|
|
3
|
-
"version": "7.1
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Eslint rules for nestjs projects",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -Rf ./dist/",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"ts-api-utils": "2.5.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@commitlint/cli": "
|
|
72
|
-
"@commitlint/config-conventional": "
|
|
73
|
-
"@eslint/js": "
|
|
71
|
+
"@commitlint/cli": "21.0.1",
|
|
72
|
+
"@commitlint/config-conventional": "21.0.1",
|
|
73
|
+
"@eslint/js": "10.0.1",
|
|
74
74
|
"@semantic-release/changelog": "6.0.3",
|
|
75
75
|
"@semantic-release/exec": "7.1.0",
|
|
76
76
|
"@types/eslint": "9.6.1",
|
|
@@ -80,23 +80,23 @@
|
|
|
80
80
|
"@typescript-eslint/parser": "8.59.0",
|
|
81
81
|
"@typescript-eslint/rule-tester": "8.59.0",
|
|
82
82
|
"class-validator": "0.15.1",
|
|
83
|
-
"eslint": "
|
|
83
|
+
"eslint": "10.4.0",
|
|
84
84
|
"eslint-config-prettier": "10.1.8",
|
|
85
85
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
86
|
-
"eslint-plugin-unicorn": "
|
|
86
|
+
"eslint-plugin-unicorn": "64.0.0",
|
|
87
87
|
"globals": "17.6.0",
|
|
88
88
|
"husky": "9.1.7",
|
|
89
89
|
"jest": "30.4.2",
|
|
90
90
|
"jest-create-mock-instance": "2.0.0",
|
|
91
|
-
"jest-junit": "
|
|
92
|
-
"lint-staged": "
|
|
91
|
+
"jest-junit": "17.0.0",
|
|
92
|
+
"lint-staged": "17.0.5",
|
|
93
93
|
"prettier": "3.8.0",
|
|
94
94
|
"semantic-release": "25.0.2",
|
|
95
95
|
"ts-jest": "29.4.6",
|
|
96
96
|
"ts-node": "10.9.2",
|
|
97
97
|
"typescript": "5.9.3",
|
|
98
98
|
"typescript-eslint": "8.59.0",
|
|
99
|
-
"vite": "
|
|
99
|
+
"vite": "8.0.13",
|
|
100
100
|
"vitest": "4.0.16"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|