@cdktn/commons 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 +1 -76
- package/package.json +3 -11
package/eslint.config.mjs
CHANGED
|
@@ -3,79 +3,4 @@
|
|
|
3
3
|
* SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
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
|
-
});
|
|
24
|
-
|
|
25
|
-
export default [
|
|
26
|
-
{
|
|
27
|
-
ignores: [
|
|
28
|
-
"**/node_modules",
|
|
29
|
-
"**/dist",
|
|
30
|
-
"**/coverage",
|
|
31
|
-
"**/*.d.ts",
|
|
32
|
-
"**/*.js",
|
|
33
|
-
"**/*.mjs",
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
...tseslint.config(eslint.configs.recommended, tseslint.configs.recommended),
|
|
37
|
-
{
|
|
38
|
-
settings: {
|
|
39
|
-
react: {
|
|
40
|
-
version: "detect",
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
react.configs.flat.recommended,
|
|
45
|
-
...fixupConfigRules(compat.extends("plugin:react-hooks/recommended")).map(
|
|
46
|
-
(config) => ({
|
|
47
|
-
...config,
|
|
48
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
49
|
-
}),
|
|
50
|
-
),
|
|
51
|
-
{
|
|
52
|
-
files: ["**/*.ts", "**/*.tsx"],
|
|
53
|
-
|
|
54
|
-
languageOptions: {
|
|
55
|
-
parser: tsParser,
|
|
56
|
-
parserOptions: {
|
|
57
|
-
tsconfigRootDir: import.meta.dirname,
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
rules: {
|
|
62
|
-
"@typescript-eslint/no-explicit-any": 0,
|
|
63
|
-
"@typescript-eslint/explicit-function-return-type": 0,
|
|
64
|
-
"@typescript-eslint/no-use-before-define": 0,
|
|
65
|
-
"@typescript-eslint/explicit-module-boundary-types": 0,
|
|
66
|
-
"@typescript-eslint/no-var-requires": 0,
|
|
67
|
-
"@typescript-eslint/no-require-imports": "warn",
|
|
68
|
-
"react/no-unescaped-entities": 0,
|
|
69
|
-
"no-sequences": "error",
|
|
70
|
-
"no-unused-vars": "warn",
|
|
71
|
-
|
|
72
|
-
"no-irregular-whitespace": [
|
|
73
|
-
"error",
|
|
74
|
-
{
|
|
75
|
-
skipTemplates: true,
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
prettierConfig,
|
|
81
|
-
];
|
|
6
|
+
export { default } from "../../../eslint.config.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdktn/commons",
|
|
3
|
-
"version": "0.23.0-pre.
|
|
3
|
+
"version": "0.23.0-pre.40",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"license": "MPL-2.0",
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@sentry/node": "7.120.4",
|
|
44
|
-
"cdktn": "0.23.0-pre.
|
|
44
|
+
"cdktn": "0.23.0-pre.40",
|
|
45
45
|
"ci-info": "3.9.0",
|
|
46
46
|
"codemaker": "1.128.0",
|
|
47
47
|
"cross-spawn": "7.0.6",
|
|
@@ -53,23 +53,15 @@
|
|
|
53
53
|
"validator": "13.15.35"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@eslint/compat": "^1.4.1",
|
|
57
|
-
"@eslint/eslintrc": "^3.3.5",
|
|
58
|
-
"@eslint/js": "^9.39.4",
|
|
59
56
|
"@types/follow-redirects": "1.14.4",
|
|
60
57
|
"@types/fs-extra": "11.0.4",
|
|
61
58
|
"@types/uuid": "9.0.8",
|
|
62
59
|
"@types/validator": "13.15.10",
|
|
63
|
-
"@typescript-eslint/parser": "^8.58.0",
|
|
64
|
-
"eslint": "^9.39.4",
|
|
65
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
66
|
-
"eslint-plugin-react": "7.37.5",
|
|
67
60
|
"jest": "^30.3.0",
|
|
68
61
|
"lint-staged": "^15.5.2",
|
|
69
62
|
"ts-jest": "29.4.9",
|
|
70
63
|
"tsc-files": "1.1.4",
|
|
71
|
-
"typescript": "5.4.5"
|
|
72
|
-
"typescript-eslint": "^8.58.0"
|
|
64
|
+
"typescript": "5.4.5"
|
|
73
65
|
},
|
|
74
66
|
"lint-staged": {
|
|
75
67
|
"src/**/*.{ts,tsx}": "tsc-files ambient.d.ts --noEmit"
|