Skip to content

Commit e68f54f

Browse files
authored
build(lint): Bump eslint-plugin-deprecation to 1.5.0 (#9160)
There were some bugs in the previous version where deprecated messages would show up as `[object Object]` instead of showing the actual deprecation messages. bumping this to 1.5.0 fixes this. (esp. https://github.com/gund/eslint-plugin-deprecation/releases/tag/v1.3.1 is important for us)
1 parent dfc6d2e commit e68f54f

File tree

3 files changed

+84
-52
lines changed

3 files changed

+84
-52
lines changed

packages/eslint-config-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@typescript-eslint/eslint-plugin": "^5.48.0",
2525
"@typescript-eslint/parser": "^5.48.0",
2626
"eslint-config-prettier": "^6.11.0",
27-
"eslint-plugin-deprecation": "^1.1.0",
27+
"eslint-plugin-deprecation": "^1.5.0",
2828
"eslint-plugin-import": "^2.22.0",
2929
"eslint-plugin-jest": "^27.2.2",
3030
"eslint-plugin-jsdoc": "^30.0.3",

packages/eslint-config-sdk/src/index.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ module.exports = {
1616
{
1717
// Configuration for typescript files
1818
files: ['*.ts', '*.tsx', '*.d.ts'],
19-
extends: ['plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint', 'plugin:import/typescript'],
20-
plugins: ['@typescript-eslint', 'jsdoc', 'deprecation'],
19+
extends: [
20+
'plugin:@typescript-eslint/recommended',
21+
'prettier/@typescript-eslint',
22+
'plugin:import/typescript',
23+
'plugin:deprecation/recommended',
24+
],
25+
plugins: ['@typescript-eslint', 'jsdoc'],
2126
parser: '@typescript-eslint/parser',
2227
rules: {
2328
// We want to guard against using the equality operator with empty arrays
@@ -87,9 +92,6 @@ module.exports = {
8792
// Make sure Promises are handled appropriately
8893
'@typescript-eslint/no-floating-promises': 'error',
8994

90-
// Do not use deprecated methods
91-
'deprecation/deprecation': 'error',
92-
9395
// sort imports
9496
'simple-import-sort/sort': 'error',
9597
'sort-imports': 'off',

yarn.lock

Lines changed: 76 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5346,11 +5346,16 @@
53465346
"@types/parse5" "*"
53475347
"@types/tough-cookie" "*"
53485348

5349-
"@types/json-schema@*", "@types/json-schema@^7.0.3", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
5349+
"@types/json-schema@*", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9":
53505350
version "7.0.11"
53515351
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3"
53525352
integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==
53535353

5354+
"@types/json-schema@^7.0.12":
5355+
version "7.0.13"
5356+
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.13.tgz#02c24f4363176d2d18fc8b70b9f3c54aba178a85"
5357+
integrity sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==
5358+
53545359
"@types/json5@^0.0.29":
53555360
version "0.0.29"
53565361
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
@@ -5602,6 +5607,11 @@
56025607
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91"
56035608
integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw==
56045609

5610+
"@types/semver@^7.5.0":
5611+
version "7.5.3"
5612+
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.3.tgz#9a726e116beb26c24f1ccd6850201e1246122e04"
5613+
integrity sha512-OxepLK9EuNEIPxWNME+C6WwbRAOOI2o2BaQEGzz5Lu2e4Z5eDnEo+/aVEDMIXywoJitJ7xWd641wrGLZdtwRyw==
5614+
56055615
"@types/send@*":
56065616
version "0.17.1"
56075617
resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.1.tgz#ed4932b8a2a805f1fe362a70f4e62d0ac994e301"
@@ -5758,17 +5768,6 @@
57585768
semver "^7.3.7"
57595769
tsutils "^3.21.0"
57605770

5761-
"@typescript-eslint/experimental-utils@^2.19.2 || ^3.0.0":
5762-
version "3.10.1"
5763-
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686"
5764-
integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw==
5765-
dependencies:
5766-
"@types/json-schema" "^7.0.3"
5767-
"@typescript-eslint/types" "3.10.1"
5768-
"@typescript-eslint/typescript-estree" "3.10.1"
5769-
eslint-scope "^5.0.0"
5770-
eslint-utils "^2.0.0"
5771-
57725771
"@typescript-eslint/parser@^5.48.0":
57735772
version "5.48.0"
57745773
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.48.0.tgz#02803355b23884a83e543755349809a50b7ed9ba"
@@ -5795,6 +5794,14 @@
57955794
"@typescript-eslint/types" "5.62.0"
57965795
"@typescript-eslint/visitor-keys" "5.62.0"
57975796

5797+
"@typescript-eslint/[email protected]":
5798+
version "6.7.4"
5799+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.7.4.tgz#a484a17aa219e96044db40813429eb7214d7b386"
5800+
integrity sha512-SdGqSLUPTXAXi7c3Ob7peAGVnmMoGzZ361VswK2Mqf8UOYcODiYvs8rs5ILqEdfvX1lE7wEZbLyELCW+Yrql1A==
5801+
dependencies:
5802+
"@typescript-eslint/types" "6.7.4"
5803+
"@typescript-eslint/visitor-keys" "6.7.4"
5804+
57985805
"@typescript-eslint/[email protected]":
57995806
version "5.48.0"
58005807
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.48.0.tgz#40496dccfdc2daa14a565f8be80ad1ae3882d6d6"
@@ -5805,11 +5812,6 @@
58055812
debug "^4.3.4"
58065813
tsutils "^3.21.0"
58075814

5808-
"@typescript-eslint/[email protected]":
5809-
version "3.10.1"
5810-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727"
5811-
integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==
5812-
58135815
"@typescript-eslint/[email protected]":
58145816
version "4.23.0"
58155817
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.23.0.tgz#da1654c8a5332f4d1645b2d9a1c64193cae3aa3b"
@@ -5825,19 +5827,10 @@
58255827
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f"
58265828
integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==
58275829

5828-
"@typescript-eslint/[email protected]":
5829-
version "3.10.1"
5830-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853"
5831-
integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==
5832-
dependencies:
5833-
"@typescript-eslint/types" "3.10.1"
5834-
"@typescript-eslint/visitor-keys" "3.10.1"
5835-
debug "^4.1.1"
5836-
glob "^7.1.6"
5837-
is-glob "^4.0.1"
5838-
lodash "^4.17.15"
5839-
semver "^7.3.2"
5840-
tsutils "^3.17.1"
5830+
"@typescript-eslint/[email protected]":
5831+
version "6.7.4"
5832+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.7.4.tgz#5d358484d2be986980c039de68e9f1eb62ea7897"
5833+
integrity sha512-o9XWK2FLW6eSS/0r/tgjAGsYasLAnOWg7hvZ/dGYSSNjCh+49k5ocPN8OmG5aZcSJ8pclSOyVKP2x03Sj+RrCA==
58415834

58425835
"@typescript-eslint/[email protected]":
58435836
version "5.48.0"
@@ -5865,6 +5858,19 @@
58655858
semver "^7.3.7"
58665859
tsutils "^3.21.0"
58675860

5861+
"@typescript-eslint/[email protected]":
5862+
version "6.7.4"
5863+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.4.tgz#f2baece09f7bb1df9296e32638b2e1130014ef1a"
5864+
integrity sha512-ty8b5qHKatlNYd9vmpHooQz3Vki3gG+3PchmtsA4TgrZBKWHNjWfkQid7K7xQogBqqc7/BhGazxMD5vr6Ha+iQ==
5865+
dependencies:
5866+
"@typescript-eslint/types" "6.7.4"
5867+
"@typescript-eslint/visitor-keys" "6.7.4"
5868+
debug "^4.3.4"
5869+
globby "^11.1.0"
5870+
is-glob "^4.0.3"
5871+
semver "^7.5.4"
5872+
ts-api-utils "^1.0.1"
5873+
58685874
"@typescript-eslint/typescript-estree@^4.8.2":
58695875
version "4.23.0"
58705876
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.23.0.tgz#0753b292097523852428a6f5a1aa8ccc1aae6cd9"
@@ -5906,12 +5912,18 @@
59065912
eslint-scope "^5.1.1"
59075913
semver "^7.3.7"
59085914

5909-
"@typescript-eslint/[email protected]":
5910-
version "3.10.1"
5911-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931"
5912-
integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==
5915+
"@typescript-eslint/utils@^6.0.0":
5916+
version "6.7.4"
5917+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.7.4.tgz#2236f72b10e38277ee05ef06142522e1de470ff2"
5918+
integrity sha512-PRQAs+HUn85Qdk+khAxsVV+oULy3VkbH3hQ8hxLRJXWBEd7iI+GbQxH5SEUSH7kbEoTp6oT1bOwyga24ELALTA==
59135919
dependencies:
5914-
eslint-visitor-keys "^1.1.0"
5920+
"@eslint-community/eslint-utils" "^4.4.0"
5921+
"@types/json-schema" "^7.0.12"
5922+
"@types/semver" "^7.5.0"
5923+
"@typescript-eslint/scope-manager" "6.7.4"
5924+
"@typescript-eslint/types" "6.7.4"
5925+
"@typescript-eslint/typescript-estree" "6.7.4"
5926+
semver "^7.5.4"
59155927

59165928
"@typescript-eslint/[email protected]":
59175929
version "4.23.0"
@@ -5937,6 +5949,14 @@
59375949
"@typescript-eslint/types" "5.62.0"
59385950
eslint-visitor-keys "^3.3.0"
59395951

5952+
"@typescript-eslint/[email protected]":
5953+
version "6.7.4"
5954+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.4.tgz#80dfecf820fc67574012375859085f91a4dff043"
5955+
integrity sha512-pOW37DUhlTZbvph50x5zZCkFn3xzwkGtNoJHzIM3svpiSkJzwOYr/kVBaXmf+RAQiUDs1AHEZVNPg6UJCJpwRA==
5956+
dependencies:
5957+
"@typescript-eslint/types" "6.7.4"
5958+
eslint-visitor-keys "^3.4.1"
5959+
59405960
"@vitest/coverage-c8@^0.29.2":
59415961
version "0.29.2"
59425962
resolved "https://registry.yarnpkg.com/@vitest/coverage-c8/-/coverage-c8-0.29.2.tgz#30b81e32ff11c20e2f3ab78c84e21b4c6c08190c"
@@ -13041,14 +13061,14 @@ eslint-module-utils@^2.6.0:
1304113061
debug "^2.6.9"
1304213062
pkg-dir "^2.0.0"
1304313063

13044-
eslint-plugin-deprecation@^1.1.0:
13045-
version "1.2.0"
13046-
resolved "https://registry.yarnpkg.com/eslint-plugin-deprecation/-/eslint-plugin-deprecation-1.2.0.tgz#e12333a857986fc87fa2eff44c7425eba9653070"
13047-
integrity sha512-SrZqomFYofRbxJ9dlAcu526/tiZoWoZgHdZWKHjrRT/uLfTtTTjdVf0gdy0AZxK8nH5ri0fukgwS28llUueitA==
13064+
eslint-plugin-deprecation@^1.5.0:
13065+
version "1.6.0"
13066+
resolved "https://registry.yarnpkg.com/eslint-plugin-deprecation/-/eslint-plugin-deprecation-1.6.0.tgz#b12d0c5a9baf3bcde0752ff6337703c059a4ae23"
13067+
integrity sha512-rld+Vrneh/NXRtDB0vQifOvgUy0HJYoejaxWlVnsk/LK7iij2tCWQIFcCKG4uzQb+Ef86bDke39w1lh4wnon4Q==
1304813068
dependencies:
13049-
"@typescript-eslint/experimental-utils" "^2.19.2 || ^3.0.0"
13050-
tslib "^1.10.0"
13051-
tsutils "^3.0.0"
13069+
"@typescript-eslint/utils" "^6.0.0"
13070+
tslib "^2.3.1"
13071+
tsutils "^3.21.0"
1305213072

1305313073
1305413074
version "11.9.0"
@@ -13169,7 +13189,7 @@ eslint-plugin-simple-import-sort@^5.0.3:
1316913189
resolved "https://registry.yarnpkg.com/eslint-plugin-simple-import-sort/-/eslint-plugin-simple-import-sort-5.0.3.tgz#9ae258ddada6efffc55e47a134afbd279eb31fc6"
1317013190
integrity sha512-1rf3AWiHeWNCQdAq0iXNnlccnH1UDnelGgrPbjBBHE8d2hXVtOudcmy0vTF4hri3iJ0MKz8jBhmH6lJ0ZWZLHQ==
1317113191

13172-
[email protected], eslint-scope@^5.0.0, eslint-scope@^5.1.1:
13192+
[email protected], eslint-scope@^5.1.1:
1317313193
version "5.1.1"
1317413194
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
1317513195
integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==
@@ -13185,7 +13205,7 @@ eslint-scope@^4.0.3:
1318513205
esrecurse "^4.1.0"
1318613206
estraverse "^4.1.1"
1318713207

13188-
eslint-utils@^2.0.0, eslint-utils@^2.1.0:
13208+
eslint-utils@^2.1.0:
1318913209
version "2.1.0"
1319013210
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27"
1319113211
integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==
@@ -13214,6 +13234,11 @@ eslint-visitor-keys@^3.3.0:
1321413234
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
1321513235
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==
1321613236

13237+
eslint-visitor-keys@^3.4.1:
13238+
version "3.4.3"
13239+
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"
13240+
integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==
13241+
1321713242
1321813243
version "7.32.0"
1321913244
resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d"
@@ -25020,7 +25045,7 @@ [email protected]:
2502025045
dependencies:
2502125046
lru-cache "^6.0.0"
2502225047

25023-
[email protected], semver@^7.0.0, semver@^7.1.1, semver@^7.1.3, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.1, semver@^7.5.2, semver@^7.5.3:
25048+
[email protected], semver@^7.0.0, semver@^7.1.1, semver@^7.1.3, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.1, semver@^7.5.2, semver@^7.5.3, semver@^7.5.4:
2502425049
version "7.5.4"
2502525050
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
2502625051
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
@@ -27217,6 +27242,11 @@ triple-beam@^1.3.0:
2721727242
resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9"
2721827243
integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==
2721927244

27245+
ts-api-utils@^1.0.1:
27246+
version "1.0.3"
27247+
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331"
27248+
integrity sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==
27249+
2722027250
ts-interface-checker@^0.1.9:
2722127251
version "0.1.13"
2722227252
resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699"
@@ -27304,7 +27334,7 @@ tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.2.0, tslib@^2.3
2730427334
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.2.tgz#1b6f07185c881557b0ffa84b111a0106989e8338"
2730527335
integrity sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==
2730627336

27307-
tsutils@^3.0.0, tsutils@^3.17.1, tsutils@^3.21.0:
27337+
tsutils@^3.17.1, tsutils@^3.21.0:
2730827338
version "3.21.0"
2730927339
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
2731027340
integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==

0 commit comments

Comments
 (0)