Skip to content

Commit

Permalink
Merge pull request #338 from realityking/babel
Browse files Browse the repository at this point in the history
Upgrade babel-preset-airbnb to version 5
  • Loading branch information
trotzig authored Nov 16, 2020
2 parents 29923ba + 6849429 commit a8edd64
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
{
"env": {
"test": {
"presets": [["airbnb", { "modules": true }]]
"presets": [["airbnb", {
"modules": true,
"transformRuntime": false
}]]
},
"production": {
"presets": [["airbnb", { "modules": false }]]
"presets": [["airbnb", {
"modules": false,
"transformRuntime": false
}]]
},
"development": {
"presets": [["airbnb", { "modules": false }]]
"presets": [["airbnb", {
"modules": false,
"transformRuntime": false
}]]
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@rollup/plugin-babel": "^5.2.1",
"@types/react": "^15.0.21",
"babel-loader": "^8.0.0",
"babel-preset-airbnb": "^3.2.0",
"babel-preset-airbnb": "^5.0.0",
"eslint": "^7.12.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.22.0",
Expand Down

0 comments on commit a8edd64

Please sign in to comment.