@jcoreio/toolchain-typescript 5.2.0 → 5.3.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jcoreio/toolchain-typescript",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "TypeScript JS build toolchain",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,22 +18,21 @@
|
|
|
18
18
|
"@babel/preset-typescript": "^7.26.0",
|
|
19
19
|
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
20
20
|
"@typescript-eslint/parser": "^8.19.1",
|
|
21
|
+
"eslint": "^9.18.0",
|
|
21
22
|
"json5": "^2.2.1",
|
|
22
|
-
"
|
|
23
|
-
"@jcoreio/toolchain
|
|
23
|
+
"typescript-eslint": "^8.29.0",
|
|
24
|
+
"@jcoreio/toolchain": "5.3.1",
|
|
25
|
+
"@jcoreio/toolchain-esnext": "5.3.1"
|
|
24
26
|
},
|
|
25
27
|
"peerDependencies": {
|
|
26
28
|
"typescript": "^5.1.0"
|
|
27
29
|
},
|
|
28
30
|
"devDependencies": {
|
|
29
|
-
"eslint": "^9.18.0",
|
|
30
31
|
"typescript": "^5.1.0"
|
|
31
32
|
},
|
|
32
33
|
"toolchainManaged": {
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@jcoreio/toolchain-esnext": "*",
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "*",
|
|
36
|
-
"@typescript-eslint/parser": "*",
|
|
37
36
|
"typescript": "*"
|
|
38
37
|
}
|
|
39
38
|
}
|
package/plugins/babelPresets.cjs
CHANGED
|
@@ -42,11 +42,11 @@ module.exports = [
|
|
|
42
42
|
include: [
|
|
43
43
|
'./src',
|
|
44
44
|
'./test',
|
|
45
|
-
...(rootTsconfig && rootTsconfig.include
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
...(rootTsconfig && rootTsconfig.include ?
|
|
46
|
+
rootTsconfig.include.filter(
|
|
47
|
+
(i) => !/^(\.\/)?(src|test)(\/|$)/.test(i)
|
|
48
|
+
)
|
|
49
|
+
: []),
|
|
50
50
|
],
|
|
51
51
|
exclude: ['node_modules'],
|
|
52
52
|
...(lib && { compilerOptions: { lib } }),
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const tseslint = require('typescript-eslint')
|
|
2
|
+
const { projectDir } = require('@jcoreio/toolchain/util/findUps.cjs')
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
() =>
|
|
6
|
+
tseslint.config(
|
|
7
|
+
[
|
|
8
|
+
...tseslint.configs.recommendedTypeChecked,
|
|
9
|
+
...tseslint.configs.strictTypeChecked,
|
|
10
|
+
].map((conf) => ({
|
|
11
|
+
...conf,
|
|
12
|
+
files: ['**/*.{ts,tsx,cts,ctsx,mts,mtsx}'],
|
|
13
|
+
})),
|
|
14
|
+
{
|
|
15
|
+
files: ['**/*.{ts,tsx,cts,ctsx,mts,mtsx}'],
|
|
16
|
+
languageOptions: {
|
|
17
|
+
parserOptions: {
|
|
18
|
+
project: true,
|
|
19
|
+
projectService: true,
|
|
20
|
+
tsconfigRootDir: projectDir,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
rules: {
|
|
24
|
+
'@typescript-eslint/ban-ts-comment': 0,
|
|
25
|
+
'@typescript-eslint/member-delimiter-style': 0,
|
|
26
|
+
'@typescript-eslint/no-confusing-void-expression': 0,
|
|
27
|
+
'@typescript-eslint/no-explicit-any': 0,
|
|
28
|
+
'@typescript-eslint/no-invalid-void-type': 0,
|
|
29
|
+
'@typescript-eslint/no-unsafe-argument': 0,
|
|
30
|
+
'@typescript-eslint/no-unsafe-assignment': 0,
|
|
31
|
+
'@typescript-eslint/no-unsafe-call': 0,
|
|
32
|
+
'@typescript-eslint/no-unsafe-declaration-merging': 0,
|
|
33
|
+
'@typescript-eslint/no-unsafe-enum-comparison': 0,
|
|
34
|
+
'@typescript-eslint/no-unsafe-member-access': 0,
|
|
35
|
+
'@typescript-eslint/no-unsafe-return': 0,
|
|
36
|
+
'@typescript-eslint/require-await': 0,
|
|
37
|
+
'@typescript-eslint/restrict-template-expressions': 0,
|
|
38
|
+
},
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
]
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const hasTSSourcesSync = require('@jcoreio/toolchain/util/hasTSSourcesSync.cjs')
|
|
2
2
|
|
|
3
|
-
module.exports =
|
|
4
|
-
?
|
|
3
|
+
module.exports =
|
|
4
|
+
hasTSSourcesSync() ?
|
|
5
|
+
[
|
|
5
6
|
[
|
|
6
7
|
() => ['ts', 'tsx', 'cts', 'ctsx', 'mts', 'mtsx'],
|
|
7
8
|
{ insteadOf: '@jcoreio/toolchain' },
|
package/eslint.extends.cjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
overrides: [
|
|
3
|
-
{
|
|
4
|
-
files: ['*.ts', '*.tsx', '*.mts', '*.mtsx', '*.cts', '*.ctsx'],
|
|
5
|
-
extends: [
|
|
6
|
-
'plugin:@typescript-eslint/eslint-recommended',
|
|
7
|
-
'plugin:@typescript-eslint/recommended',
|
|
8
|
-
'plugin:@typescript-eslint/strict-type-checked',
|
|
9
|
-
],
|
|
10
|
-
parser: '@typescript-eslint/parser',
|
|
11
|
-
parserOptions: {
|
|
12
|
-
project: true,
|
|
13
|
-
},
|
|
14
|
-
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
15
|
-
rules: {
|
|
16
|
-
'@typescript-eslint/member-delimiter-style': 0,
|
|
17
|
-
'@typescript-eslint/no-confusing-void-expression': 0,
|
|
18
|
-
'@typescript-eslint/no-explicit-any': 0,
|
|
19
|
-
'@typescript-eslint/no-invalid-void-type': 0,
|
|
20
|
-
'@typescript-eslint/no-unsafe-argument': 0,
|
|
21
|
-
'@typescript-eslint/no-unsafe-assignment': 0,
|
|
22
|
-
'@typescript-eslint/no-unsafe-call': 0,
|
|
23
|
-
'@typescript-eslint/no-unsafe-declaration-merging': 0,
|
|
24
|
-
'@typescript-eslint/no-unsafe-enum-comparison': 0,
|
|
25
|
-
'@typescript-eslint/no-unsafe-member-access': 0,
|
|
26
|
-
'@typescript-eslint/no-unsafe-return': 0,
|
|
27
|
-
'@typescript-eslint/require-await': 0,
|
|
28
|
-
'@typescript-eslint/restrict-template-expressions': 0,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = [() => [require.resolve('../eslint.extends.cjs')]]
|