eslint-plugin-awscdk 4.0.1 → 4.0.2
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 +17 -11
- package/dist/index.cjs +9 -2
- package/dist/index.mjs +9 -2
- package/package.json +1 -1
- package/src/configs/classic-config.ts +2 -0
- package/src/configs/flat-config.ts +6 -1
package/README.md
CHANGED
|
@@ -18,20 +18,26 @@ Please refer to the [website](https://eslint-plugin-awscdk.dev/).
|
|
|
18
18
|
|
|
19
19
|
> **Important**: This package was previously published as `eslint-cdk-plugin`. Starting from v4.0.0, it has been renamed to `eslint-plugin-awscdk` to follow ESLint's official naming convention.
|
|
20
20
|
|
|
21
|
-
###
|
|
21
|
+
### Migration Steps
|
|
22
22
|
|
|
23
|
-
1. Update
|
|
23
|
+
#### 1. Update `eslint-cdk-plugin` to latest version
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
```bash
|
|
26
|
+
# npm
|
|
27
|
+
npm install -D eslint-cdk-plugin@latest
|
|
28
|
+
|
|
29
|
+
# yarn
|
|
30
|
+
yarn add -D eslint-cdk-plugin@latest
|
|
31
|
+
|
|
32
|
+
# pnpm
|
|
33
|
+
pnpm install -D eslint-cdk-plugin@latest
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### 2. execute migration command
|
|
29
37
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
+ import cdkPlugin from "eslint-plugin-awscdk";
|
|
34
|
-
```
|
|
38
|
+
```bash
|
|
39
|
+
npx migrate-cdk-plugin
|
|
40
|
+
```
|
|
35
41
|
|
|
36
42
|
The old package name will continue to receive updates until for a while , after which it will be deprecated.
|
|
37
43
|
|
package/dist/index.cjs
CHANGED
|
@@ -33,6 +33,7 @@ const createClassicConfig = (rules) => {
|
|
|
33
33
|
};
|
|
34
34
|
const recommended$1 = createClassicConfig({
|
|
35
35
|
"awscdk/construct-constructor-property": "error",
|
|
36
|
+
"awscdk/migrate-disable-comments": "error",
|
|
36
37
|
"awscdk/no-construct-in-interface": "error",
|
|
37
38
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
38
39
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -52,6 +53,7 @@ const recommended$1 = createClassicConfig({
|
|
|
52
53
|
});
|
|
53
54
|
const strict$1 = createClassicConfig({
|
|
54
55
|
"awscdk/construct-constructor-property": "error",
|
|
56
|
+
"awscdk/migrate-disable-comments": "error",
|
|
55
57
|
"awscdk/no-construct-in-interface": "error",
|
|
56
58
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
57
59
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -72,7 +74,7 @@ const strict$1 = createClassicConfig({
|
|
|
72
74
|
});
|
|
73
75
|
|
|
74
76
|
var name = "eslint-plugin-awscdk";
|
|
75
|
-
var version = "4.0.
|
|
77
|
+
var version = "4.0.2";
|
|
76
78
|
|
|
77
79
|
const createRule = utils.ESLintUtils.RuleCreator(
|
|
78
80
|
(name) => `https://eslint-plugin-awscdk.dev/rules/${name}`
|
|
@@ -1612,6 +1614,7 @@ const createFlatConfig = (rules2) => {
|
|
|
1612
1614
|
};
|
|
1613
1615
|
const recommended = createFlatConfig({
|
|
1614
1616
|
"awscdk/construct-constructor-property": "error",
|
|
1617
|
+
"awscdk/migrate-disable-comments": "error",
|
|
1615
1618
|
"awscdk/no-construct-in-interface": "error",
|
|
1616
1619
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
1617
1620
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -1624,10 +1627,14 @@ const recommended = createFlatConfig({
|
|
|
1624
1627
|
"awscdk/no-unused-props": "error",
|
|
1625
1628
|
"awscdk/no-variable-construct-id": "error",
|
|
1626
1629
|
"awscdk/pascal-case-construct-id": "error",
|
|
1627
|
-
"awscdk/require-passing-this": [
|
|
1630
|
+
"awscdk/require-passing-this": [
|
|
1631
|
+
"error",
|
|
1632
|
+
{ allowNonThisAndDisallowScope: true }
|
|
1633
|
+
]
|
|
1628
1634
|
});
|
|
1629
1635
|
const strict = createFlatConfig({
|
|
1630
1636
|
"awscdk/construct-constructor-property": "error",
|
|
1637
|
+
"awscdk/migrate-disable-comments": "error",
|
|
1631
1638
|
"awscdk/no-construct-in-interface": "error",
|
|
1632
1639
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
1633
1640
|
"awscdk/no-construct-stack-suffix": "error",
|
package/dist/index.mjs
CHANGED
|
@@ -10,6 +10,7 @@ const createClassicConfig = (rules) => {
|
|
|
10
10
|
};
|
|
11
11
|
const recommended$1 = createClassicConfig({
|
|
12
12
|
"awscdk/construct-constructor-property": "error",
|
|
13
|
+
"awscdk/migrate-disable-comments": "error",
|
|
13
14
|
"awscdk/no-construct-in-interface": "error",
|
|
14
15
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
15
16
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -29,6 +30,7 @@ const recommended$1 = createClassicConfig({
|
|
|
29
30
|
});
|
|
30
31
|
const strict$1 = createClassicConfig({
|
|
31
32
|
"awscdk/construct-constructor-property": "error",
|
|
33
|
+
"awscdk/migrate-disable-comments": "error",
|
|
32
34
|
"awscdk/no-construct-in-interface": "error",
|
|
33
35
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
34
36
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -49,7 +51,7 @@ const strict$1 = createClassicConfig({
|
|
|
49
51
|
});
|
|
50
52
|
|
|
51
53
|
var name = "eslint-plugin-awscdk";
|
|
52
|
-
var version = "4.0.
|
|
54
|
+
var version = "4.0.2";
|
|
53
55
|
|
|
54
56
|
const createRule = ESLintUtils.RuleCreator(
|
|
55
57
|
(name) => `https://eslint-plugin-awscdk.dev/rules/${name}`
|
|
@@ -1589,6 +1591,7 @@ const createFlatConfig = (rules2) => {
|
|
|
1589
1591
|
};
|
|
1590
1592
|
const recommended = createFlatConfig({
|
|
1591
1593
|
"awscdk/construct-constructor-property": "error",
|
|
1594
|
+
"awscdk/migrate-disable-comments": "error",
|
|
1592
1595
|
"awscdk/no-construct-in-interface": "error",
|
|
1593
1596
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
1594
1597
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -1601,10 +1604,14 @@ const recommended = createFlatConfig({
|
|
|
1601
1604
|
"awscdk/no-unused-props": "error",
|
|
1602
1605
|
"awscdk/no-variable-construct-id": "error",
|
|
1603
1606
|
"awscdk/pascal-case-construct-id": "error",
|
|
1604
|
-
"awscdk/require-passing-this": [
|
|
1607
|
+
"awscdk/require-passing-this": [
|
|
1608
|
+
"error",
|
|
1609
|
+
{ allowNonThisAndDisallowScope: true }
|
|
1610
|
+
]
|
|
1605
1611
|
});
|
|
1606
1612
|
const strict = createFlatConfig({
|
|
1607
1613
|
"awscdk/construct-constructor-property": "error",
|
|
1614
|
+
"awscdk/migrate-disable-comments": "error",
|
|
1608
1615
|
"awscdk/no-construct-in-interface": "error",
|
|
1609
1616
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
1610
1617
|
"awscdk/no-construct-stack-suffix": "error",
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ const createClassicConfig = (
|
|
|
14
14
|
|
|
15
15
|
export const recommended = createClassicConfig({
|
|
16
16
|
"awscdk/construct-constructor-property": "error",
|
|
17
|
+
"awscdk/migrate-disable-comments": "error",
|
|
17
18
|
"awscdk/no-construct-in-interface": "error",
|
|
18
19
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
19
20
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -34,6 +35,7 @@ export const recommended = createClassicConfig({
|
|
|
34
35
|
|
|
35
36
|
export const strict = createClassicConfig({
|
|
36
37
|
"awscdk/construct-constructor-property": "error",
|
|
38
|
+
"awscdk/migrate-disable-comments": "error",
|
|
37
39
|
"awscdk/no-construct-in-interface": "error",
|
|
38
40
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
39
41
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -32,6 +32,7 @@ const createFlatConfig = (
|
|
|
32
32
|
|
|
33
33
|
export const recommended = createFlatConfig({
|
|
34
34
|
"awscdk/construct-constructor-property": "error",
|
|
35
|
+
"awscdk/migrate-disable-comments": "error",
|
|
35
36
|
"awscdk/no-construct-in-interface": "error",
|
|
36
37
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
37
38
|
"awscdk/no-construct-stack-suffix": "error",
|
|
@@ -44,11 +45,15 @@ export const recommended = createFlatConfig({
|
|
|
44
45
|
"awscdk/no-unused-props": "error",
|
|
45
46
|
"awscdk/no-variable-construct-id": "error",
|
|
46
47
|
"awscdk/pascal-case-construct-id": "error",
|
|
47
|
-
"awscdk/require-passing-this": [
|
|
48
|
+
"awscdk/require-passing-this": [
|
|
49
|
+
"error",
|
|
50
|
+
{ allowNonThisAndDisallowScope: true },
|
|
51
|
+
],
|
|
48
52
|
});
|
|
49
53
|
|
|
50
54
|
export const strict = createFlatConfig({
|
|
51
55
|
"awscdk/construct-constructor-property": "error",
|
|
56
|
+
"awscdk/migrate-disable-comments": "error",
|
|
52
57
|
"awscdk/no-construct-in-interface": "error",
|
|
53
58
|
"awscdk/no-construct-in-public-property-of-construct": "error",
|
|
54
59
|
"awscdk/no-construct-stack-suffix": "error",
|