eslint-cdk-plugin 3.4.5 → 3.4.7
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/bin/index.mjs +4318 -0
- package/bin/prompt-DVcPfS2N.mjs +847 -0
- package/dist/index.cjs +3613 -6319
- package/dist/index.d.cts +25 -42
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +25 -42
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3612 -6318
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,67 +1,50 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint27 from "@typescript-eslint/utils/ts-eslint";
|
|
2
|
+
import { FlatConfig } from "@typescript-eslint/utils/ts-eslint";
|
|
3
3
|
import * as eslint0 from "eslint";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/index.d.ts
|
|
6
6
|
declare const configs: {
|
|
7
7
|
recommended: {
|
|
8
|
-
languageOptions:
|
|
9
|
-
plugins:
|
|
10
|
-
rules:
|
|
8
|
+
languageOptions: _typescript_eslint_utils_ts_eslint27.FlatConfig.LanguageOptions;
|
|
9
|
+
plugins: _typescript_eslint_utils_ts_eslint27.FlatConfig.Plugins;
|
|
10
|
+
rules: _typescript_eslint_utils_ts_eslint27.FlatConfig.Rules;
|
|
11
11
|
};
|
|
12
12
|
strict: {
|
|
13
|
-
languageOptions:
|
|
14
|
-
plugins:
|
|
15
|
-
rules:
|
|
16
|
-
};
|
|
17
|
-
classicRecommended: {
|
|
18
|
-
plugins: ["awscdk"];
|
|
19
|
-
rules: _typescript_eslint_utils_ts_eslint29.ClassicConfig.RulesRecord;
|
|
20
|
-
};
|
|
21
|
-
classicStrict: {
|
|
22
|
-
plugins: ["awscdk"];
|
|
23
|
-
rules: _typescript_eslint_utils_ts_eslint29.ClassicConfig.RulesRecord;
|
|
13
|
+
languageOptions: _typescript_eslint_utils_ts_eslint27.FlatConfig.LanguageOptions;
|
|
14
|
+
plugins: _typescript_eslint_utils_ts_eslint27.FlatConfig.Plugins;
|
|
15
|
+
rules: _typescript_eslint_utils_ts_eslint27.FlatConfig.Rules;
|
|
24
16
|
};
|
|
25
17
|
};
|
|
26
18
|
//#endregion
|
|
27
19
|
//#region src/rules/index.d.ts
|
|
28
20
|
declare const rules: {
|
|
29
|
-
"construct-constructor-property":
|
|
30
|
-
"
|
|
31
|
-
"no-construct-in-
|
|
32
|
-
"no-construct-
|
|
33
|
-
"no-construct-stack-suffix": _typescript_eslint_utils_ts_eslint29.RuleModule<"invalidConstructId", [{
|
|
21
|
+
"construct-constructor-property": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructorProperty" | "invalidConstructorType" | "invalidConstructorIdType", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
22
|
+
"no-construct-in-interface": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidInterfaceProperty", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
23
|
+
"no-construct-in-public-property-of-construct": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPublicPropertyOfConstruct", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
24
|
+
"no-construct-stack-suffix": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", [{
|
|
34
25
|
disallowedSuffixes?: ("Construct" | "Stack")[];
|
|
35
|
-
}], unknown,
|
|
26
|
+
}], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
36
27
|
"no-import-private": eslint0.Rule.RuleModule;
|
|
37
|
-
"no-mutable-property-of-props-interface":
|
|
38
|
-
"no-mutable-public-property-of-construct":
|
|
39
|
-
"no-parent-name-construct-id-match":
|
|
28
|
+
"no-mutable-property-of-props-interface": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPropertyOfPropsInterface", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
29
|
+
"no-mutable-public-property-of-construct": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPublicPropertyOfConstruct", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
30
|
+
"no-parent-name-construct-id-match": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", {
|
|
40
31
|
disallowContainingParentName?: boolean;
|
|
41
|
-
}[], unknown,
|
|
42
|
-
"no-unused-props":
|
|
43
|
-
"no-variable-construct-id":
|
|
44
|
-
"pascal-case-construct-id":
|
|
45
|
-
"props-name-convention":
|
|
46
|
-
"require-jsdoc":
|
|
47
|
-
"require-passing-this":
|
|
32
|
+
}[], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
33
|
+
"no-unused-props": _typescript_eslint_utils_ts_eslint27.RuleModule<"unusedProp", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
34
|
+
"no-variable-construct-id": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
35
|
+
"pascal-case-construct-id": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
36
|
+
"props-name-convention": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPropsName", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
37
|
+
"require-jsdoc": _typescript_eslint_utils_ts_eslint27.RuleModule<"missingJSDoc", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
38
|
+
"require-passing-this": _typescript_eslint_utils_ts_eslint27.RuleModule<"missingPassingThis", {
|
|
48
39
|
allowNonThisAndDisallowScope?: boolean;
|
|
49
|
-
}[], unknown,
|
|
50
|
-
"require-props-default-doc":
|
|
40
|
+
}[], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
41
|
+
"require-props-default-doc": _typescript_eslint_utils_ts_eslint27.RuleModule<"missingDefaultDoc", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
51
42
|
};
|
|
52
43
|
//#endregion
|
|
53
44
|
//#region src/index.d.ts
|
|
54
45
|
interface EslintCdkPlugin {
|
|
55
46
|
rules: typeof rules;
|
|
56
47
|
configs: Readonly<{
|
|
57
|
-
classicRecommended: {
|
|
58
|
-
plugins: ["awscdk"];
|
|
59
|
-
rules: ClassicConfig.RulesRecord;
|
|
60
|
-
};
|
|
61
|
-
classicStrict: {
|
|
62
|
-
plugins: ["awscdk"];
|
|
63
|
-
rules: ClassicConfig.RulesRecord;
|
|
64
|
-
};
|
|
65
48
|
recommended: FlatConfig.Config;
|
|
66
49
|
strict: FlatConfig.Config;
|
|
67
50
|
}>;
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/configs/index.ts","../src/rules/index.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/configs/index.ts","../src/rules/index.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;cAEa;;;;;EAAA,CAAA;;;;;;;;;cCcA;uLAiBZ,oCAAA,CAAA,YAAA;;;;ID/BY,kBAGZ,CAAA,EAAA,CAAA,WAAA,GAAA,OAAA,CAAA,EAAA;;;;;;;;;;;ECWY,uBAiBZ,iDAAA,CAAA,kBAAA,EAAA,EAAA,EAAA,OAAA,oDAAA;EAAA,eAAA,iDAAA,CAAA,cAAA,EAAA,EAAA,EAAA,OAAA,oDAAA;;;;;;;;UC1BgB,eAAA;EFLJ,KAAA,EAAA,OEMG,KFHf;WEIU;iBACM,UAAA,CAAW;YAChB,UAAA,CAAW;;;cAIjB,iBAAiB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,67 +1,50 @@
|
|
|
1
1
|
import * as eslint0 from "eslint";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as _typescript_eslint_utils_ts_eslint27 from "@typescript-eslint/utils/ts-eslint";
|
|
3
|
+
import { FlatConfig } from "@typescript-eslint/utils/ts-eslint";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/index.d.ts
|
|
6
6
|
declare const configs: {
|
|
7
7
|
recommended: {
|
|
8
|
-
languageOptions:
|
|
9
|
-
plugins:
|
|
10
|
-
rules:
|
|
8
|
+
languageOptions: _typescript_eslint_utils_ts_eslint27.FlatConfig.LanguageOptions;
|
|
9
|
+
plugins: _typescript_eslint_utils_ts_eslint27.FlatConfig.Plugins;
|
|
10
|
+
rules: _typescript_eslint_utils_ts_eslint27.FlatConfig.Rules;
|
|
11
11
|
};
|
|
12
12
|
strict: {
|
|
13
|
-
languageOptions:
|
|
14
|
-
plugins:
|
|
15
|
-
rules:
|
|
16
|
-
};
|
|
17
|
-
classicRecommended: {
|
|
18
|
-
plugins: ["awscdk"];
|
|
19
|
-
rules: _typescript_eslint_utils_ts_eslint29.ClassicConfig.RulesRecord;
|
|
20
|
-
};
|
|
21
|
-
classicStrict: {
|
|
22
|
-
plugins: ["awscdk"];
|
|
23
|
-
rules: _typescript_eslint_utils_ts_eslint29.ClassicConfig.RulesRecord;
|
|
13
|
+
languageOptions: _typescript_eslint_utils_ts_eslint27.FlatConfig.LanguageOptions;
|
|
14
|
+
plugins: _typescript_eslint_utils_ts_eslint27.FlatConfig.Plugins;
|
|
15
|
+
rules: _typescript_eslint_utils_ts_eslint27.FlatConfig.Rules;
|
|
24
16
|
};
|
|
25
17
|
};
|
|
26
18
|
//#endregion
|
|
27
19
|
//#region src/rules/index.d.ts
|
|
28
20
|
declare const rules: {
|
|
29
|
-
"construct-constructor-property":
|
|
30
|
-
"
|
|
31
|
-
"no-construct-in-
|
|
32
|
-
"no-construct-
|
|
33
|
-
"no-construct-stack-suffix": _typescript_eslint_utils_ts_eslint29.RuleModule<"invalidConstructId", [{
|
|
21
|
+
"construct-constructor-property": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructorProperty" | "invalidConstructorType" | "invalidConstructorIdType", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
22
|
+
"no-construct-in-interface": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidInterfaceProperty", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
23
|
+
"no-construct-in-public-property-of-construct": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPublicPropertyOfConstruct", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
24
|
+
"no-construct-stack-suffix": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", [{
|
|
34
25
|
disallowedSuffixes?: ("Construct" | "Stack")[];
|
|
35
|
-
}], unknown,
|
|
26
|
+
}], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
36
27
|
"no-import-private": eslint0.Rule.RuleModule;
|
|
37
|
-
"no-mutable-property-of-props-interface":
|
|
38
|
-
"no-mutable-public-property-of-construct":
|
|
39
|
-
"no-parent-name-construct-id-match":
|
|
28
|
+
"no-mutable-property-of-props-interface": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPropertyOfPropsInterface", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
29
|
+
"no-mutable-public-property-of-construct": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPublicPropertyOfConstruct", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
30
|
+
"no-parent-name-construct-id-match": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", {
|
|
40
31
|
disallowContainingParentName?: boolean;
|
|
41
|
-
}[], unknown,
|
|
42
|
-
"no-unused-props":
|
|
43
|
-
"no-variable-construct-id":
|
|
44
|
-
"pascal-case-construct-id":
|
|
45
|
-
"props-name-convention":
|
|
46
|
-
"require-jsdoc":
|
|
47
|
-
"require-passing-this":
|
|
32
|
+
}[], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
33
|
+
"no-unused-props": _typescript_eslint_utils_ts_eslint27.RuleModule<"unusedProp", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
34
|
+
"no-variable-construct-id": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
35
|
+
"pascal-case-construct-id": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidConstructId", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
36
|
+
"props-name-convention": _typescript_eslint_utils_ts_eslint27.RuleModule<"invalidPropsName", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
37
|
+
"require-jsdoc": _typescript_eslint_utils_ts_eslint27.RuleModule<"missingJSDoc", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
38
|
+
"require-passing-this": _typescript_eslint_utils_ts_eslint27.RuleModule<"missingPassingThis", {
|
|
48
39
|
allowNonThisAndDisallowScope?: boolean;
|
|
49
|
-
}[], unknown,
|
|
50
|
-
"require-props-default-doc":
|
|
40
|
+
}[], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
41
|
+
"require-props-default-doc": _typescript_eslint_utils_ts_eslint27.RuleModule<"missingDefaultDoc", [], unknown, _typescript_eslint_utils_ts_eslint27.RuleListener>;
|
|
51
42
|
};
|
|
52
43
|
//#endregion
|
|
53
44
|
//#region src/index.d.ts
|
|
54
45
|
interface EslintCdkPlugin {
|
|
55
46
|
rules: typeof rules;
|
|
56
47
|
configs: Readonly<{
|
|
57
|
-
classicRecommended: {
|
|
58
|
-
plugins: ["awscdk"];
|
|
59
|
-
rules: ClassicConfig.RulesRecord;
|
|
60
|
-
};
|
|
61
|
-
classicStrict: {
|
|
62
|
-
plugins: ["awscdk"];
|
|
63
|
-
rules: ClassicConfig.RulesRecord;
|
|
64
|
-
};
|
|
65
48
|
recommended: FlatConfig.Config;
|
|
66
49
|
strict: FlatConfig.Config;
|
|
67
50
|
}>;
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/configs/index.ts","../src/rules/index.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/configs/index.ts","../src/rules/index.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;cAEa;;;;;EAAA,CAAA;;;;;;;;;cCcA;uLAiBZ,oCAAA,CAAA,YAAA;;;;ID/BY,kBAGZ,CAAA,EAAA,CAAA,WAAA,GAAA,OAAA,CAAA,EAAA;;;;;;;;;;;ECWY,uBAiBZ,iDAAA,CAAA,kBAAA,EAAA,EAAA,EAAA,OAAA,oDAAA;EAAA,eAAA,iDAAA,CAAA,cAAA,EAAA,EAAA,EAAA,OAAA,oDAAA;;;;;;;;UC1BgB,eAAA;EFLJ,KAAA,EAAA,OEMG,KFHf;WEIU;iBACM,UAAA,CAAW;YAChB,UAAA,CAAW;;;cAIjB,iBAAiB"}
|