Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit a97e267

Browse files
committed
add babe-eslint (to support optional chaining)
1 parent 66da38a commit a97e267

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
parser: 'babel-eslint',
23
parserOptions: {
34
ecmaFeatures: {
45
jsx: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"react-dom": "^16.13.1"
3030
},
3131
"devDependencies": {
32+
"babel-eslint": "^10.1.0",
3233
"eslint": "^7.7.0",
3334
"eslint-config-prettier": "^6.11.0",
3435
"eslint-plugin-import": "^2.22.0",

yarn.lock

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
chalk "^2.0.0"
330330
js-tokens "^4.0.0"
331331

332-
"@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.7.7":
332+
"@babel/parser@^7.10.4", "@babel/parser@^7.11.0", "@babel/parser@^7.7.0", "@babel/parser@^7.7.7":
333333
version "7.11.4"
334334
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.4.tgz#6fa1a118b8b0d80d0267b719213dc947e88cc0ca"
335335
integrity sha512-MggwidiH+E9j5Sh8pbrX5sJvMcsqS5o+7iB42M9/k0CD63MjYbdP4nhSh7uB5wnv2/RVzTZFTxzF/kIa5mrCqA==
@@ -1003,7 +1003,7 @@
10031003
"@babel/parser" "^7.10.4"
10041004
"@babel/types" "^7.10.4"
10051005

1006-
"@babel/traverse@^7.10.4", "@babel/traverse@^7.7.4":
1006+
"@babel/traverse@^7.10.4", "@babel/traverse@^7.7.0", "@babel/traverse@^7.7.4":
10071007
version "7.11.0"
10081008
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.11.0.tgz#9b996ce1b98f53f7c3e4175115605d56ed07dd24"
10091009
integrity sha512-ZB2V+LskoWKNpMq6E5UUCrjtDUh5IOTAyIl0dTjIEoXum/iKWkoIEKIRDnUucO6f+2FzNkE0oD4RLKoPIufDtg==
@@ -1036,7 +1036,7 @@
10361036
lodash "^4.17.13"
10371037
to-fast-properties "^2.0.0"
10381038

1039-
"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.4.4", "@babel/types@^7.7.4", "@babel/types@^7.9.6":
1039+
"@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.4.4", "@babel/types@^7.7.0", "@babel/types@^7.7.4", "@babel/types@^7.9.6":
10401040
version "7.11.0"
10411041
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.0.tgz#2ae6bf1ba9ae8c3c43824e5861269871b206e90d"
10421042
integrity sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA==
@@ -1539,6 +1539,18 @@ axobject-query@^2.1.2:
15391539
resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be"
15401540
integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA==
15411541

1542+
babel-eslint@^10.1.0:
1543+
version "10.1.0"
1544+
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-10.1.0.tgz#6968e568a910b78fb3779cdd8b6ac2f479943232"
1545+
integrity sha512-ifWaTHQ0ce+448CYop8AdrQiBsGrnC+bMgfyKFdi6EsPLTAWG+QfyDeM6OH+FmWnKvEq5NnBMLvlBUPKQZoDSg==
1546+
dependencies:
1547+
"@babel/code-frame" "^7.0.0"
1548+
"@babel/parser" "^7.7.0"
1549+
"@babel/traverse" "^7.7.0"
1550+
"@babel/types" "^7.7.0"
1551+
eslint-visitor-keys "^1.0.0"
1552+
resolve "^1.12.0"
1553+
15421554
babel-plugin-dynamic-import-node@^2.3.3:
15431555
version "2.3.3"
15441556
resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3"
@@ -2768,7 +2780,7 @@ eslint-utils@^2.1.0:
27682780
dependencies:
27692781
eslint-visitor-keys "^1.1.0"
27702782

2771-
eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0:
2783+
eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0:
27722784
version "1.3.0"
27732785
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
27742786
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
@@ -5356,7 +5368,7 @@ resolve-url@^0.2.1:
53565368
resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
53575369
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
53585370

5359-
resolve@^1.10.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.3.2, resolve@^1.8.1:
5371+
resolve@^1.10.0, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.3.2, resolve@^1.8.1:
53605372
version "1.17.0"
53615373
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444"
53625374
integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==

0 commit comments

Comments
 (0)