Skip to content

Commit af5fbdc

Browse files
author
v8tenko
committed
feat: add babel
1 parent 5af8a74 commit af5fbdc

File tree

4 files changed

+1537
-4455
lines changed

4 files changed

+1537
-4455
lines changed

.babelrc

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
22
"env": {
33
"test": {
4-
"plugins": [
5-
"@babel/plugin-transform-modules-commonjs"
6-
]
4+
"plugins": ["@babel/plugin-transform-modules-commonjs"]
75
}
86
},
97
"presets": [
108
[
11-
"@babel/env",
9+
"@diplodoc/babel-preset",
1210
{
13-
"loose": true,
14-
"modules": false,
15-
"exclude": ["transform-typeof-symbol"]
11+
"env": {
12+
"loose": true,
13+
"modules": false,
14+
"exclude": ["transform-typeof-symbol"]
15+
},
16+
"typescript": true
1617
}
1718
]
1819
],
19-
"plugins": [
20-
"@babel/plugin-proposal-object-rest-spread"
21-
]
22-
}
20+
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
21+
}

.eslintrc

+1-6
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,5 @@
1919
"project": ["./tsconfig.transform.json", "./tsconfig.json"]
2020
}
2121
}
22-
],
23-
"settings": {
24-
"react": {
25-
"version": "detect"
26-
}
27-
}
22+
]
2823
}

0 commit comments

Comments
 (0)