Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit 6a141f7

Browse files
authoredFeb 26, 2018
Replace babel-preset-es2015 by babel-preset-env (#20)
* chore(): replace babel-preset-es2015 by babel-preset-env * fix(build): fix targets in babel-preset-env config * fix(eslint): fix config and indentation
1 parent fee667d commit 6a141f7

File tree

4 files changed

+276
-165
lines changed

4 files changed

+276
-165
lines changed
 

‎.babelrc

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
2-
"presets": ["es2015"],
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"browsers": ["last 9 versions", "ie >= 10"]
6+
}
7+
}]
8+
],
39
"plugins": ["lodash", "transform-runtime"],
410
"comments": false
511
}

‎.eslintrc.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ module.exports = {
2020
"generator-star-spacing": 0,
2121
"no-magic-numbers": ["error", {
2222
"ignore": [0, -1, 1, 2, 3]
23-
}]
23+
}],
24+
"no-console": isDistribution ? 2 : 0,
25+
"no-debugger": isDistribution ? 2 : 0
2426
}
2527
}

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"babel-loader": "^7.0.0",
2020
"babel-plugin-lodash": "^3.2.11",
2121
"babel-plugin-transform-runtime": "~6.23.0",
22-
"babel-preset-es2015": "~6.24.1",
23-
"babel-register": "^6.24.1",
22+
"babel-preset-env": "^1.6.1",
23+
"babel-register": "~6.24.1",
2424
"eslint": "^4.17.0",
2525
"eslint-config-ovh": "^0.1.1",
2626
"eslint-friendly-formatter": "~3.0.0",

‎yarn.lock

+264-161
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
This repository has been archived.