Skip to content

Commit 85f72da

Browse files
chore(deps): bump typescript-eslint to ^6.0.0 (major) (#970)
* chore(deps): bump typescript-eslint to ^6.0.0 * Reenable no-non-null --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: eps1lon <[email protected]>
1 parent 0e9551a commit 85f72da

File tree

3 files changed

+91
-39
lines changed

3 files changed

+91
-39
lines changed

.eslintrc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@
55
"plugin:@typescript-eslint/recommended"
66
],
77
"parser": "@typescript-eslint/parser",
8-
"parserOptions": {
9-
// trade off between having a warning without consequences on main
10-
// and having no warning but non-descriptive errors when using typescript@^3.8 syntax
11-
"warnOnUnsupportedTypeScriptVersion": false
12-
},
138
"plugins": ["@typescript-eslint"],
149
"rules": {
1510
// required for window.Element
1611
"@typescript-eslint/ban-ts-ignore": "off",
12+
// It's easily missed so we enforce and explicit eslint-disable-next-line to highlight the non-null assertion.
13+
"@typescript-eslint/no-non-null-assertion": "error",
1714
// I find this rule not very helpful since it prevents me from ordering
1815
// functions in a file by importance e.g. default export at the top
1916
"@typescript-eslint/no-use-before-define": "off",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"@testing-library/dom": "^9.0.0",
5252
"@types/jest": "^29.0.0",
5353
"@types/node": "18.17.17",
54-
"@typescript-eslint/eslint-plugin": "^5.0.0",
55-
"@typescript-eslint/parser": "^5.0.0",
54+
"@typescript-eslint/eslint-plugin": "^6.0.0",
55+
"@typescript-eslint/parser": "^6.0.0",
5656
"concurrently": "^8.0.0",
5757
"cross-env": "^7.0.3",
5858
"cypress": "^12.0.0",

yarn.lock

Lines changed: 87 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,14 +1266,14 @@
12661266
debug "^3.1.0"
12671267
lodash.once "^4.1.1"
12681268

1269-
"@eslint-community/eslint-utils@^4.2.0":
1269+
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0":
12701270
version "4.4.0"
12711271
resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59"
12721272
integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==
12731273
dependencies:
12741274
eslint-visitor-keys "^3.3.0"
12751275

1276-
"@eslint-community/regexpp@^4.4.0":
1276+
"@eslint-community/regexpp@^4.5.1":
12771277
version "4.6.2"
12781278
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.6.2.tgz#1816b5f6948029c5eaacb0703b850ee0cb37d8f8"
12791279
integrity sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==
@@ -1738,7 +1738,7 @@
17381738
"@types/tough-cookie" "*"
17391739
parse5 "^7.0.0"
17401740

1741-
"@types/json-schema@^7.0.9":
1741+
"@types/json-schema@^7.0.12", "@types/json-schema@^7.0.9":
17421742
version "7.0.12"
17431743
resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb"
17441744
integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==
@@ -1802,30 +1802,33 @@
18021802
dependencies:
18031803
"@types/node" "*"
18041804

1805-
"@typescript-eslint/eslint-plugin@^5.0.0":
1806-
version "5.62.0"
1807-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz#aeef0328d172b9e37d9bab6dbc13b87ed88977db"
1808-
integrity sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==
1809-
dependencies:
1810-
"@eslint-community/regexpp" "^4.4.0"
1811-
"@typescript-eslint/scope-manager" "5.62.0"
1812-
"@typescript-eslint/type-utils" "5.62.0"
1813-
"@typescript-eslint/utils" "5.62.0"
1805+
"@typescript-eslint/eslint-plugin@^6.0.0":
1806+
version "6.2.0"
1807+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.2.0.tgz#57047c400be0632d4797ac081af8d399db3ebc3b"
1808+
integrity sha512-rClGrMuyS/3j0ETa1Ui7s6GkLhfZGKZL3ZrChLeAiACBE/tRc1wq8SNZESUuluxhLj9FkUefRs2l6bCIArWBiQ==
1809+
dependencies:
1810+
"@eslint-community/regexpp" "^4.5.1"
1811+
"@typescript-eslint/scope-manager" "6.2.0"
1812+
"@typescript-eslint/type-utils" "6.2.0"
1813+
"@typescript-eslint/utils" "6.2.0"
1814+
"@typescript-eslint/visitor-keys" "6.2.0"
18141815
debug "^4.3.4"
18151816
graphemer "^1.4.0"
1816-
ignore "^5.2.0"
1817+
ignore "^5.2.4"
1818+
natural-compare "^1.4.0"
18171819
natural-compare-lite "^1.4.0"
1818-
semver "^7.3.7"
1819-
tsutils "^3.21.0"
1820+
semver "^7.5.4"
1821+
ts-api-utils "^1.0.1"
18201822

1821-
"@typescript-eslint/parser@^5.0.0":
1822-
version "5.62.0"
1823-
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.62.0.tgz#1b63d082d849a2fcae8a569248fbe2ee1b8a56c7"
1824-
integrity sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==
1823+
"@typescript-eslint/parser@^6.0.0":
1824+
version "6.2.0"
1825+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-6.2.0.tgz#d37c30b0f459c6f39455335d8f4f085919a1c644"
1826+
integrity sha512-igVYOqtiK/UsvKAmmloQAruAdUHihsOCvplJpplPZ+3h4aDkC/UKZZNKgB6h93ayuYLuEymU3h8nF1xMRbh37g==
18251827
dependencies:
1826-
"@typescript-eslint/scope-manager" "5.62.0"
1827-
"@typescript-eslint/types" "5.62.0"
1828-
"@typescript-eslint/typescript-estree" "5.62.0"
1828+
"@typescript-eslint/scope-manager" "6.2.0"
1829+
"@typescript-eslint/types" "6.2.0"
1830+
"@typescript-eslint/typescript-estree" "6.2.0"
1831+
"@typescript-eslint/visitor-keys" "6.2.0"
18291832
debug "^4.3.4"
18301833

18311834
"@typescript-eslint/[email protected]":
@@ -1836,21 +1839,34 @@
18361839
"@typescript-eslint/types" "5.62.0"
18371840
"@typescript-eslint/visitor-keys" "5.62.0"
18381841

1839-
"@typescript-eslint/[email protected].0":
1840-
version "5.62.0"
1841-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz#286f0389c41681376cdad96b309cedd17d70346a"
1842-
integrity sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==
1842+
"@typescript-eslint/[email protected].0":
1843+
version "6.2.0"
1844+
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-6.2.0.tgz#412a710d8fa20bc045533b3b19f423810b24f87a"
1845+
integrity sha512-1ZMNVgm5nnHURU8ZSJ3snsHzpFeNK84rdZjluEVBGNu7jDymfqceB3kdIZ6A4xCfEFFhRIB6rF8q/JIqJd2R0Q==
18431846
dependencies:
1844-
"@typescript-eslint/typescript-estree" "5.62.0"
1845-
"@typescript-eslint/utils" "5.62.0"
1847+
"@typescript-eslint/types" "6.2.0"
1848+
"@typescript-eslint/visitor-keys" "6.2.0"
1849+
1850+
"@typescript-eslint/[email protected]":
1851+
version "6.2.0"
1852+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-6.2.0.tgz#02b27a3eeb41aa5460d6275d12cce5dd72e1c9fc"
1853+
integrity sha512-DnGZuNU2JN3AYwddYIqrVkYW0uUQdv0AY+kz2M25euVNlujcN2u+rJgfJsBFlUEzBB6OQkUqSZPyuTLf2bP5mw==
1854+
dependencies:
1855+
"@typescript-eslint/typescript-estree" "6.2.0"
1856+
"@typescript-eslint/utils" "6.2.0"
18461857
debug "^4.3.4"
1847-
tsutils "^3.21.0"
1858+
ts-api-utils "^1.0.1"
18481859

18491860
"@typescript-eslint/[email protected]":
18501861
version "5.62.0"
18511862
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f"
18521863
integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==
18531864

1865+
"@typescript-eslint/[email protected]":
1866+
version "6.2.0"
1867+
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-6.2.0.tgz#b341a4e6d5f609267306b07afc6f62bcf92b1495"
1868+
integrity sha512-1nRRaDlp/XYJQLvkQJG5F3uBTno5SHPT7XVcJ5n1/k2WfNI28nJsvLakxwZRNY5spuatEKO7d5nZWsQpkqXwBA==
1869+
18541870
"@typescript-eslint/[email protected]":
18551871
version "5.62.0"
18561872
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz#7d17794b77fabcac615d6a48fb143330d962eb9b"
@@ -1864,7 +1880,33 @@
18641880
semver "^7.3.7"
18651881
tsutils "^3.21.0"
18661882

1867-
"@typescript-eslint/[email protected]", "@typescript-eslint/utils@^5.10.0":
1883+
"@typescript-eslint/[email protected]":
1884+
version "6.2.0"
1885+
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.2.0.tgz#4969944b831b481996aa4fbd73c7164ca683b8ef"
1886+
integrity sha512-Mts6+3HQMSM+LZCglsc2yMIny37IhUgp1Qe8yJUYVyO6rHP7/vN0vajKu3JvHCBIy8TSiKddJ/Zwu80jhnGj1w==
1887+
dependencies:
1888+
"@typescript-eslint/types" "6.2.0"
1889+
"@typescript-eslint/visitor-keys" "6.2.0"
1890+
debug "^4.3.4"
1891+
globby "^11.1.0"
1892+
is-glob "^4.0.3"
1893+
semver "^7.5.4"
1894+
ts-api-utils "^1.0.1"
1895+
1896+
"@typescript-eslint/[email protected]":
1897+
version "6.2.0"
1898+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-6.2.0.tgz#606a20e5c13883c2d2bd0538ddc4b96b8d410979"
1899+
integrity sha512-RCFrC1lXiX1qEZN8LmLrxYRhOkElEsPKTVSNout8DMzf8PeWoQG7Rxz2SadpJa3VSh5oYKGwt7j7X/VRg+Y3OQ==
1900+
dependencies:
1901+
"@eslint-community/eslint-utils" "^4.4.0"
1902+
"@types/json-schema" "^7.0.12"
1903+
"@types/semver" "^7.5.0"
1904+
"@typescript-eslint/scope-manager" "6.2.0"
1905+
"@typescript-eslint/types" "6.2.0"
1906+
"@typescript-eslint/typescript-estree" "6.2.0"
1907+
semver "^7.5.4"
1908+
1909+
"@typescript-eslint/utils@^5.10.0":
18681910
version "5.62.0"
18691911
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86"
18701912
integrity sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==
@@ -1886,6 +1928,14 @@
18861928
"@typescript-eslint/types" "5.62.0"
18871929
eslint-visitor-keys "^3.3.0"
18881930

1931+
"@typescript-eslint/[email protected]":
1932+
version "6.2.0"
1933+
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.2.0.tgz#71943f42fdaa2ec86dc3222091f41761a49ae71a"
1934+
integrity sha512-QbaYUQVKKo9bgCzpjz45llCfwakyoxHetIy8CAvYCtd16Zu1KrpzNHofwF8kGkpPOxZB2o6kz+0nqH8ZkIzuoQ==
1935+
dependencies:
1936+
"@typescript-eslint/types" "6.2.0"
1937+
eslint-visitor-keys "^3.4.1"
1938+
18891939
18901940
version "2.29.0"
18911941
resolved "https://registry.yarnpkg.com/@zeit/schemas/-/schemas-2.29.0.tgz#a59ae6ebfdf4ddc66a876872dd736baa58b6696c"
@@ -3189,7 +3239,7 @@ eslint-visitor-keys@^2.0.0:
31893239
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303"
31903240
integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==
31913241

3192-
eslint-visitor-keys@^3.3.0:
3242+
eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1:
31933243
version "3.4.1"
31943244
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994"
31953245
integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==
@@ -3908,7 +3958,7 @@ ignore@^4.0.6:
39083958
resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc"
39093959
integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==
39103960

3911-
ignore@^5.2.0:
3961+
ignore@^5.2.0, ignore@^5.2.4:
39123962
version "5.2.4"
39133963
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
39143964
integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==
@@ -6454,6 +6504,11 @@ trim-newlines@^3.0.0:
64546504
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144"
64556505
integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw==
64566506

6507+
ts-api-utils@^1.0.1:
6508+
version "1.0.1"
6509+
resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.1.tgz#8144e811d44c749cd65b2da305a032510774452d"
6510+
integrity sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==
6511+
64576512
tslib@^1.8.1:
64586513
version "1.14.1"
64596514
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"

0 commit comments

Comments
 (0)