Skip to content

Commit a7ee500

Browse files
Update @callstack/eslint-config to the latest version 🚀 (#131)
* chore(package): update @callstack/eslint-config to version 10.0.0 * chore(package): update lockfile yarn.lock * run lint fix Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com> Co-authored-by: MichaÅ‚ PierzchaÅ‚a <[email protected]>
1 parent a1aa7a6 commit a7ee500

File tree

4 files changed

+117
-28
lines changed

4 files changed

+117
-28
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@babel/preset-env": "^7.7.1",
3333
"@babel/preset-flow": "^7.0.0",
3434
"@babel/preset-react": "^7.7.0",
35-
"@callstack/eslint-config": "^9.1.0",
35+
"@callstack/eslint-config": "^10.0.0",
3636
"enzyme": "^3.10.0",
3737
"enzyme-adapter-react-16": "^1.14.0",
3838
"enzyme-to-json": "^3.4.0",

‎src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const defaultOptions = {
2626

2727
const SNAPSHOT_TITLE = 'Snapshot Diff:\n';
2828

29-
const identity = value => value;
29+
const identity = (value) => value;
3030
const defaultSerializers = [reactSerializer];
3131
let serializers = defaultSerializers;
3232

‎src/react-serializer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ function getReactComponentSerializer() {
2424
}
2525
throw error;
2626
}
27-
return value =>
27+
return (value) =>
2828
prettyFormat(renderer.create(value), { plugins: serializers });
2929
}
3030

3131
const reactSerializer = {
3232
test: (value: any) => value && value.$$typeof === reactElement,
33-
print: (value: any, _serializer?: any => any) => {
33+
print: (value: any, _serializer?: (any) => any) => {
3434
const reactComponentSerializer = getReactComponentSerializer();
3535
return reactComponentSerializer(value);
3636
},

‎yarn.lock

Lines changed: 113 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,13 @@
924924
"@babel/plugin-transform-react-jsx-self" "^7.0.0"
925925
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
926926

927+
"@babel/runtime@^7.9.2":
928+
version "7.9.6"
929+
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.6.tgz#a9102eb5cadedf3f31d08a9ecf294af7827ea29f"
930+
integrity sha512-64AF1xY3OAkFHqOb9s4jpgk1Mm5vDZ4L3acHvAml+53nO1XbXLuDodsVpO4OIUsmemlUHMxNdYMNJmsvOwLrvQ==
931+
dependencies:
932+
regenerator-runtime "^0.13.4"
933+
927934
"@babel/template@^7.1.0", "@babel/template@^7.2.2", "@babel/template@^7.7.0":
928935
version "7.7.0"
929936
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.0.tgz#4fadc1b8e734d97f56de39c77de76f2562e597d0"
@@ -1013,23 +1020,26 @@
10131020
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
10141021
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
10151022

1016-
"@callstack/eslint-config@^9.1.0":
1017-
version "9.1.0"
1018-
resolved "https://registry.yarnpkg.com/@callstack/eslint-config/-/eslint-config-9.1.0.tgz#098e400f0d92be8cca375b8f03bb7594179e5856"
1019-
integrity sha512-mesv2gOOkb+tf80LbCWd2A05cZ5W7U/UGTwJxxDoeU/rw9XI8qWsBWkwpuY73MxFH+zzSqqSsDn9O3UfOxhpeg==
1023+
"@callstack/eslint-config@^10.0.0":
1024+
version "10.0.0"
1025+
resolved "https://registry.yarnpkg.com/@callstack/eslint-config/-/eslint-config-10.0.0.tgz#d7a6c1e950dbc27c65b486c403a6e8ab17d61756"
1026+
integrity sha512-VywLiGompJeUEHAEVt20Y66k5z6016F7r2cEHB7/SQMjtcK9Cftakp7KJcH0acgbyaSciGV2hzDuwd8402YJGw==
10201027
dependencies:
1028+
"@typescript-eslint/eslint-plugin" "^2.31.0"
1029+
"@typescript-eslint/parser" "^2.31.0"
10211030
babel-eslint "^10.0.3"
1022-
eslint-config-prettier "^6.7.0"
1031+
eslint-config-prettier "^6.10.1"
10231032
eslint-plugin-flowtype "^4.5.2"
10241033
eslint-plugin-import "^2.19.1"
10251034
eslint-plugin-jest "^23.1.1"
1026-
eslint-plugin-prettier "^3.1.1"
1035+
eslint-plugin-prettier "^3.1.3"
10271036
eslint-plugin-promise "^4.2.1"
10281037
eslint-plugin-react "^7.17.0"
1029-
eslint-plugin-react-hooks "^2.3.0"
1038+
eslint-plugin-react-hooks "^4.0.0"
10301039
eslint-plugin-react-native "^3.8.1"
1040+
eslint-plugin-react-native-a11y "^2.0.0"
10311041
eslint-restricted-globals "^0.2.0"
1032-
prettier "^1.19.1"
1042+
prettier "^2.0.4"
10331043

10341044
"@cnakazawa/watch@^1.0.3":
10351045
version "1.0.3"
@@ -1272,6 +1282,11 @@
12721282
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
12731283
integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
12741284

1285+
"@types/eslint-visitor-keys@^1.0.0":
1286+
version "1.0.0"
1287+
resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
1288+
integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==
1289+
12751290
"@types/graceful-fs@^4.1.2":
12761291
version "4.1.3"
12771292
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.3.tgz#039af35fe26bec35003e8d86d2ee9c586354348f"
@@ -1336,6 +1351,26 @@
13361351
dependencies:
13371352
"@types/yargs-parser" "*"
13381353

1354+
"@typescript-eslint/eslint-plugin@^2.31.0":
1355+
version "2.33.0"
1356+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.33.0.tgz#d6c8319d5011b4783bb3d2dadf105d8bdd499bd5"
1357+
integrity sha512-QV6P32Btu1sCI/kTqjTNI/8OpCYyvlGjW5vD8MpTIg+HGE5S88HtT1G+880M4bXlvXj/NjsJJG0aGcVh0DdbeQ==
1358+
dependencies:
1359+
"@typescript-eslint/experimental-utils" "2.33.0"
1360+
functional-red-black-tree "^1.0.1"
1361+
regexpp "^3.0.0"
1362+
tsutils "^3.17.1"
1363+
1364+
"@typescript-eslint/[email protected]":
1365+
version "2.33.0"
1366+
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.33.0.tgz#000f1e5f344fbea1323dc91cc174805d75f99a03"
1367+
integrity sha512-qzPM2AuxtMrRq78LwyZa8Qn6gcY8obkIrBs1ehqmQADwkYzTE1Pb4y2W+U3rE/iFkSWcWHG2LS6MJfj6SmHApg==
1368+
dependencies:
1369+
"@types/json-schema" "^7.0.3"
1370+
"@typescript-eslint/typescript-estree" "2.33.0"
1371+
eslint-scope "^5.0.0"
1372+
eslint-utils "^2.0.0"
1373+
13391374
"@typescript-eslint/experimental-utils@^2.5.0":
13401375
version "2.11.0"
13411376
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz#cef18e6b122706c65248a5d8984a9779ed1e52ac"
@@ -1345,6 +1380,16 @@
13451380
"@typescript-eslint/typescript-estree" "2.11.0"
13461381
eslint-scope "^5.0.0"
13471382

1383+
"@typescript-eslint/parser@^2.31.0":
1384+
version "2.33.0"
1385+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.33.0.tgz#395c0ef229ebef883608f8632a34f0acf02b9bdd"
1386+
integrity sha512-AUtmwUUhJoH6yrtxZMHbRUEMsC2G6z5NSxg9KsROOGqNXasM71I8P2NihtumlWTUCRld70vqIZ6Pm4E5PAziEA==
1387+
dependencies:
1388+
"@types/eslint-visitor-keys" "^1.0.0"
1389+
"@typescript-eslint/experimental-utils" "2.33.0"
1390+
"@typescript-eslint/typescript-estree" "2.33.0"
1391+
eslint-visitor-keys "^1.1.0"
1392+
13481393
"@typescript-eslint/[email protected]":
13491394
version "2.11.0"
13501395
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.11.0.tgz#21ada6504274cd1644855926312c798fc697e9fb"
@@ -1358,6 +1403,19 @@
13581403
semver "^6.3.0"
13591404
tsutils "^3.17.1"
13601405

1406+
"@typescript-eslint/[email protected]":
1407+
version "2.33.0"
1408+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.33.0.tgz#33504c050ccafd38f397a645d4e9534d2eccbb5c"
1409+
integrity sha512-d8rY6/yUxb0+mEwTShCQF2zYQdLlqihukNfG9IUlLYz5y1CH6G/9XYbrxQLq3Z14RNvkCC6oe+OcFlyUpwUbkg==
1410+
dependencies:
1411+
debug "^4.1.1"
1412+
eslint-visitor-keys "^1.1.0"
1413+
glob "^7.1.6"
1414+
is-glob "^4.0.1"
1415+
lodash "^4.17.15"
1416+
semver "^7.3.2"
1417+
tsutils "^3.17.1"
1418+
13611419
abab@^2.0.3:
13621420
version "2.0.3"
13631421
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a"
@@ -1571,6 +1629,11 @@ assign-symbols@^1.0.0:
15711629
resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367"
15721630
integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=
15731631

1632+
ast-types-flow@^0.0.7:
1633+
version "0.0.7"
1634+
resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad"
1635+
integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0=
1636+
15741637
astral-regex@^1.0.0:
15751638
version "1.0.0"
15761639
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
@@ -2495,10 +2558,10 @@ escodegen@^1.14.1:
24952558
optionalDependencies:
24962559
source-map "~0.6.1"
24972560

2498-
eslint-config-prettier@^6.7.0:
2499-
version "6.7.0"
2500-
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.7.0.tgz#9a876952e12df2b284adbd3440994bf1f39dfbb9"
2501-
integrity sha512-FamQVKM3jjUVwhG4hEMnbtsq7xOIDm+SY5iBPfR8gKsJoAB2IQnNF+bk1+8Fy44Nq7PPJaLvkRxILYdJWoguKQ==
2561+
eslint-config-prettier@^6.10.1:
2562+
version "6.11.0"
2563+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.11.0.tgz#f6d2238c1290d01c859a8b5c1f7d352a0b0da8b1"
2564+
integrity sha512-oB8cpLWSAjOVFEJhhyMZh6NOEOtBVziaqdDQ86+qhDHFbZXoRTM7pNSvFRfW/W/L/LrQ38C99J5CGuRBBzBsdA==
25022565
dependencies:
25032566
get-stdin "^6.0.0"
25042567

@@ -2555,10 +2618,10 @@ eslint-plugin-jest@^23.1.1:
25552618
dependencies:
25562619
"@typescript-eslint/experimental-utils" "^2.5.0"
25572620

2558-
eslint-plugin-prettier@^3.1.1:
2559-
version "3.1.1"
2560-
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.1.tgz#507b8562410d02a03f0ddc949c616f877852f2ba"
2561-
integrity sha512-A+TZuHZ0KU0cnn56/9mfR7/KjUJ9QNVXUhwvRFSR7PGPe0zQR6PTkmyqg1AtUUEOzTqeRsUwyKFh0oVZKVCrtA==
2621+
eslint-plugin-prettier@^3.1.3:
2622+
version "3.1.3"
2623+
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.3.tgz#ae116a0fc0e598fdae48743a4430903de5b4e6ca"
2624+
integrity sha512-+HG5jmu/dN3ZV3T6eCD7a4BlAySdN7mLIbJYo0z1cFQuI+r2DiTJEFeF68ots93PsnrMxbzIZ2S/ieX+mkrBeQ==
25622625
dependencies:
25632626
prettier-linter-helpers "^1.0.0"
25642627

@@ -2567,10 +2630,19 @@ eslint-plugin-promise@^4.2.1:
25672630
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-4.2.1.tgz#845fd8b2260ad8f82564c1222fce44ad71d9418a"
25682631
integrity sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==
25692632

2570-
eslint-plugin-react-hooks@^2.3.0:
2571-
version "2.3.0"
2572-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-2.3.0.tgz#53e073961f1f5ccf8dd19558036c1fac8c29d99a"
2573-
integrity sha512-gLKCa52G4ee7uXzdLiorca7JIQZPPXRAQDXV83J4bUEeUuc5pIEyZYAZ45Xnxe5IuupxEqHS+hUhSLIimK1EMw==
2633+
eslint-plugin-react-hooks@^4.0.0:
2634+
version "4.0.2"
2635+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.0.2.tgz#03700ca761eacc1b6436074c456f90a8e331ff28"
2636+
integrity sha512-kAMRjNztrLW1rK+81X1NwMB2LqG+nc7Q8AibnG8/VyWhQK8SP6JotCFG+HL4u1EjziplxVz4jARdR8gGk8pLDA==
2637+
2638+
eslint-plugin-react-native-a11y@^2.0.0:
2639+
version "2.0.0"
2640+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-native-a11y/-/eslint-plugin-react-native-a11y-2.0.0.tgz#073a9cd6a15dd4d157f71d875e02671fdad57d37"
2641+
integrity sha512-GGObfzttlR3bs8sy25/r5Rw3/7cfbigi/uIlvqTg/lUSzmzljrhXf7lkwKKDJh0O21XVxrVDz94BAqXU5wU+xw==
2642+
dependencies:
2643+
"@babel/runtime" "^7.9.2"
2644+
ast-types-flow "^0.0.7"
2645+
jsx-ast-utils "^2.2.3"
25742646

25752647
eslint-plugin-react-native-globals@^0.1.1:
25762648
version "0.1.2"
@@ -2620,6 +2692,13 @@ eslint-utils@^1.4.3:
26202692
dependencies:
26212693
eslint-visitor-keys "^1.1.0"
26222694

2695+
eslint-utils@^2.0.0:
2696+
version "2.0.0"
2697+
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.0.0.tgz#7be1cc70f27a72a76cd14aa698bcabed6890e1cd"
2698+
integrity sha512-0HCPuJv+7Wv1bACm8y5/ECVfYdfsAm9xmVb7saeFlxjPYALefjhbYoCkBjPdPzGH8wWyTpAez82Fh3VKYEZ8OA==
2699+
dependencies:
2700+
eslint-visitor-keys "^1.1.0"
2701+
26232702
eslint-visitor-keys@^1.0.0:
26242703
version "1.0.0"
26252704
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
@@ -4902,10 +4981,10 @@ prettier-linter-helpers@^1.0.0:
49024981
dependencies:
49034982
fast-diff "^1.1.2"
49044983

4905-
prettier@^1.19.1:
4906-
version "1.19.1"
4907-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
4908-
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
4984+
prettier@^2.0.4:
4985+
version "2.0.5"
4986+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
4987+
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
49094988

49104989
pretty-format@^26.0.1:
49114990
version "26.0.1"
@@ -5155,6 +5234,11 @@ regenerate@^1.4.0:
51555234
resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11"
51565235
integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==
51575236

5237+
regenerator-runtime@^0.13.4:
5238+
version "0.13.5"
5239+
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697"
5240+
integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==
5241+
51585242
regenerator-transform@^0.14.0:
51595243
version "0.14.1"
51605244
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.1.tgz#3b2fce4e1ab7732c08f665dfdb314749c7ddd2fb"
@@ -5175,6 +5259,11 @@ regexpp@^2.0.1:
51755259
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f"
51765260
integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==
51775261

5262+
regexpp@^3.0.0:
5263+
version "3.1.0"
5264+
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2"
5265+
integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q==
5266+
51785267
regexpu-core@^4.6.0:
51795268
version "4.6.0"
51805269
resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.6.0.tgz#2037c18b327cfce8a6fea2a4ec441f2432afb8b6"

0 commit comments

Comments
 (0)