Skip to content

Commit 4606d23

Browse files
committed
fix: root config
1 parent f516543 commit 4606d23

File tree

5 files changed

+38
-82
lines changed

5 files changed

+38
-82
lines changed

.eslintrc.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,25 @@ module.exports = {
1111
'prettier/prettier': 'error',
1212
semi: 'off',
1313
radix: 'off',
14+
'no-new': 'off',
15+
'new-cap': 'off',
16+
'no-shadow': 'off',
1417
'func-names': 'off',
1518
'no-console': 'off',
16-
'no-shadow': 'off',
17-
'no-unused-vars': ['error', { args: 'none' }],
1819
'consistent-return': 'off',
20+
'no-unused-vars': ['error', { args: 'none' }],
1921
'no-underscore-dangle': 'off',
22+
'no-useless-constructor': 'off',
2023
'import/prefer-default-export': 'off',
2124
'import/no-unresolved': 'off',
22-
'new-cap': 'off',
23-
'no-new': 'off',
2425
'import/extensions': 'off',
25-
'no-useless-constructor': 'off',
2626
'@typescript-eslint/no-misused-promises': 'off',
2727
'@typescript-eslint/strict-boolean-expressions': 'off',
2828
'@typescript-eslint/no-useless-constructor': 'error',
2929
'@typescript-eslint/no-extraneous-class': 'off',
3030
'@typescript-eslint/restrict-template-expressions': 'off',
3131
'@typescript-eslint/naming-convention': 'off',
3232
'@typescript-eslint/ban-ts-comment': 'off',
33-
'@typescript-eslint/no-dynamic-delete': 'off',
3433
'n/no-path-concat': 'off',
3534
},
3635
env: {

.swcrc

Lines changed: 27 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,30 @@
1-
[
2-
{
3-
"$schema": "https://json.schemastore.org/swcrc",
4-
"jsc": {
5-
"parser": {
6-
"syntax": "typescript",
7-
"tsx": false,
8-
"decorators": true,
9-
"dynamicImport": false
10-
},
11-
"paths": {
12-
"~/*": ["dist/*"]
13-
},
14-
"target": "es2022",
15-
"loose": true,
16-
"keepClassNames": false,
17-
"externalHelpers": false,
18-
"transform": {
19-
"legacyDecorator": true,
20-
"decoratorMetadata": true
21-
}
1+
{
2+
"$schema": "https://json.schemastore.org/swcrc",
3+
"jsc": {
4+
"parser": {
5+
"syntax": "typescript",
6+
"tsx": false,
7+
"decorators": true,
8+
"dynamicImport": false
229
},
23-
"module": {
24-
"type": "commonjs",
25-
"strict": false,
26-
"strictMode": true,
27-
"lazy": false,
28-
"noInterop": false
10+
"paths": {
11+
"~/*": ["dist/*"]
2912
},
30-
"minify": true
13+
"target": "es2022",
14+
"loose": true,
15+
"keepClassNames": false,
16+
"externalHelpers": false,
17+
"transform": {
18+
"legacyDecorator": true,
19+
"decoratorMetadata": true
20+
}
3121
},
32-
{
33-
"$schema": "https://json.schemastore.org/swcrc",
34-
"jsc": {
35-
"parser": {
36-
"syntax": "ecmascript",
37-
"jsx": false,
38-
"decorators": true,
39-
"dynamicImport": false
40-
},
41-
"paths": {
42-
"~/*": ["dist/*"]
43-
},
44-
"target": "es2022",
45-
"loose": true,
46-
"keepClassNames": false,
47-
"externalHelpers": false,
48-
"transform": {
49-
"legacyDecorator": true,
50-
"decoratorMetadata": true
51-
}
52-
},
53-
"module": {
54-
"type": "commonjs",
55-
"strict": false,
56-
"strictMode": true,
57-
"lazy": false,
58-
"noInterop": false
59-
},
60-
"minify": true
61-
}
62-
]
22+
"module": {
23+
"type": "commonjs",
24+
"strict": false,
25+
"strictMode": true,
26+
"lazy": false,
27+
"noInterop": false
28+
},
29+
"minify": true
30+
}

jest.config.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

tsconfig.build.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4+
}

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"paths": {
1414
"~/*": ["./src/*"]
1515
},
16-
"typeRoots": ["./src/types"],
17-
"types": ["jest"],
16+
"typeRoots": ["./src/core/types"],
17+
// "types": ["jest"],
1818

1919
/* JavaScript Support */
2020
"allowJs": true,

0 commit comments

Comments
 (0)