Skip to content

Commit 93ec61b

Browse files
committed
initial migration
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
1 parent adf0c76 commit 93ec61b

File tree

9 files changed

+236
-198
lines changed

9 files changed

+236
-198
lines changed

.babelrc

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

.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"parser": "@babel/eslint-parser",
33
"settings": {
44
"react": {
5-
"version": "latest"
5+
"version": "detect"
66
},
77
"import/extensions": [
88
".js"
@@ -63,4 +63,4 @@
6363
"filenames",
6464
"react-hooks"
6565
]
66-
}
66+
}

.swcrc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"jsc": {
3+
"parser": {
4+
"syntax": "ecmascript",
5+
"jsx": true,
6+
"dynamicImport": true
7+
},
8+
"transform": {
9+
"react": {
10+
"runtime": "automatic",
11+
"development": false,
12+
"useBuiltins": true
13+
}
14+
},
15+
"loose": false,
16+
"externalHelpers": false
17+
},
18+
"env": {
19+
"targets": {
20+
"ie": "11",
21+
"chrome": "58",
22+
"firefox": "54",
23+
"safari": "10",
24+
"edge": "15",
25+
"ios": "8",
26+
"android": "4"
27+
},
28+
"mode": "usage",
29+
"coreJs": "3"
30+
},
31+
"module": {
32+
"type": "commonjs",
33+
"strict": false,
34+
"strictMode": true,
35+
"lazy": false,
36+
"noInterop": false
37+
},
38+
"minify": false,
39+
"isModule": true
40+
}

.swcrc.test

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"jsc": {
3+
"parser": {
4+
"syntax": "ecmascript",
5+
"jsx": true,
6+
"dynamicImport": true
7+
},
8+
"transform": {
9+
"react": {
10+
"runtime": "automatic",
11+
"development": true
12+
}
13+
},
14+
"target": "es2018",
15+
"experimental": {
16+
"plugins": [
17+
["swc-plugin-coverage-instrument", {}]
18+
]
19+
}
20+
},
21+
"module": {
22+
"type": "commonjs"
23+
}
24+
}

0 commit comments

Comments
 (0)