File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed
configs/eslint-config-compass
compass-global-writes/src/components
compass-web/polyfills/net
connection-form/src/components/advanced-options-tabs/general-tab Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ const extraTsRules = {
35
35
'@typescript-eslint/unbound-method' : 'warn' ,
36
36
'@typescript-eslint/no-duplicate-type-constituents' : 'warn' ,
37
37
'@typescript-eslint/no-unsafe-declaration-merging' : 'warn' ,
38
- '@typescript-eslint/no-unsafe-enum-comparison' : 'warn' ,
39
38
} ;
40
39
41
40
const tsRules = {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ function ShardingStateView({
72
72
return < IncompleteShardingSetup /> ;
73
73
}
74
74
75
- if ( shardingStatus === ShardingStatuses . LOADING_ERROR ) {
75
+ if ( shardingStatus === String ( ShardingStatuses . LOADING_ERROR ) ) {
76
76
return < LoadingError /> ;
77
77
}
78
78
Original file line number Diff line number Diff line change @@ -137,12 +137,12 @@ class Socket extends Duplex {
137
137
138
138
decodeMessageWithTypeByte ( message : Uint8Array ) {
139
139
const typeByte = message [ 0 ] ;
140
- if ( typeByte === MESSAGE_TYPE . JSON ) {
140
+ if ( typeByte === Number ( MESSAGE_TYPE . JSON ) ) {
141
141
const jsonBytes = message . subarray ( 1 ) ;
142
142
const textDecoder = new TextDecoder ( 'utf-8' ) ;
143
143
const jsonStr = textDecoder . decode ( jsonBytes ) ;
144
144
return JSON . parse ( jsonStr ) ;
145
- } else if ( typeByte === MESSAGE_TYPE . BINARY ) {
145
+ } else if ( typeByte === Number ( MESSAGE_TYPE . BINARY ) ) {
146
146
return message . subarray ( 1 ) ;
147
147
} else {
148
148
// eslint-disable-next-line no-console
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function SchemeInput({
47
47
( event : React . ChangeEvent < HTMLInputElement > ) => {
48
48
updateConnectionFormField ( {
49
49
type : 'update-connection-scheme' ,
50
- isSrv : event . target . value === MONGODB_SCHEME . MONGODB_SRV ,
50
+ isSrv : event . target . value === String ( MONGODB_SCHEME . MONGODB_SRV ) ,
51
51
} ) ;
52
52
} ,
53
53
[ updateConnectionFormField ]
You can’t perform that action at this time.
0 commit comments