@peerigon/configs 1.0.0-beta.7 → 1.0.0-beta.9
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/CHANGELOG.md +16 -0
- package/docs/prettier.md +13 -0
- package/docs/typescript.md +15 -0
- package/package.json +79 -26
- package/prettier/base.js +4 -1
- package/semantic-release/base.js +4 -1
- package/types/eslint/lib/glob-patterns.d.ts +9 -0
- package/types/eslint/lib/glob-patterns.d.ts.map +1 -0
- package/types/eslint/lib/rule-options.d.ts +95 -0
- package/types/eslint/lib/rule-options.d.ts.map +1 -0
- package/types/eslint/presets/javascript-browser.d.ts +4 -0
- package/types/eslint/presets/javascript-browser.d.ts.map +1 -0
- package/types/eslint/presets/javascript-node.d.ts +4 -0
- package/types/eslint/presets/javascript-node.d.ts.map +1 -0
- package/types/eslint/presets/javascript.d.ts +4 -0
- package/types/eslint/presets/javascript.d.ts.map +1 -0
- package/types/eslint/presets/javascript.test/eslint.config.d.ts +2 -0
- package/types/eslint/presets/javascript.test/eslint.config.d.ts.map +1 -0
- package/types/eslint/presets/javascript.test/main.d.ts +2 -0
- package/types/eslint/presets/javascript.test/main.d.ts.map +1 -0
- package/types/eslint/presets/javascript.test/other.d.ts +3 -0
- package/types/eslint/presets/javascript.test/other.d.ts.map +1 -0
- package/types/eslint/presets/typescript-node.d.ts +4 -0
- package/types/eslint/presets/typescript-node.d.ts.map +1 -0
- package/types/eslint/presets/typescript-react.d.ts +4 -0
- package/types/eslint/presets/typescript-react.d.ts.map +1 -0
- package/types/eslint/presets/typescript.d.ts +4 -0
- package/types/eslint/presets/typescript.d.ts.map +1 -0
- package/types/eslint/rules/base.d.ts +4 -0
- package/types/eslint/rules/base.d.ts.map +1 -0
- package/types/eslint/rules/browser.d.ts +4 -0
- package/types/eslint/rules/browser.d.ts.map +1 -0
- package/types/eslint/rules/javascript.d.ts +4 -0
- package/types/eslint/rules/javascript.d.ts.map +1 -0
- package/types/eslint/rules/node.d.ts +4 -0
- package/types/eslint/rules/node.d.ts.map +1 -0
- package/types/eslint/rules/react.d.ts +4 -0
- package/types/eslint/rules/react.d.ts.map +1 -0
- package/types/eslint/rules/typescript.d.ts +3 -0
- package/types/eslint/rules/typescript.d.ts.map +1 -0
- package/types/eslint/styles/jsx-no-literals.d.ts +4 -0
- package/types/eslint/styles/jsx-no-literals.d.ts.map +1 -0
- package/types/eslint/styles/no-default-export.d.ts +4 -0
- package/types/eslint/styles/no-default-export.d.ts.map +1 -0
- package/types/eslint/styles/no-default-export.test/eslint.config.d.ts +3 -0
- package/types/eslint/styles/no-default-export.test/eslint.config.d.ts.map +1 -0
- package/types/eslint/styles/no-default-export.test/main.d.ts +3 -0
- package/types/eslint/styles/no-default-export.test/main.d.ts.map +1 -0
- package/types/eslint/styles/no-null.d.ts +4 -0
- package/types/eslint/styles/no-null.d.ts.map +1 -0
- package/types/eslint/styles/no-null.test/eslint.config.d.ts +3 -0
- package/types/eslint/styles/no-null.test/eslint.config.d.ts.map +1 -0
- package/types/eslint/styles/no-null.test/main.d.ts +2 -0
- package/types/eslint/styles/no-null.test/main.d.ts.map +1 -0
- package/types/eslint/styles/prefer-array-shorthand.d.ts +4 -0
- package/types/eslint/styles/prefer-array-shorthand.d.ts.map +1 -0
- package/types/eslint/styles/prefer-array-shorthand.test/eslint.config.d.ts +3 -0
- package/types/eslint/styles/prefer-array-shorthand.test/eslint.config.d.ts.map +1 -0
- package/types/eslint/styles/prefer-array-shorthand.test/main.d.ts +3 -0
- package/types/eslint/styles/prefer-array-shorthand.test/main.d.ts.map +1 -0
- package/types/eslint/styles/prefer-interface.d.ts +4 -0
- package/types/eslint/styles/prefer-interface.d.ts.map +1 -0
- package/types/eslint/styles/prefer-interface.test/eslint.config.d.ts +3 -0
- package/types/eslint/styles/prefer-interface.test/eslint.config.d.ts.map +1 -0
- package/types/eslint/styles/prefer-interface.test/main.d.ts +7 -0
- package/types/eslint/styles/prefer-interface.test/main.d.ts.map +1 -0
- package/types/prettier/base.d.ts +4 -0
- package/types/prettier/base.d.ts.map +1 -0
- package/types/semantic-release/base.d.ts +4 -0
- package/types/semantic-release/base.d.ts.map +1 -0
- package/typescript/base.json +4 -1
- package/typescript/js-lib.json +9 -0
- package/typescript/lib.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [1.0.0-beta.9](https://github.com/peerigon/configs/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2024-12-09)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- Improve TS configs and add library types ([760a898](https://github.com/peerigon/configs/commit/760a8983b9d780601e7c6e2cb2c867f45f55f25f))
|
|
6
|
+
|
|
7
|
+
# [1.0.0-beta.8](https://github.com/peerigon/configs/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2024-11-16)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- Downgrade ESLint ([d09f208](https://github.com/peerigon/configs/commit/d09f2084646c68fd9998685143563ba88ddaab0a))
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- Update dependencies ([836a04f](https://github.com/peerigon/configs/commit/836a04f798741639837bb56fcf3ecbc028794c14))
|
|
16
|
+
|
|
1
17
|
# [1.0.0-beta.7](https://github.com/peerigon/configs/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2024-11-15)
|
|
2
18
|
|
|
3
19
|
### Bug Fixes
|
package/docs/prettier.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## Reasoning
|
|
2
|
+
|
|
3
|
+
### `noUncheckedIndexedAccess`
|
|
4
|
+
|
|
5
|
+
- Mention tiny-invariant
|
|
6
|
+
|
|
7
|
+
### `noPropertyAccessFromIndexSignature`
|
|
8
|
+
|
|
9
|
+
### `exactOptionalPropertyTypes`
|
|
10
|
+
|
|
11
|
+
### `verbatimModuleSyntax`
|
|
12
|
+
|
|
13
|
+
### `allowImportingTsExtensions`
|
|
14
|
+
|
|
15
|
+
### `rewriteRelativeImportExtensions`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerigon/configs",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
4
|
"description": "Configs for ESLint, Prettier, TypeScript & friends",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -21,26 +21,74 @@
|
|
|
21
21
|
"author": "Peerigon GmbH <hello@peerigon.com>",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"exports": {
|
|
24
|
-
"./eslint/presets/javascript-browser":
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"./eslint/presets/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"./eslint/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"./
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
"./eslint/presets/javascript-browser": {
|
|
25
|
+
"types": "./types/eslint/presets/javascript-browser.d.ts",
|
|
26
|
+
"default": "./eslint/presets/javascript-browser.js"
|
|
27
|
+
},
|
|
28
|
+
"./eslint/presets/javascript-node": {
|
|
29
|
+
"types": "./types/eslint/presets/javascript-node.d.ts",
|
|
30
|
+
"default": "./eslint/presets/javascript-node.js"
|
|
31
|
+
},
|
|
32
|
+
"./eslint/presets/javascript": {
|
|
33
|
+
"types": "./types/eslint/presets/javascript.d.ts",
|
|
34
|
+
"default": "./eslint/presets/javascript.js"
|
|
35
|
+
},
|
|
36
|
+
"./eslint/presets/typescript-node": {
|
|
37
|
+
"types": "./types/eslint/presets/typescript-node.d.ts",
|
|
38
|
+
"default": "./eslint/presets/typescript-node.js"
|
|
39
|
+
},
|
|
40
|
+
"./eslint/presets/typescript-react": {
|
|
41
|
+
"types": "./types/eslint/presets/typescript-react.d.ts",
|
|
42
|
+
"default": "./eslint/presets/typescript-react.js"
|
|
43
|
+
},
|
|
44
|
+
"./eslint/presets/typescript": {
|
|
45
|
+
"types": "./types/eslint/presets/typescript.d.ts",
|
|
46
|
+
"default": "./eslint/presets/typescript.js"
|
|
47
|
+
},
|
|
48
|
+
"./eslint/styles/jsx-no-literals": {
|
|
49
|
+
"types": "./types/eslint/styles/jsx-no-literals.d.ts",
|
|
50
|
+
"default": "./eslint/styles/jsx-no-literals.js"
|
|
51
|
+
},
|
|
52
|
+
"./eslint/styles/no-default-export": {
|
|
53
|
+
"types": "./types/eslint/styles/no-default-export.d.ts",
|
|
54
|
+
"default": "./eslint/styles/no-default-export.js"
|
|
55
|
+
},
|
|
56
|
+
"./eslint/styles/no-null": {
|
|
57
|
+
"types": "./types/eslint/styles/no-null.d.ts",
|
|
58
|
+
"default": "./eslint/styles/no-null.js"
|
|
59
|
+
},
|
|
60
|
+
"./eslint/styles/prefer-array-shorthand": {
|
|
61
|
+
"types": "./types/eslint/styles/prefer-array-shorthand.d.ts",
|
|
62
|
+
"default": "./eslint/styles/prefer-array-shorthand.js"
|
|
63
|
+
},
|
|
64
|
+
"./eslint/styles/prefer-interface": {
|
|
65
|
+
"types": "./types/eslint/styles/prefer-interface.d.ts",
|
|
66
|
+
"default": "./eslint/styles/prefer-interface.js"
|
|
67
|
+
},
|
|
68
|
+
"./prettier": {
|
|
69
|
+
"types": "./types/prettier/base.d.ts",
|
|
70
|
+
"default": "./prettier/base.js"
|
|
71
|
+
},
|
|
72
|
+
"./semantic-release": {
|
|
73
|
+
"types": "./types/semantic-release/base.d.ts",
|
|
74
|
+
"default": "./semantic-release/base.js"
|
|
75
|
+
},
|
|
76
|
+
"./typescript": {
|
|
77
|
+
"default": "./typescript/base.json"
|
|
78
|
+
},
|
|
79
|
+
"./typescript/lib": {
|
|
80
|
+
"default": "./typescript/lib.json"
|
|
81
|
+
},
|
|
82
|
+
"./typescript/js-lib": {
|
|
83
|
+
"default": "./typescript/js-lib.json"
|
|
84
|
+
}
|
|
39
85
|
},
|
|
40
86
|
"files": [
|
|
87
|
+
"docs",
|
|
41
88
|
"eslint",
|
|
42
89
|
"prettier",
|
|
43
90
|
"semantic-release",
|
|
91
|
+
"types",
|
|
44
92
|
"typescript",
|
|
45
93
|
"CHANGELOG.md",
|
|
46
94
|
"README.md"
|
|
@@ -55,8 +103,11 @@
|
|
|
55
103
|
"test:styles:no-null": "cd eslint/styles/no-null.test; eslint --max-warnings 0 .",
|
|
56
104
|
"test:styles:prefer-array-shorthand": "cd eslint/styles/prefer-array-shorthand.test; eslint --max-warnings 0 .",
|
|
57
105
|
"test:styles:prefer-interface": "cd eslint/styles/prefer-interface.test; eslint --max-warnings 0 .",
|
|
58
|
-
"test:types": "tsc",
|
|
106
|
+
"test:types": "tsc --noEmit",
|
|
59
107
|
"test:prettier": "prettier --check .",
|
|
108
|
+
"build": "run-s build:*",
|
|
109
|
+
"build:types": "tsc",
|
|
110
|
+
"prepublishOnly": "npm run build",
|
|
60
111
|
"prepare": "husky",
|
|
61
112
|
"release": "semantic-release"
|
|
62
113
|
},
|
|
@@ -67,15 +118,15 @@
|
|
|
67
118
|
"*.{js,jsx,ts,tsx,css,md,yml,yaml}": "prettier --write"
|
|
68
119
|
},
|
|
69
120
|
"dependencies": {
|
|
70
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
71
|
-
"@eslint/compat": "^1.2.
|
|
72
|
-
"@eslint/js": "
|
|
73
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.
|
|
121
|
+
"@eslint-react/eslint-plugin": "^1.16.1",
|
|
122
|
+
"@eslint/compat": "^1.2.3",
|
|
123
|
+
"@eslint/js": "9.14.0",
|
|
124
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
|
|
74
125
|
"eslint-config-prettier": "^9.1.0",
|
|
75
126
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
76
127
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
77
128
|
"eslint-plugin-react": "^7.37.2",
|
|
78
|
-
"eslint-plugin-react-compiler": "^19.0.0-beta-
|
|
129
|
+
"eslint-plugin-react-compiler": "^19.0.0-beta-a7bf2bd-20241110",
|
|
79
130
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
80
131
|
"eslint-plugin-react-refresh": "^0.4.14",
|
|
81
132
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
@@ -84,7 +135,7 @@
|
|
|
84
135
|
"prettier-plugin-jsdoc": "^1.3.0",
|
|
85
136
|
"prettier-plugin-packagejson": "^2.5.3",
|
|
86
137
|
"prettier-plugin-tailwindcss": "^0.6.8",
|
|
87
|
-
"typescript-eslint": "^8.
|
|
138
|
+
"typescript-eslint": "^8.14.0"
|
|
88
139
|
},
|
|
89
140
|
"devDependencies": {
|
|
90
141
|
"@semantic-release/changelog": "^6.0.3",
|
|
@@ -95,7 +146,7 @@
|
|
|
95
146
|
"@types/eslint__js": "^8.42.3",
|
|
96
147
|
"@types/node": "^22.9.0",
|
|
97
148
|
"@types/react": "^18.3.12",
|
|
98
|
-
"eslint": "
|
|
149
|
+
"eslint": "9.14.0",
|
|
99
150
|
"husky": "^9.1.6",
|
|
100
151
|
"lint-staged": "^15.2.10",
|
|
101
152
|
"npm-run-all": "^4.1.5",
|
|
@@ -103,10 +154,12 @@
|
|
|
103
154
|
"prettier": "^3.3.3",
|
|
104
155
|
"react": "^18.3.1",
|
|
105
156
|
"semantic-release": "^24.2.0",
|
|
106
|
-
"typescript": "5.6.3"
|
|
157
|
+
"typescript": "^5.6.3"
|
|
107
158
|
},
|
|
108
159
|
"peerDependencies": {
|
|
109
|
-
"eslint": "^9.0.0"
|
|
160
|
+
"eslint": "^9.0.0",
|
|
161
|
+
"prettier": "^3.3.3",
|
|
162
|
+
"typescript": "^5.6.3"
|
|
110
163
|
},
|
|
111
164
|
"publishConfig": {
|
|
112
165
|
"access": "public"
|
package/prettier/base.js
CHANGED
|
@@ -18,7 +18,8 @@ const plugins = await Promise.all([
|
|
|
18
18
|
safeResolve("prettier-plugin-tailwindcss"),
|
|
19
19
|
]);
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
/** @type {import("prettier").Config} */
|
|
22
|
+
export const config = {
|
|
22
23
|
plugins,
|
|
23
24
|
importOrderParserPlugins: [
|
|
24
25
|
"typescript",
|
|
@@ -28,3 +29,5 @@ export default {
|
|
|
28
29
|
],
|
|
29
30
|
importOrderTypeScriptVersion: "5.0.0",
|
|
30
31
|
};
|
|
32
|
+
|
|
33
|
+
export default config;
|
package/semantic-release/base.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** @type {import("semantic-release").Options} */
|
|
2
|
+
export const config = {
|
|
2
3
|
branches: ["main", { name: "beta", prerelease: true }],
|
|
3
4
|
plugins: [
|
|
4
5
|
"@semantic-release/commit-analyzer",
|
|
@@ -36,3 +37,5 @@ export default {
|
|
|
36
37
|
],
|
|
37
38
|
],
|
|
38
39
|
};
|
|
40
|
+
|
|
41
|
+
export default config;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glob-patterns.d.ts","sourceRoot":"","sources":["../../../eslint/lib/glob-patterns.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
export const ruleOptions: {
|
|
2
|
+
camelcase: {
|
|
3
|
+
allow: string[];
|
|
4
|
+
ignoreDestructuring: boolean;
|
|
5
|
+
properties: string;
|
|
6
|
+
};
|
|
7
|
+
"max-lines": {
|
|
8
|
+
max: number;
|
|
9
|
+
skipBlankLines: boolean;
|
|
10
|
+
skipComments: boolean;
|
|
11
|
+
};
|
|
12
|
+
"no-unused-expressions": {
|
|
13
|
+
allowShortCircuit: boolean;
|
|
14
|
+
allowTernary: boolean;
|
|
15
|
+
};
|
|
16
|
+
"no-unused-vars": {
|
|
17
|
+
vars: string;
|
|
18
|
+
varsIgnorePattern: string;
|
|
19
|
+
args: string;
|
|
20
|
+
argsIgnorePattern: string;
|
|
21
|
+
caughtErrors: string;
|
|
22
|
+
reportUsedIgnorePattern: boolean;
|
|
23
|
+
ignoreRestSiblings: boolean;
|
|
24
|
+
};
|
|
25
|
+
"@typescript-eslint/naming-convention": {
|
|
26
|
+
defaultRules: ({
|
|
27
|
+
selector: string;
|
|
28
|
+
format: string[];
|
|
29
|
+
leadingUnderscore: string;
|
|
30
|
+
trailingUnderscore: string;
|
|
31
|
+
} | {
|
|
32
|
+
selector: string[];
|
|
33
|
+
modifiers: string[];
|
|
34
|
+
format: null;
|
|
35
|
+
} | {
|
|
36
|
+
selector: string;
|
|
37
|
+
format: null;
|
|
38
|
+
})[];
|
|
39
|
+
ignoreProperties: {
|
|
40
|
+
selector: string;
|
|
41
|
+
format: null;
|
|
42
|
+
};
|
|
43
|
+
default: {
|
|
44
|
+
selector: string;
|
|
45
|
+
format: string[];
|
|
46
|
+
leadingUnderscore: string;
|
|
47
|
+
trailingUnderscore: string;
|
|
48
|
+
};
|
|
49
|
+
function: {
|
|
50
|
+
selector: string;
|
|
51
|
+
format: string[];
|
|
52
|
+
leadingUnderscore: string;
|
|
53
|
+
trailingUnderscore: string;
|
|
54
|
+
};
|
|
55
|
+
parameter: {
|
|
56
|
+
selector: string;
|
|
57
|
+
format: string[];
|
|
58
|
+
leadingUnderscore: string;
|
|
59
|
+
trailingUnderscore: string;
|
|
60
|
+
};
|
|
61
|
+
method: {
|
|
62
|
+
selector: string;
|
|
63
|
+
format: string[];
|
|
64
|
+
leadingUnderscore: string;
|
|
65
|
+
trailingUnderscore: string;
|
|
66
|
+
};
|
|
67
|
+
typeLike: {
|
|
68
|
+
selector: string;
|
|
69
|
+
format: string[];
|
|
70
|
+
leadingUnderscore: string;
|
|
71
|
+
trailingUnderscore: string;
|
|
72
|
+
};
|
|
73
|
+
enumMember: {
|
|
74
|
+
selector: string;
|
|
75
|
+
format: string[];
|
|
76
|
+
leadingUnderscore: string;
|
|
77
|
+
trailingUnderscore: string;
|
|
78
|
+
};
|
|
79
|
+
destructuring: {
|
|
80
|
+
selector: string;
|
|
81
|
+
modifiers: string[];
|
|
82
|
+
format: null;
|
|
83
|
+
};
|
|
84
|
+
requiresQuites: {
|
|
85
|
+
selector: string[];
|
|
86
|
+
modifiers: string[];
|
|
87
|
+
format: null;
|
|
88
|
+
};
|
|
89
|
+
objectLiteralProperty: {
|
|
90
|
+
selector: string;
|
|
91
|
+
format: null;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=rule-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-options.d.ts","sourceRoot":"","sources":["../../../eslint/lib/rule-options.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2HE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"javascript-browser.d.ts","sourceRoot":"","sources":["../../../eslint/presets/javascript-browser.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"javascript-node.d.ts","sourceRoot":"","sources":["../../../eslint/presets/javascript-node.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../eslint/presets/javascript.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/presets/javascript.test/eslint.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/presets/javascript.test/main.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../eslint/presets/javascript.test/other.js"],"names":[],"mappings":"AAAA,kBAAmB;AACnB,kBAAmB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
2
|
+
export default _default;
|
|
3
|
+
import eslintConfigPrettier from "eslint-config-prettier";
|
|
4
|
+
//# sourceMappingURL=typescript-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-node.d.ts","sourceRoot":"","sources":["../../../eslint/presets/typescript-node.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
2
|
+
export default _default;
|
|
3
|
+
import eslintConfigPrettier from "eslint-config-prettier";
|
|
4
|
+
//# sourceMappingURL=typescript-react.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-react.d.ts","sourceRoot":"","sources":["../../../eslint/presets/typescript-react.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof eslintConfigPrettier | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
2
|
+
export default _default;
|
|
3
|
+
import eslintConfigPrettier from "eslint-config-prettier";
|
|
4
|
+
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../eslint/presets/typescript.js"],"names":[],"mappings":";;iCAAiC,wBAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../eslint/rules/base.js"],"names":[],"mappings":"AAOA,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAQzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../eslint/rules/browser.js"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,sBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../eslint/rules/javascript.js"],"names":[],"mappings":"AAKA,+CAA+C;AAC/C,yBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA2IzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../eslint/rules/node.js"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../eslint/rules/react.js"],"names":[],"mappings":"AAUA,+CAA+C;AAC/C,oBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA4JzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../eslint/rules/typescript.js"],"names":[],"mappings":"AAUA,6FAyLE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-no-literals.d.ts","sourceRoot":"","sources":["../../../eslint/styles/jsx-no-literals.js"],"names":[],"mappings":"AAEA,+CAA+C;AAC/C,4BADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CA0BzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-default-export.d.ts","sourceRoot":"","sources":["../../../eslint/styles/no-default-export.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,8BADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAezC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=eslint.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-default-export.test/eslint.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-default-export.test/main.ts"],"names":[],"mappings":";AACA,wBAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-null.d.ts","sourceRoot":"","sources":["../../../eslint/styles/no-null.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,qBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=eslint.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-null.test/eslint.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/no-null.test/main.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,MAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-array-shorthand.d.ts","sourceRoot":"","sources":["../../../eslint/styles/prefer-array-shorthand.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,mCADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAYzC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=eslint.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-array-shorthand.test/eslint.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-array-shorthand.test/main.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-interface.d.ts","sourceRoot":"","sources":["../../../eslint/styles/prefer-interface.js"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,8BADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,CAOzC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: (import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | typeof import("eslint-config-prettier") | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config)[];
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=eslint.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-interface.test/eslint.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../eslint/styles/prefer-interface.test/main.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../prettier/base.js"],"names":[],"mappings":"AAoBA,wCAAwC;AACxC,qBADW,OAAO,UAAU,EAAE,MAAM,CAUlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../semantic-release/base.js"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,qBADW,OAAO,kBAAkB,EAAE,OAAO,CAsC3C"}
|
package/typescript/base.json
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
"isolatedModules": true,
|
|
8
8
|
"lib": ["DOM", "ESNext"],
|
|
9
9
|
"module": "NodeNext",
|
|
10
|
-
"noEmit": true, // If code should be emitted, it's recommended to create a separate tsconfig.build.json file
|
|
11
10
|
"noImplicitOverride": true,
|
|
12
11
|
"noImplicitReturns": true,
|
|
13
12
|
"noPropertyAccessFromIndexSignature": true,
|
|
@@ -16,6 +15,10 @@
|
|
|
16
15
|
"skipLibCheck": true,
|
|
17
16
|
"strict": true,
|
|
18
17
|
"target": "ESNext"
|
|
18
|
+
// TODO: Turn on the following settings once TS 5.7 is released, see also https://nodejs.org/docs/latest/api/typescript.html#typescript-features
|
|
19
|
+
// "allowImportingTsExtensions": true,
|
|
20
|
+
// "rewriteRelativeImportExtensions": true,
|
|
21
|
+
// "verbatimModuleSyntax": true
|
|
19
22
|
},
|
|
20
23
|
"$schema": "https://json.schemastore.org/tsconfig"
|
|
21
24
|
}
|
package/typescript/lib.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./
|
|
2
|
+
"extends": "./base.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"declarationMap": true,
|
|
6
|
+
"outDir": "${configDir}/dist",
|
|
7
|
+
"sourceMap": true
|
|
8
|
+
},
|
|
9
|
+
"$schema": "https://json.schemastore.org/tsconfig"
|
|
7
10
|
}
|