Skip to content

Commit 30478c1

Browse files
authored
chore: update typescript to latest (#4267)
* chore: update typescript to latest * chore(databases-navigation): fix unbound methods issue
1 parent 190083e commit 30478c1

File tree

18 files changed

+238
-192
lines changed

18 files changed

+238
-192
lines changed

configs/eslint-config-compass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"@babel/core": "^7.14.3",
1717
"@babel/eslint-parser": "^7.14.3",
1818
"@mongodb-js/eslint-plugin-compass": "^1.0.4",
19-
"@typescript-eslint/eslint-plugin": "^5.30.5",
20-
"@typescript-eslint/parser": "^5.30.5",
19+
"@typescript-eslint/eslint-plugin": "^5.59.0",
20+
"@typescript-eslint/parser": "^5.59.0",
2121
"eslint-config-prettier": "^8.3.0",
2222
"eslint-plugin-filename-rules": "^1.2.0",
2323
"eslint-plugin-jsx-a11y": "^6.4.1",

configs/tsconfig-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"tsconfig.react.json"
99
],
1010
"peerDependencies": {
11-
"typescript": "^4.8.3"
11+
"typescript": "^5.0.4"
1212
},
1313
"devDependencies": {
1414
"@mongodb-js/prettier-config-compass": "^1.0.0",

configs/webpack-config-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"depcheck": "^1.4.1",
5656
"eslint": "^7.25.0",
5757
"prettier": "^2.7.1",
58-
"typescript": "^4.8.3"
58+
"typescript": "^5.0.4"
5959
},
6060
"dependencies": {
6161
"@babel/core": "^7.18.6",

package-lock.json

Lines changed: 219 additions & 172 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"reflux": "^0.4.1",
117117
"rimraf": "^3.0.2",
118118
"sinon": "^9.0.0",
119-
"typescript": "^4.8.3"
119+
"typescript": "^5.0.4"
120120
},
121121
"repository": {
122122
"type": "git",

packages/compass-connection-import-export/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@
8787
"react": "^17.0.2",
8888
"react-dom": "^17.0.2",
8989
"sinon": "^9.2.3",
90-
"typescript": "^4.8.3"
90+
"typescript": "^5.0.4"
9191
}
9292
}

packages/compass-databases-navigation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@
7878
"react": "^17.0.2",
7979
"react-dom": "^17.0.2",
8080
"sinon": "^9.2.3",
81-
"typescript": "^4.8.3"
81+
"typescript": "^5.0.4"
8282
}
8383
}

packages/compass-databases-navigation/src/databases-navigation-tree.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ type ListItemData = {
6868
isReadOnly: boolean;
6969
activeNamespace: string;
7070
currentTabbable?: string;
71-
onDatabaseExpand(id: string, isExpanded: boolean): void;
72-
onNamespaceAction(namespace: string, action: Actions): void;
71+
onDatabaseExpand(this: void, id: string, isExpanded: boolean): void;
72+
onNamespaceAction(this: void, namespace: string, action: Actions): void;
7373
};
7474

7575
const collectionItemContainer = css({
@@ -81,7 +81,6 @@ const NavigationItem = memo<{
8181
style: React.CSSProperties;
8282
data: ListItemData;
8383
}>(function NavigationItem({ index, style, data }) {
84-
// eslint-disable-next-line @typescript-eslint/unbound-method
8584
const {
8685
items,
8786
isReadOnly,

packages/compass-editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"mocha": "^10.2.0",
6464
"nyc": "^15.1.0",
6565
"sinon": "^9.2.3",
66-
"typescript": "^4.8.3"
66+
"typescript": "^5.0.4"
6767
},
6868
"dependencies": {
6969
"@codemirror/autocomplete": "^6.4.0",

packages/compass-logging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"nyc": "^15.1.0",
6969
"prettier": "^2.7.1",
7070
"sinon": "^9.2.3",
71-
"typescript": "^4.8.3"
71+
"typescript": "^5.0.4"
7272
},
7373
"optionalPeerDependencies": {
7474
"compass-preferences-model": "^2.0.0"

0 commit comments

Comments
 (0)