Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Update babel dependencies to core-js 3 #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"presets": ["es2015"],
"presets": [
"@babel/preset-env",
"@babel/preset-flow"
],
"plugins": [
"transform-runtime",
["@babel/plugin-transform-runtime", { "corejs": 3 }],
"babel-plugin-add-module-exports",
"transform-flow-strip-types",
"transform-class-properties"
"@babel/plugin-transform-flow-strip-types",
"@babel/plugin-proposal-class-properties"
],
"env": {
"test": {
"presets": ["es2015", "es2017"],
"plugins": ["istanbul", "transform-class-properties"]
"presets": [
"@babel/preset-env",
"@babel/preset-env"
],
"plugins": [
"istanbul",
"@babel/plugin-proposal-class-properties"
]
}
}
}
10 changes: 6 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"globalReturn": true,
"globalReturn": true
}
},
"globals": {
"globals": {
"document": true,
"window": true,
"__VERSION__": true
},
"plugins": [],
"extends": [
"airbnb",
"airbnb"
],
"rules": {
"arrow-body-style": [1, "as-needed"],
Expand All @@ -24,6 +24,8 @@
"consistent-return": 0,
"import/no-unresolved": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0
"import/no-extraneous-dependencies": 0,
"no-undef": "off",
"no-unused-vars": "off"
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ gh-pages/
npm-debug.log
yarn-error.log
test/coverage

# IDE
.idea/
34 changes: 20 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "promise wrappers for functions",
"author": "Claudio Romano <[email protected]>",
"license": "MIT",
"version": "1.0.0-development",
"version": "1.0.1-development",
"repository": {
"type": "git",
"url": "https://github.com/panter/promised.git"
Expand All @@ -28,19 +28,26 @@
},
"main": "/lib/index.js",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.0.0",
"babel-eslint": "^6.1.2",
"babel-loader": "^6.0.0",
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-decorators": "^7.0.0",
"@babel/plugin-proposal-export-namespace-from": "^7.0.0",
"@babel/plugin-proposal-function-sent": "^7.0.0",
"@babel/plugin-proposal-json-strings": "^7.0.0",
"@babel/plugin-proposal-numeric-separator": "^7.0.0",
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/runtime-corejs3": "^7.11.2",
"babel-eslint": "^9.0.0",
"babel-loader": "^8.0.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-istanbul": "^3.1.2",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.0",
"babel-preset-es2015": "6.x.x",
"babel-preset-es2017": "^6.24.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-stage-2": "6.x.x",
"chai": "^3.5.0",
"coveralls": "^2.13.1",
"cross-env": "^3.0.0",
Expand Down Expand Up @@ -80,6 +87,5 @@
"sinon-chai": "^2.8.0",
"webpack": "^2.2.0",
"webpack-dev-server": "^2.2.0"
},
"dependencies": {}
}
}
Loading