Skip to content

Commit bfb3592

Browse files
[REVERT BEFORE MERGING] Extract the "decorate" helper to a new file
This has a few advantages: 1) GitHub highlights the helper code, making it easier to review 2) ESLint <3 (it caught an undeclared variable) I also added flow types to help understanding what the functions do. Thanks @Kovensky for the idea!
1 parent 7177e0d commit bfb3592

4 files changed

Lines changed: 789 additions & 105 deletions

File tree

.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
"env": {
2929
"jest": true
3030
}
31+
},
32+
{
33+
"files": [
34+
"packages/babel-helpers/src/helpers/*.js"
35+
],
36+
"rules": {
37+
"no-var": "off"
38+
}
3139
}
3240
]
3341
}

babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = function(api) {
5959
ignoreLib ? "packages/*/lib" : null,
6060
"packages/babel-standalone/babel.js",
6161
"packages/babel-preset-env-standalone/babel-preset-env.js",
62+
"packages/babel-helpers/src/helpers",
6263
].filter(Boolean),
6364
presets: [["@babel/env", envOpts]],
6465
plugins: [

0 commit comments

Comments
 (0)