Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion configs/eslint-config-compass/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const extraTsRules = {
'@typescript-eslint/unbound-method': 'warn',
'@typescript-eslint/no-duplicate-type-constituents': 'warn',
'@typescript-eslint/no-unsafe-declaration-merging': 'warn',
'@typescript-eslint/no-unsafe-enum-comparison': 'warn',
};

const tsRules = {
Expand Down
2 changes: 1 addition & 1 deletion packages/compass-global-writes/src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function ShardingStateView({
return <IncompleteShardingSetup />;
}

if (shardingStatus === ShardingStatuses.LOADING_ERROR) {
if (shardingStatus === String(ShardingStatuses.LOADING_ERROR)) {
return <LoadingError />;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/compass-web/polyfills/net/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ class Socket extends Duplex {

decodeMessageWithTypeByte(message: Uint8Array) {
const typeByte = message[0];
if (typeByte === MESSAGE_TYPE.JSON) {
if (typeByte === Number(MESSAGE_TYPE.JSON)) {
const jsonBytes = message.subarray(1);
const textDecoder = new TextDecoder('utf-8');
const jsonStr = textDecoder.decode(jsonBytes);
return JSON.parse(jsonStr);
} else if (typeByte === MESSAGE_TYPE.BINARY) {
} else if (typeByte === Number(MESSAGE_TYPE.BINARY)) {
return message.subarray(1);
} else {
// eslint-disable-next-line no-console
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function SchemeInput({
(event: React.ChangeEvent<HTMLInputElement>) => {
updateConnectionFormField({
type: 'update-connection-scheme',
isSrv: event.target.value === MONGODB_SCHEME.MONGODB_SRV,
isSrv: event.target.value === String(MONGODB_SCHEME.MONGODB_SRV),
});
},
[updateConnectionFormField]
Expand Down