Skip to content

Commit

Permalink
[REVERT BEFORE MERGING] Extract the "decorate" helper to a new file
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
nicolo-ribaudo committed Jul 3, 2018
1 parent ecf1fcd commit ce8a181
Show file tree
Hide file tree
Showing 4 changed files with 789 additions and 105 deletions.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
"env": {
"jest": true
}
},
{
"files": [
"packages/babel-helpers/src/helpers/*.js"
],
"rules": {
"no-var": "off"
}
}
]
}
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = function(api) {
ignoreLib ? "packages/*/lib" : null,
"packages/babel-standalone/babel.js",
"packages/babel-preset-env-standalone/babel-preset-env.js",
"packages/babel-helpers/src/helpers",
].filter(Boolean),
presets: [["@babel/env", envOpts]],
plugins: [
Expand Down
Loading

0 comments on commit ce8a181

Please sign in to comment.