diff --git a/package.json b/package.json index a90c103dff..f5fd95a52f 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "axios": "^1.4.0", "dotenv": "^16.0.3", "eslint": "^8.57.0", - "eslint-config-vaadin": "^1.0.0-alpha.27", + "eslint-config-vaadin": "^1.0.0-alpha.28", "eslint-plugin-es": "^4.1.0", "eslint-plugin-no-only-tests": "^3.1.0", "eslint-plugin-prettier": "^5.1.3", diff --git a/packages/component-base/src/async.d.ts b/packages/component-base/src/async.d.ts index 62dca639aa..d685d6134c 100644 --- a/packages/component-base/src/async.d.ts +++ b/packages/component-base/src/async.d.ts @@ -9,7 +9,7 @@ */ export interface AsyncInterface { - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type run(fn: Function, delay?: number): number; cancel(handle: number): void; } @@ -40,7 +40,7 @@ declare namespace timeOut { * * @returns Handle used for canceling task */ - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type function run(fn: Function, delay?: number): number; /** @@ -105,7 +105,7 @@ declare namespace microTask { * * @returns Handle used for canceling task */ - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type function run(callback?: Function): number; /** diff --git a/packages/grid-pro/src/vaadin-grid-pro.d.ts b/packages/grid-pro/src/vaadin-grid-pro.d.ts index 59206d9f2e..854311d21a 100644 --- a/packages/grid-pro/src/vaadin-grid-pro.d.ts +++ b/packages/grid-pro/src/vaadin-grid-pro.d.ts @@ -89,6 +89,7 @@ declare class GridPro extends Grid { ): void; } +// eslint-disable-next-line @typescript-eslint/no-empty-object-type interface GridPro extends InlineEditingMixinClass {} declare global { diff --git a/packages/grid/src/vaadin-grid-column-group.d.ts b/packages/grid/src/vaadin-grid-column-group.d.ts index 9f9e3c48d1..f18fe7e8bf 100644 --- a/packages/grid/src/vaadin-grid-column-group.d.ts +++ b/packages/grid/src/vaadin-grid-column-group.d.ts @@ -38,6 +38,7 @@ export * from './vaadin-grid-column-group-mixin.js'; */ declare class GridColumnGroup extends HTMLElement {} +// eslint-disable-next-line @typescript-eslint/no-empty-object-type interface GridColumnGroup extends GridColumnGroupMixin> {} declare global { diff --git a/packages/grid/src/vaadin-grid-column-mixin.d.ts b/packages/grid/src/vaadin-grid-column-mixin.d.ts index 3b6a70ef1d..5dabe93042 100644 --- a/packages/grid/src/vaadin-grid-column-mixin.d.ts +++ b/packages/grid/src/vaadin-grid-column-mixin.d.ts @@ -109,6 +109,7 @@ export declare class ColumnBaseMixinClass> extends GridColumnMixinClass {} diff --git a/packages/virtual-list/src/vaadin-virtual-list.d.ts b/packages/virtual-list/src/vaadin-virtual-list.d.ts index a13ce1e8c6..04c88d0f54 100644 --- a/packages/virtual-list/src/vaadin-virtual-list.d.ts +++ b/packages/virtual-list/src/vaadin-virtual-list.d.ts @@ -39,6 +39,7 @@ export { VirtualListDefaultItem, VirtualListItemModel, VirtualListRenderer }; */ declare class VirtualList extends ThemableMixin(ElementMixin(HTMLElement)) {} +// eslint-disable-next-line @typescript-eslint/no-empty-object-type interface VirtualList extends VirtualListMixinClass {} declare global { diff --git a/yarn.lock b/yarn.lock index ae9cc48aaa..ad2eaf9d61 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2200,85 +2200,85 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@^7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.15.0.tgz#8eaf396ac2992d2b8f874b68eb3fcd6b179cb7f3" - integrity sha512-uiNHpyjZtFrLwLDpHnzaDlP3Tt6sGMqTCiqmxaN4n4RP0EfYZDODJyddiFDF44Hjwxr5xAcaYxVKm9QKQFJFLA== +"@typescript-eslint/eslint-plugin@^8.0.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.6.0.tgz#20049754ff9f6d3a09bf240297f029ce04290999" + integrity sha512-UOaz/wFowmoh2G6Mr9gw60B1mm0MzUtm6Ic8G2yM1Le6gyj5Loi/N+O5mocugRGY+8OeeKmkMmbxNqUCq3B4Sg== dependencies: "@eslint-community/regexpp" "^4.10.0" - "@typescript-eslint/scope-manager" "7.15.0" - "@typescript-eslint/type-utils" "7.15.0" - "@typescript-eslint/utils" "7.15.0" - "@typescript-eslint/visitor-keys" "7.15.0" + "@typescript-eslint/scope-manager" "8.6.0" + "@typescript-eslint/type-utils" "8.6.0" + "@typescript-eslint/utils" "8.6.0" + "@typescript-eslint/visitor-keys" "8.6.0" graphemer "^1.4.0" ignore "^5.3.1" natural-compare "^1.4.0" ts-api-utils "^1.3.0" -"@typescript-eslint/parser@^7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.15.0.tgz#f4a536e5fc6a1c05c82c4d263a2bfad2da235c80" - integrity sha512-k9fYuQNnypLFcqORNClRykkGOMOj+pV6V91R4GO/l1FDGwpqmSwoOQrOHo3cGaH63e+D3ZiCAOsuS/D2c99j/A== +"@typescript-eslint/parser@^8.0.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.6.0.tgz#02e092b9dc8b4e319172af620d0d39b337d948f6" + integrity sha512-eQcbCuA2Vmw45iGfcyG4y6rS7BhWfz9MQuk409WD47qMM+bKCGQWXxvoOs1DUp+T7UBMTtRTVT+kXr7Sh4O9Ow== dependencies: - "@typescript-eslint/scope-manager" "7.15.0" - "@typescript-eslint/types" "7.15.0" - "@typescript-eslint/typescript-estree" "7.15.0" - "@typescript-eslint/visitor-keys" "7.15.0" + "@typescript-eslint/scope-manager" "8.6.0" + "@typescript-eslint/types" "8.6.0" + "@typescript-eslint/typescript-estree" "8.6.0" + "@typescript-eslint/visitor-keys" "8.6.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.15.0.tgz#201b34b0720be8b1447df17b963941bf044999b2" - integrity sha512-Q/1yrF/XbxOTvttNVPihxh1b9fxamjEoz2Os/Pe38OHwxC24CyCqXxGTOdpb4lt6HYtqw9HetA/Rf6gDGaMPlw== +"@typescript-eslint/scope-manager@8.6.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.6.0.tgz#28cc2fc26a84b75addf45091a2c6283e29e2c982" + integrity sha512-ZuoutoS5y9UOxKvpc/GkvF4cuEmpokda4wRg64JEia27wX+PysIE9q+lzDtlHHgblwUWwo5/Qn+/WyTUvDwBHw== dependencies: - "@typescript-eslint/types" "7.15.0" - "@typescript-eslint/visitor-keys" "7.15.0" + "@typescript-eslint/types" "8.6.0" + "@typescript-eslint/visitor-keys" "8.6.0" -"@typescript-eslint/type-utils@7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.15.0.tgz#5b83c904c6de91802fb399305a50a56d10472c39" - integrity sha512-SkgriaeV6PDvpA6253PDVep0qCqgbO1IOBiycjnXsszNTVQe5flN5wR5jiczoEoDEnAqYFSFFc9al9BSGVltkg== +"@typescript-eslint/type-utils@8.6.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.6.0.tgz#d4347e637478bef88cee1db691fcfa20ade9b8a0" + integrity sha512-dtePl4gsuenXVwC7dVNlb4mGDcKjDT/Ropsk4za/ouMBPplCLyznIaR+W65mvCvsyS97dymoBRrioEXI7k0XIg== dependencies: - "@typescript-eslint/typescript-estree" "7.15.0" - "@typescript-eslint/utils" "7.15.0" + "@typescript-eslint/typescript-estree" "8.6.0" + "@typescript-eslint/utils" "8.6.0" debug "^4.3.4" ts-api-utils "^1.3.0" -"@typescript-eslint/types@7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.15.0.tgz#fb894373a6e3882cbb37671ffddce44f934f62fc" - integrity sha512-aV1+B1+ySXbQH0pLK0rx66I3IkiZNidYobyfn0WFsdGhSXw+P3YOqeTq5GED458SfB24tg+ux3S+9g118hjlTw== +"@typescript-eslint/types@8.6.0", "@typescript-eslint/types@^8.5.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.6.0.tgz#cdc3a16f83f2f0663d6723e9fd032331cdd9f51c" + integrity sha512-rojqFZGd4MQxw33SrOy09qIDS8WEldM8JWtKQLAjf/X5mGSeEFh5ixQlxssMNyPslVIk9yzWqXCsV2eFhYrYUw== -"@typescript-eslint/typescript-estree@7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.15.0.tgz#e323bfa3966e1485b638ce751f219fc1f31eba37" - integrity sha512-gjyB/rHAopL/XxfmYThQbXbzRMGhZzGw6KpcMbfe8Q3nNQKStpxnUKeXb0KiN/fFDR42Z43szs6rY7eHk0zdGQ== +"@typescript-eslint/typescript-estree@8.6.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.6.0.tgz#f945506de42871f04868371cb5bf21e8f7266e01" + integrity sha512-MOVAzsKJIPIlLK239l5s06YXjNqpKTVhBVDnqUumQJja5+Y94V3+4VUFRA0G60y2jNnTVwRCkhyGQpavfsbq/g== dependencies: - "@typescript-eslint/types" "7.15.0" - "@typescript-eslint/visitor-keys" "7.15.0" + "@typescript-eslint/types" "8.6.0" + "@typescript-eslint/visitor-keys" "8.6.0" debug "^4.3.4" - globby "^11.1.0" + fast-glob "^3.3.2" is-glob "^4.0.3" minimatch "^9.0.4" semver "^7.6.0" ts-api-utils "^1.3.0" -"@typescript-eslint/utils@7.15.0", "@typescript-eslint/utils@^6.13.0 || ^7.0.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.15.0.tgz#9e6253c4599b6e7da2fb64ba3f549c73eb8c1960" - integrity sha512-hfDMDqaqOqsUVGiEPSMLR/AjTSCsmJwjpKkYQRo1FNbmW4tBwBspYDwO9eh7sKSTwMQgBw9/T4DHudPaqshRWA== +"@typescript-eslint/utils@8.6.0", "@typescript-eslint/utils@^8.5.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.6.0.tgz#175fe893f32804bed1e72b3364ea6bbe1044181c" + integrity sha512-eNp9cWnYf36NaOVjkEUznf6fEgVy1TWpE0o52e4wtojjBx7D1UV2WAWGzR+8Y5lVFtpMLPwNbC67T83DWSph4A== dependencies: "@eslint-community/eslint-utils" "^4.4.0" - "@typescript-eslint/scope-manager" "7.15.0" - "@typescript-eslint/types" "7.15.0" - "@typescript-eslint/typescript-estree" "7.15.0" + "@typescript-eslint/scope-manager" "8.6.0" + "@typescript-eslint/types" "8.6.0" + "@typescript-eslint/typescript-estree" "8.6.0" -"@typescript-eslint/visitor-keys@7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.15.0.tgz#1da0726201a859343fe6a05742a7c1792fff5b66" - integrity sha512-Hqgy/ETgpt2L5xueA/zHHIl4fJI2O4XUE9l4+OIfbJIRSnTJb/QscncdqqZzofQegIJugRIF57OJea1khw2SDw== +"@typescript-eslint/visitor-keys@8.6.0": + version "8.6.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.6.0.tgz#5432af4a1753f376f35ab5b891fc9db237aaf76f" + integrity sha512-wapVFfZg9H0qOYh4grNVQiMklJGluQrOUiOhYRrQWhx7BY/+I1IYb8BczWNbbUpO+pqy0rDciv3lQH5E1bCLrg== dependencies: - "@typescript-eslint/types" "7.15.0" + "@typescript-eslint/types" "8.6.0" eslint-visitor-keys "^3.4.3" "@ungap/structured-clone@^1.2.0": @@ -5391,21 +5391,21 @@ eslint-config-prettier@^9.1.0: resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz#31af3d94578645966c082fcb71a5846d3c94867f" integrity sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw== -eslint-config-vaadin@^1.0.0-alpha.27: - version "1.0.0-alpha.27" - resolved "https://registry.yarnpkg.com/eslint-config-vaadin/-/eslint-config-vaadin-1.0.0-alpha.27.tgz#d9ab5865ec88fc401c2c034d1bc71201ac653cee" - integrity sha512-kqtlhgHTL32fw2cLu5h+KKkZadFaKkwHJRYsZ01jnzXq23+B8oA5+oZmNhAWLVci1psVImRAvekNBH9OfcfDwQ== +eslint-config-vaadin@^1.0.0-alpha.28: + version "1.0.0-alpha.28" + resolved "https://registry.yarnpkg.com/eslint-config-vaadin/-/eslint-config-vaadin-1.0.0-alpha.28.tgz#bc7870a739d09d51882f145b3cdb22d60451f320" + integrity sha512-SSscvaglEmL/2iMVVyDh6qiRZqeLzZ+PfC8pA+khQ1YFVLmYStDWg+erSlie6UTVGa/5i+qeGhTtYSSLtwmyAg== dependencies: "@babel/core" "^7.24.7" "@babel/eslint-parser" "^7.24.7" - "@typescript-eslint/eslint-plugin" "^7.15.0" - "@typescript-eslint/parser" "^7.15.0" + "@typescript-eslint/eslint-plugin" "^8.0.0" + "@typescript-eslint/parser" "^8.0.0" eslint-config-prettier "^9.1.0" eslint-import-resolver-typescript "^3.6.1" eslint-plugin-chai-friendly "^1.0.0" eslint-plugin-import "^2.29.1" eslint-plugin-lit "^1.14.0" - eslint-plugin-perfectionist "^2.11.0" + eslint-plugin-perfectionist "^3.6.0" eslint-plugin-prettier "^5.1.3" eslint-import-resolver-node@^0.3.9: @@ -5487,13 +5487,14 @@ eslint-plugin-no-only-tests@^3.1.0: resolved "https://registry.yarnpkg.com/eslint-plugin-no-only-tests/-/eslint-plugin-no-only-tests-3.1.0.tgz#f38e4935c6c6c4842bf158b64aaa20c366fe171b" integrity sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw== -eslint-plugin-perfectionist@^2.11.0: - version "2.11.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-perfectionist/-/eslint-plugin-perfectionist-2.11.0.tgz#d5cc32e0d12b649357ca5b104a105793956759ba" - integrity sha512-XrtBtiu5rbQv88gl+1e2RQud9te9luYNvKIgM9emttQ2zutHPzY/AQUucwxscDKV4qlTkvLTxjOFvxqeDpPorw== +eslint-plugin-perfectionist@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-perfectionist/-/eslint-plugin-perfectionist-3.6.0.tgz#3772b7cf8b642df222a2791364e097ad159ee476" + integrity sha512-sA6ljy6dL/9cM5ruZ/pMqRVt0FQ4Z7mbQWlBYpyX9941LVfm65d2jl2k1ZbWD3ud9Wm+/NKgOvRnAatsKhMJbA== dependencies: - "@typescript-eslint/utils" "^6.13.0 || ^7.0.0" - minimatch "^9.0.3" + "@typescript-eslint/types" "^8.5.0" + "@typescript-eslint/utils" "^8.5.0" + minimatch "^9.0.5" natural-compare-lite "^1.4.0" eslint-plugin-prettier@^5.1.3: @@ -9027,7 +9028,7 @@ minimatch@^5.0.1, minimatch@^5.1.0: dependencies: brace-expansion "^2.0.1" -minimatch@^9.0.0, minimatch@^9.0.1, minimatch@^9.0.3, minimatch@^9.0.4: +minimatch@^9.0.0, minimatch@^9.0.1, minimatch@^9.0.4, minimatch@^9.0.5: version "9.0.5" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==