Skip to content

Commit 9807cfa

Browse files
committed
chore: add babel option-chaining plugin
1 parent a2fcf31 commit 9807cfa

File tree

4 files changed

+50
-2
lines changed

4 files changed

+50
-2
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"regenerator": true
2828
}
2929
],
30-
"@babel/plugin-syntax-dynamic-import"
30+
"@babel/plugin-syntax-dynamic-import",
31+
"@babel/plugin-proposal-optional-chaining"
3132
],
3233
"env": {
3334
"test": {

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"no-console": [2, { "allow": ["warn", "error"] }],
2626
"semi": [2, "never"],
2727
"no-extra-semi": 2,
28-
"space-before-function-paren": ["error", "never"],
2928
"react/jsx-boolean-value": [2, "always"],
3029
"react/jsx-curly-spacing": [2, "never", { "allowMultiline": false }],
3130
"react/jsx-no-literals": 2,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"@babel/core": "^7.4.5",
5151
"@babel/plugin-proposal-class-properties": "^7.4.4",
5252
"@babel/plugin-proposal-decorators": "^7.4.4",
53+
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
5354
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
5455
"@babel/plugin-transform-runtime": "^7.4.4",
5556
"@babel/preset-env": "^7.4.5",

yarn.lock

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@
162162
resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz#bbb3fbee98661c569034237cc03967ba99b4f250"
163163
integrity sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==
164164

165+
"@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.8.0":
166+
version "7.10.4"
167+
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.10.4.tgz#2f75a831269d4f677de49986dff59927533cf375"
168+
integrity sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==
169+
165170
"@babel/helper-regex@^7.0.0", "@babel/helper-regex@^7.4.4":
166171
version "7.4.4"
167172
resolved "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.4.4.tgz#a47e02bc91fb259d2e6727c2a30013e3ac13c4a2"
@@ -198,13 +203,25 @@
198203
"@babel/template" "^7.1.0"
199204
"@babel/types" "^7.0.0"
200205

206+
"@babel/helper-skip-transparent-expression-wrappers@^7.11.0":
207+
version "7.11.0"
208+
resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.11.0.tgz#eec162f112c2f58d3af0af125e3bb57665146729"
209+
integrity sha512-0XIdiQln4Elglgjbwo9wuJpL/K7AGCY26kmEt0+pRP0TAj4jjyNq1MjoRvikrTVqKcx4Gysxt4cXvVFXP/JO2Q==
210+
dependencies:
211+
"@babel/types" "^7.11.0"
212+
201213
"@babel/helper-split-export-declaration@^7.4.4":
202214
version "7.4.4"
203215
resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz#ff94894a340be78f53f06af038b205c49d993677"
204216
integrity sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==
205217
dependencies:
206218
"@babel/types" "^7.4.4"
207219

220+
"@babel/helper-validator-identifier@^7.10.4":
221+
version "7.10.4"
222+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2"
223+
integrity sha512-3U9y+43hz7ZM+rzG24Qe2mufW5KhvFg/NhnNph+i9mgCtdTCtMJuI1TMkrIUiK7Ix4PYlRF9I5dhqaLYA/ADXw==
224+
208225
"@babel/helper-wrap-function@^7.1.0":
209226
version "7.2.0"
210227
resolved "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz#c4e0012445769e2815b55296ead43a958549f6fa"
@@ -288,6 +305,15 @@
288305
"@babel/helper-plugin-utils" "^7.0.0"
289306
"@babel/plugin-syntax-optional-catch-binding" "^7.2.0"
290307

308+
"@babel/plugin-proposal-optional-chaining@^7.11.0":
309+
version "7.11.0"
310+
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.11.0.tgz#de5866d0646f6afdaab8a566382fe3a221755076"
311+
integrity sha512-v9fZIu3Y8562RRwhm1BbMRxtqZNFmFA2EG+pT2diuU8PT3H6T/KXoZ54KgYisfOFZHV6PfvAiBIZ9Rcz+/JCxA==
312+
dependencies:
313+
"@babel/helper-plugin-utils" "^7.10.4"
314+
"@babel/helper-skip-transparent-expression-wrappers" "^7.11.0"
315+
"@babel/plugin-syntax-optional-chaining" "^7.8.0"
316+
291317
"@babel/plugin-proposal-unicode-property-regex@^7.4.4":
292318
version "7.4.4"
293319
resolved "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.4.4.tgz#501ffd9826c0b91da22690720722ac7cb1ca9c78"
@@ -346,6 +372,13 @@
346372
dependencies:
347373
"@babel/helper-plugin-utils" "^7.0.0"
348374

375+
"@babel/plugin-syntax-optional-chaining@^7.8.0":
376+
version "7.8.3"
377+
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a"
378+
integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==
379+
dependencies:
380+
"@babel/helper-plugin-utils" "^7.8.0"
381+
349382
"@babel/plugin-syntax-typescript@^7.2.0":
350383
version "7.3.3"
351384
resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.3.3.tgz#a7cc3f66119a9f7ebe2de5383cce193473d65991"
@@ -773,6 +806,15 @@
773806
lodash "^4.17.11"
774807
to-fast-properties "^2.0.0"
775808

809+
"@babel/types@^7.11.0":
810+
version "7.11.0"
811+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.0.tgz#2ae6bf1ba9ae8c3c43824e5861269871b206e90d"
812+
integrity sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA==
813+
dependencies:
814+
"@babel/helper-validator-identifier" "^7.10.4"
815+
lodash "^4.17.19"
816+
to-fast-properties "^2.0.0"
817+
776818
"@cnakazawa/watch@^1.0.3":
777819
version "1.0.3"
778820
resolved "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef"
@@ -7681,6 +7723,11 @@ lodash@^4, lodash@^4.0.0, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, loda
76817723
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
76827724
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==
76837725

7726+
lodash@^4.17.19:
7727+
version "4.17.19"
7728+
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
7729+
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
7730+
76847731
loglevel@^1.6.1:
76857732
version "1.6.1"
76867733
resolved "https://registry.npmjs.org/loglevel/-/loglevel-1.6.1.tgz#e0fc95133b6ef276cdc8887cdaf24aa6f156f8fa"

0 commit comments

Comments
 (0)