Skip to content

Commit

Permalink
Revert "Add support for optional chaining and nullish coalescing to b…
Browse files Browse the repository at this point in the history
…abel"
  • Loading branch information
dekkerglen authored Mar 12, 2020
1 parent 1a0e6d4 commit 1c9aca8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 263 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ env:
extends:
- airbnb
- prettier
parser: 'babel-eslint'
plugins:
- jest
- prettier
- react-hooks
- babel
settings:
import/resolver:
webpack:
Expand Down
16 changes: 6 additions & 10 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
module.exports = (api) => {
module.exports = function(api) {
api.cache(true);
return {
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 3,
exclude: ['es.promise'],
},
],
['@babel/preset-env', {
useBuiltIns: 'usage',
corejs: 3,
exclude: ['es.promise'],
}],
'@babel/preset-react',
],
plugins: ['@babel/plugin-proposal-nullish-coalescing-operator', '@babel/plugin-proposal-optional-chaining'],
};
};
247 changes: 0 additions & 247 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,10 @@
},
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
"@babel/preset-env": "^7.7.1",
"@babel/preset-react": "^7.7.0",
"@testing-library/jest-dom": "^5.0.0",
"@testing-library/react": "^9.4.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"chart.js": "^2.9.2",
Expand All @@ -103,7 +100,6 @@
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.5.0",
"eslint-import-resolver-webpack": "^0.12.1",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^23.1.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
Expand Down

0 comments on commit 1c9aca8

Please sign in to comment.