@cdktn/cli-core 0.23.0-pre.39 → 0.23.0-pre.40
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/eslint.config.mjs +2 -70
- package/package.json +8 -17
package/eslint.config.mjs
CHANGED
|
@@ -3,84 +3,16 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import
|
|
7
|
-
import eslint from "@eslint/js";
|
|
8
|
-
import tseslint from "typescript-eslint";
|
|
9
|
-
import tsParser from "@typescript-eslint/parser";
|
|
10
|
-
import react from "eslint-plugin-react";
|
|
11
|
-
import prettierConfig from "eslint-plugin-prettier/recommended";
|
|
12
|
-
import path from "node:path";
|
|
13
|
-
import { fileURLToPath } from "node:url";
|
|
14
|
-
import js from "@eslint/js";
|
|
15
|
-
import { FlatCompat } from "@eslint/eslintrc";
|
|
16
|
-
|
|
17
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
18
|
-
const __dirname = path.dirname(__filename);
|
|
19
|
-
const compat = new FlatCompat({
|
|
20
|
-
baseDirectory: __dirname,
|
|
21
|
-
recommendedConfig: js.configs.recommended,
|
|
22
|
-
allConfig: js.configs.all,
|
|
23
|
-
});
|
|
6
|
+
import rootConfig from "../../../eslint.config.mjs";
|
|
24
7
|
|
|
25
8
|
export default [
|
|
26
9
|
{
|
|
27
10
|
ignores: [
|
|
28
|
-
"**/node_modules",
|
|
29
|
-
"**/dist",
|
|
30
|
-
"**/coverage",
|
|
31
|
-
"**/*.d.ts",
|
|
32
|
-
"**/*.js",
|
|
33
|
-
"**/*.mjs",
|
|
34
11
|
// prettier v2 managed inline snapshots
|
|
35
12
|
"src/test/lib/cdktf-project.test.ts",
|
|
36
13
|
"src/test/lib/terraform-logs.test.ts",
|
|
37
14
|
"src/test/lib/execution-logs.test.ts",
|
|
38
15
|
],
|
|
39
16
|
},
|
|
40
|
-
...
|
|
41
|
-
{
|
|
42
|
-
settings: {
|
|
43
|
-
react: {
|
|
44
|
-
version: "detect",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
react.configs.flat.recommended,
|
|
49
|
-
...fixupConfigRules(compat.extends("plugin:react-hooks/recommended")).map(
|
|
50
|
-
(config) => ({
|
|
51
|
-
...config,
|
|
52
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
53
|
-
}),
|
|
54
|
-
),
|
|
55
|
-
{
|
|
56
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
57
|
-
|
|
58
|
-
languageOptions: {
|
|
59
|
-
parser: tsParser,
|
|
60
|
-
parserOptions: {
|
|
61
|
-
tsconfigRootDir: import.meta.dirname,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
rules: {
|
|
66
|
-
"@typescript-eslint/no-explicit-any": 0,
|
|
67
|
-
"@typescript-eslint/explicit-function-return-type": 0,
|
|
68
|
-
"@typescript-eslint/no-use-before-define": 0,
|
|
69
|
-
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
70
|
-
"@typescript-eslint/no-var-requires": 0,
|
|
71
|
-
"@typescript-eslint/no-require-imports": "warn",
|
|
72
|
-
"@typescript-eslint/no-unused-vars": "warn",
|
|
73
|
-
"react/no-unescaped-entities": 0,
|
|
74
|
-
"no-sequences": "error",
|
|
75
|
-
"no-unused-vars": "warn",
|
|
76
|
-
|
|
77
|
-
"no-irregular-whitespace": [
|
|
78
|
-
"error",
|
|
79
|
-
{
|
|
80
|
-
skipTemplates: true,
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
prettierConfig,
|
|
17
|
+
...rootConfig,
|
|
86
18
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdktn/cli-core",
|
|
3
|
-
"version": "0.23.0-pre.
|
|
3
|
+
"version": "0.23.0-pre.40",
|
|
4
4
|
"description": "CDK Terrain CLI Core, meant for internal use only",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
],
|
|
41
41
|
"license": "MPL-2.0",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@cdktn/commons": "0.23.0-pre.
|
|
44
|
-
"@cdktn/hcl-tools": "0.23.0-pre.
|
|
45
|
-
"@cdktn/hcl2cdk": "0.23.0-pre.
|
|
46
|
-
"@cdktn/hcl2json": "0.23.0-pre.
|
|
47
|
-
"@cdktn/provider-schema": "0.23.0-pre.
|
|
43
|
+
"@cdktn/commons": "0.23.0-pre.40",
|
|
44
|
+
"@cdktn/hcl-tools": "0.23.0-pre.40",
|
|
45
|
+
"@cdktn/hcl2cdk": "0.23.0-pre.40",
|
|
46
|
+
"@cdktn/hcl2json": "0.23.0-pre.40",
|
|
47
|
+
"@cdktn/provider-schema": "0.23.0-pre.40",
|
|
48
48
|
"@sentry/node": "7.120.4",
|
|
49
|
-
"cdktn": "0.23.0-pre.
|
|
49
|
+
"cdktn": "0.23.0-pre.40",
|
|
50
50
|
"chalk": "4.1.2",
|
|
51
51
|
"chokidar": "3.6.0",
|
|
52
52
|
"cli-spinners": "2.9.2",
|
|
@@ -92,10 +92,7 @@
|
|
|
92
92
|
"src/**/*.{ts,tsx}": "tsc-files ambient.d.ts --noEmit"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@cdktn/provider-generator": "0.23.0-pre.
|
|
96
|
-
"@eslint/compat": "^1.4.1",
|
|
97
|
-
"@eslint/eslintrc": "^3.3.5",
|
|
98
|
-
"@eslint/js": "^9.39.4",
|
|
95
|
+
"@cdktn/provider-generator": "0.23.0-pre.40",
|
|
99
96
|
"@npmcli/ci-detect": "1.4.0",
|
|
100
97
|
"@skorfmann/ink-confirm-input": "3.0.0",
|
|
101
98
|
"@skorfmann/terraform-cloud": "1.15.0",
|
|
@@ -119,11 +116,6 @@
|
|
|
119
116
|
"@types/uuid": "8.3.4",
|
|
120
117
|
"esbuild": "^0.28.0",
|
|
121
118
|
"esbuild-jest": "0.5.0",
|
|
122
|
-
"eslint": "^9.39.4",
|
|
123
|
-
"eslint-config-prettier": "^10.1.8",
|
|
124
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
125
|
-
"eslint-plugin-react": "7.37.5",
|
|
126
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
127
119
|
"jest": "^30.3.0",
|
|
128
120
|
"nock": "13.5.6",
|
|
129
121
|
"prettier": "2.8.8",
|
|
@@ -131,7 +123,6 @@
|
|
|
131
123
|
"ts-jest": "29.4.9",
|
|
132
124
|
"tsc-files": "1.1.4",
|
|
133
125
|
"typescript": "5.4.5",
|
|
134
|
-
"typescript-eslint": "^8.58.0",
|
|
135
126
|
"utility-types": "3.11.0"
|
|
136
127
|
}
|
|
137
128
|
}
|