Skip to content

Commit 4ed9642

Browse files
committed
➕(frontend) add @typescript-eslint/parser
In order to work correctly @typescript-eslint/eslint-plugin requires @typescript-eslint/parser to be installed as well. We added @typescript-eslint/parser, and upgraded @typescript-eslint/eslint-plugin to 8.1.0. We fixed the linting issues related to the upgrade.
1 parent a970a83 commit 4ed9642

File tree

5 files changed

+40
-73
lines changed

5 files changed

+40
-73
lines changed

src/frontend/apps/impress/src/components/Text.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export interface TextProps extends BoxProps {
1717
$isMaterialIcon?: boolean;
1818
$weight?: CSSProperties['fontWeight'];
1919
$textAlign?: CSSProperties['textAlign'];
20-
// eslint-disable-next-line @typescript-eslint/ban-types
2120
$size?: TextSizes | (string & {});
2221
$theme?:
2322
| 'primary'

src/frontend/apps/impress/src/features/docs/doc-versioning/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ export function revertUpdate(
4949
currentStateVector,
5050
);
5151
Y.applyUpdate(doc, revertChangesSinceSnapshotUpdate, snapshotOrigin);
52-
} catch (e) {}
52+
} catch (e) {
53+
console.error('Failed to revert the doc to a previous state', e);
54+
}
5355
}

src/frontend/apps/impress/src/utils/styleBuilder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const spacings = {
2424
};
2525

2626
type SpacingsKey = keyof typeof spacings;
27-
// eslint-disable-next-line @typescript-eslint/ban-types
2827
export type Spacings = SpacingsKey | (string & {});
2928

3029
export const spacingValue = (value?: Spacings) =>

src/frontend/packages/eslint-config-impress/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"dependencies": {
99
"@next/eslint-plugin-next": "14.2.5",
1010
"@tanstack/eslint-plugin-query": "5.51.15",
11-
"@typescript-eslint/eslint-plugin": "7.13.1",
11+
"@typescript-eslint/eslint-plugin": "8.1.0",
12+
"@typescript-eslint/parser": "8.1.0",
1213
"eslint": "8.57.0",
1314
"eslint-config-next": "14.2.5",
1415
"eslint-config-prettier": "9.1.0",

src/frontend/yarn.lock

Lines changed: 35 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -3997,21 +3997,32 @@
39973997
dependencies:
39983998
"@types/yargs-parser" "*"
39993999

4000-
"@typescript-eslint/eslint-plugin@7.13.1":
4001-
version "7.13.1"
4002-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.13.1.tgz#cdc521c8bca38b55585cf30db787fb2abad3f9fd"
4003-
integrity sha512-kZqi+WZQaZfPKnsflLJQCz6Ze9FFSMfXrrIOcyargekQxG37ES7DJNpJUE9Q/X5n3yTIP/WPutVNzgknQ7biLg==
4000+
"@typescript-eslint/eslint-plugin@8.1.0":
4001+
version "8.1.0"
4002+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.1.0.tgz#3c020deeaaba82a6f741d00dacf172c53be4911f"
4003+
integrity sha512-LlNBaHFCEBPHyD4pZXb35mzjGkuGKXU5eeCA1SxvHfiRES0E82dOounfVpL4DCqYvJEKab0bZIA0gCRpdLKkCw==
40044004
dependencies:
40054005
"@eslint-community/regexpp" "^4.10.0"
4006-
"@typescript-eslint/scope-manager" "7.13.1"
4007-
"@typescript-eslint/type-utils" "7.13.1"
4008-
"@typescript-eslint/utils" "7.13.1"
4009-
"@typescript-eslint/visitor-keys" "7.13.1"
4006+
"@typescript-eslint/scope-manager" "8.1.0"
4007+
"@typescript-eslint/type-utils" "8.1.0"
4008+
"@typescript-eslint/utils" "8.1.0"
4009+
"@typescript-eslint/visitor-keys" "8.1.0"
40104010
graphemer "^1.4.0"
40114011
ignore "^5.3.1"
40124012
natural-compare "^1.4.0"
40134013
ts-api-utils "^1.3.0"
40144014

4015+
"@typescript-eslint/[email protected]":
4016+
version "8.1.0"
4017+
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.1.0.tgz#b7e77f5fa212df59eba51ecd4986f194bccc2303"
4018+
integrity sha512-U7iTAtGgJk6DPX9wIWPPOlt1gO57097G06gIcl0N0EEnNw8RGD62c+2/DiP/zL7KrkqnnqF7gtFGR7YgzPllTA==
4019+
dependencies:
4020+
"@typescript-eslint/scope-manager" "8.1.0"
4021+
"@typescript-eslint/types" "8.1.0"
4022+
"@typescript-eslint/typescript-estree" "8.1.0"
4023+
"@typescript-eslint/visitor-keys" "8.1.0"
4024+
debug "^4.3.4"
4025+
40154026
"@typescript-eslint/parser@^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0":
40164027
version "7.2.0"
40174028
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.2.0.tgz#44356312aea8852a3a82deebdacd52ba614ec07a"
@@ -4031,14 +4042,6 @@
40314042
"@typescript-eslint/types" "5.62.0"
40324043
"@typescript-eslint/visitor-keys" "5.62.0"
40334044

4034-
"@typescript-eslint/[email protected]":
4035-
version "7.13.1"
4036-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.13.1.tgz#c08041206904bf36f0e6997efdb0ca775e0c452e"
4037-
integrity sha512-adbXNVEs6GmbzaCpymHQ0MB6E4TqoiVbC0iqG3uijR8ZYfpAXMGttouQzF4Oat3P2GxDVIrg7bMI/P65LiQZdg==
4038-
dependencies:
4039-
"@typescript-eslint/types" "7.13.1"
4040-
"@typescript-eslint/visitor-keys" "7.13.1"
4041-
40424045
"@typescript-eslint/[email protected]":
40434046
version "7.2.0"
40444047
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.2.0.tgz#cfb437b09a84f95a0930a76b066e89e35d94e3da"
@@ -4063,13 +4066,13 @@
40634066
"@typescript-eslint/types" "8.1.0"
40644067
"@typescript-eslint/visitor-keys" "8.1.0"
40654068

4066-
"@typescript-eslint/type-utils@7.13.1":
4067-
version "7.13.1"
4068-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.13.1.tgz#63bec3f1fb43cf0bc409cbdb88ef96d118ca8632"
4069-
integrity sha512-aWDbLu1s9bmgPGXSzNCxELu+0+HQOapV/y+60gPXafR8e2g1Bifxzevaa+4L2ytCWm+CHqpELq4CSoN9ELiwCg==
4069+
"@typescript-eslint/type-utils@8.1.0":
4070+
version "8.1.0"
4071+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.1.0.tgz#dbf5a4308166dfc37a36305390dea04a3a3b5048"
4072+
integrity sha512-oLYvTxljVvsMnldfl6jIKxTaU7ok7km0KDrwOt1RHYu6nxlhN3TIx8k5Q52L6wR33nOwDgM7VwW1fT1qMNfFIA==
40704073
dependencies:
4071-
"@typescript-eslint/typescript-estree" "7.13.1"
4072-
"@typescript-eslint/utils" "7.13.1"
4074+
"@typescript-eslint/typescript-estree" "8.1.0"
4075+
"@typescript-eslint/utils" "8.1.0"
40734076
debug "^4.3.4"
40744077
ts-api-utils "^1.3.0"
40754078

@@ -4078,11 +4081,6 @@
40784081
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f"
40794082
integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==
40804083

4081-
"@typescript-eslint/[email protected]":
4082-
version "7.13.1"
4083-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.13.1.tgz#787db283bd0b58751094c90d5b58bbf5e9fc9bd8"
4084-
integrity sha512-7K7HMcSQIAND6RBL4kDl24sG/xKM13cA85dc7JnmQXw2cBDngg7c19B++JzvJHRG3zG36n9j1i451GBzRuHchw==
4085-
40864084
"@typescript-eslint/[email protected]":
40874085
version "7.2.0"
40884086
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.2.0.tgz#0feb685f16de320e8520f13cca30779c8b7c403f"
@@ -4111,20 +4109,6 @@
41114109
semver "^7.3.7"
41124110
tsutils "^3.21.0"
41134111

4114-
"@typescript-eslint/[email protected]":
4115-
version "7.13.1"
4116-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.13.1.tgz#3412841b130e070db2f675e3d9b8cb1ae49e1c3f"
4117-
integrity sha512-uxNr51CMV7npU1BxZzYjoVz9iyjckBduFBP0S5sLlh1tXYzHzgZ3BR9SVsNed+LmwKrmnqN3Kdl5t7eZ5TS1Yw==
4118-
dependencies:
4119-
"@typescript-eslint/types" "7.13.1"
4120-
"@typescript-eslint/visitor-keys" "7.13.1"
4121-
debug "^4.3.4"
4122-
globby "^11.1.0"
4123-
is-glob "^4.0.3"
4124-
minimatch "^9.0.4"
4125-
semver "^7.6.0"
4126-
ts-api-utils "^1.3.0"
4127-
41284112
"@typescript-eslint/[email protected]":
41294113
version "7.2.0"
41304114
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.2.0.tgz#5beda2876c4137f8440c5a84b4f0370828682556"
@@ -4167,16 +4151,6 @@
41674151
semver "^7.6.0"
41684152
ts-api-utils "^1.3.0"
41694153

4170-
"@typescript-eslint/[email protected]":
4171-
version "7.13.1"
4172-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.13.1.tgz#611083379caa0d3a2c09d126c65065a3e4337ba2"
4173-
integrity sha512-h5MzFBD5a/Gh/fvNdp9pTfqJAbuQC4sCN2WzuXme71lqFJsZtLbjxfSk4r3p02WIArOF9N94pdsLiGutpDbrXQ==
4174-
dependencies:
4175-
"@eslint-community/eslint-utils" "^4.4.0"
4176-
"@typescript-eslint/scope-manager" "7.13.1"
4177-
"@typescript-eslint/types" "7.13.1"
4178-
"@typescript-eslint/typescript-estree" "7.13.1"
4179-
41804154
"@typescript-eslint/[email protected]":
41814155
version "8.0.0-alpha.30"
41824156
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.0.0-alpha.30.tgz#8102839b7b773be6572964a5bb8c378b526c78b2"
@@ -4187,6 +4161,16 @@
41874161
"@typescript-eslint/types" "8.0.0-alpha.30"
41884162
"@typescript-eslint/typescript-estree" "8.0.0-alpha.30"
41894163

4164+
"@typescript-eslint/[email protected]", "@typescript-eslint/utils@^6.0.0 || ^7.0.0 || ^8.0.0":
4165+
version "8.1.0"
4166+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.1.0.tgz#a922985a43d2560ce0d293be79148fa80c1325e0"
4167+
integrity sha512-ypRueFNKTIFwqPeJBfeIpxZ895PQhNyH4YID6js0UoBImWYoSjBsahUn9KMiJXh94uOjVBgHD9AmkyPsPnFwJA==
4168+
dependencies:
4169+
"@eslint-community/eslint-utils" "^4.4.0"
4170+
"@typescript-eslint/scope-manager" "8.1.0"
4171+
"@typescript-eslint/types" "8.1.0"
4172+
"@typescript-eslint/typescript-estree" "8.1.0"
4173+
41904174
"@typescript-eslint/utils@^5.58.0":
41914175
version "5.62.0"
41924176
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86"
@@ -4201,16 +4185,6 @@
42014185
eslint-scope "^5.1.1"
42024186
semver "^7.3.7"
42034187

4204-
"@typescript-eslint/utils@^6.0.0 || ^7.0.0 || ^8.0.0":
4205-
version "8.1.0"
4206-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.1.0.tgz#a922985a43d2560ce0d293be79148fa80c1325e0"
4207-
integrity sha512-ypRueFNKTIFwqPeJBfeIpxZ895PQhNyH4YID6js0UoBImWYoSjBsahUn9KMiJXh94uOjVBgHD9AmkyPsPnFwJA==
4208-
dependencies:
4209-
"@eslint-community/eslint-utils" "^4.4.0"
4210-
"@typescript-eslint/scope-manager" "8.1.0"
4211-
"@typescript-eslint/types" "8.1.0"
4212-
"@typescript-eslint/typescript-estree" "8.1.0"
4213-
42144188
"@typescript-eslint/[email protected]":
42154189
version "5.62.0"
42164190
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz#2174011917ce582875954ffe2f6912d5931e353e"
@@ -4219,14 +4193,6 @@
42194193
"@typescript-eslint/types" "5.62.0"
42204194
eslint-visitor-keys "^3.3.0"
42214195

4222-
"@typescript-eslint/[email protected]":
4223-
version "7.13.1"
4224-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.13.1.tgz#9c229a795a919db61f2d7f2337ef584ac05fbe96"
4225-
integrity sha512-k/Bfne7lrP7hcb7m9zSsgcBmo+8eicqqfNAJ7uUY+jkTFpKeH2FSkWpFRtimBxgkyvqfu9jTPRbYOvud6isdXA==
4226-
dependencies:
4227-
"@typescript-eslint/types" "7.13.1"
4228-
eslint-visitor-keys "^3.4.3"
4229-
42304196
"@typescript-eslint/[email protected]":
42314197
version "7.2.0"
42324198
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.2.0.tgz#5035f177752538a5750cca1af6044b633610bf9e"

0 commit comments

Comments
 (0)