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 = {
3535 '@typescript-eslint/unbound-method' : 'warn' ,
3636 '@typescript-eslint/no-duplicate-type-constituents' : 'warn' ,
3737 '@typescript-eslint/no-unsafe-declaration-merging' : 'warn' ,
38- '@typescript-eslint/no-unsafe-enum-comparison' : 'warn' ,
3938} ;
4039
4140const tsRules = {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ function ShardingStateView({
7272 return < IncompleteShardingSetup /> ;
7373 }
7474
75- if ( shardingStatus === ShardingStatuses . LOADING_ERROR ) {
75+ if ( shardingStatus === String ( ShardingStatuses . LOADING_ERROR ) ) {
7676 return < LoadingError /> ;
7777 }
7878
Original file line number Diff line number Diff line change @@ -137,12 +137,12 @@ class Socket extends Duplex {
137137
138138 decodeMessageWithTypeByte ( message : Uint8Array ) {
139139 const typeByte = message [ 0 ] ;
140- if ( typeByte === MESSAGE_TYPE . JSON ) {
140+ if ( typeByte === Number ( MESSAGE_TYPE . JSON ) ) {
141141 const jsonBytes = message . subarray ( 1 ) ;
142142 const textDecoder = new TextDecoder ( 'utf-8' ) ;
143143 const jsonStr = textDecoder . decode ( jsonBytes ) ;
144144 return JSON . parse ( jsonStr ) ;
145- } else if ( typeByte === MESSAGE_TYPE . BINARY ) {
145+ } else if ( typeByte === Number ( MESSAGE_TYPE . BINARY ) ) {
146146 return message . subarray ( 1 ) ;
147147 } else {
148148 // eslint-disable-next-line no-console
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function SchemeInput({
4747 ( event : React . ChangeEvent < HTMLInputElement > ) => {
4848 updateConnectionFormField ( {
4949 type : 'update-connection-scheme' ,
50- isSrv : event . target . value === MONGODB_SCHEME . MONGODB_SRV ,
50+ isSrv : event . target . value === String ( MONGODB_SCHEME . MONGODB_SRV ) ,
5151 } ) ;
5252 } ,
5353 [ updateConnectionFormField ]
You can’t perform that action at this time.
0 commit comments