File tree Expand file tree Collapse file tree 8 files changed +10
-10
lines changed
configs/eslint-config-compass
connections/src/components Expand file tree Collapse file tree 8 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const tsConfigurations = [
6
6
'plugin:@typescript-eslint/recommended-requiring-type-checking' ,
7
7
] ;
8
8
const tsRules = {
9
+ '@typescript-eslint/no-unused-vars' : 'error' ,
9
10
'@typescript-eslint/no-unsafe-assignment' : 'off' ,
10
11
'@typescript-eslint/no-unsafe-call' : 'off' ,
11
12
'@typescript-eslint/no-unsafe-member-access' : 'off' ,
@@ -22,6 +23,7 @@ const testConfigurations = ['plugin:mocha/recommended'];
22
23
const testRules = {
23
24
'mocha/no-exclusive-tests' : 'error' ,
24
25
'mocha/no-hooks-for-single-case' : 'off' ,
26
+ '@typescript-eslint/no-explicit-any' : 'off' ,
25
27
} ;
26
28
27
29
module . exports = {
Original file line number Diff line number Diff line change 28
28
"postpackages-publish" : " git push && git push --tags" ,
29
29
"packages-version" : " lerna version --allow-branch main --no-push --no-private -m \" chore(release): Bump package versions\" " ,
30
30
"release" : " npm run release --workspace mongodb-compass --" ,
31
+ "reformat" : " lerna run reformat --stream" ,
31
32
"package-compass" : " npm run package-compass --workspace=mongodb-compass --" ,
32
33
"start" : " npm run start --workspace=mongodb-compass" ,
33
34
"test" : " lerna run test --concurrency 1 --stream" ,
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export type ConnectionFormError =
35
35
| SSHTunnelFieldError ;
36
36
37
37
export function getConnectFormErrors (
38
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
38
39
connectionOptions : ConnectionOptions
39
40
) : ConnectionFormError [ ] {
40
41
return [ ] ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export interface ConnectionFormWarning {
5
5
}
6
6
7
7
export function getConnectFormWarnings (
8
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
8
9
connectionOptions : ConnectionOptions
9
10
) : ConnectionFormWarning [ ] {
10
11
return [ ] ;
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import React from 'react';
3
3
import {
4
4
Banner ,
5
5
BannerVariant ,
6
- MongoDBLogo ,
7
6
compassUIColors ,
8
7
spacing ,
9
8
} from '@mongodb-js/compass-components' ;
@@ -32,11 +31,6 @@ const connectStyles = css({
32
31
background : compassUIColors . gray8 ,
33
32
} ) ;
34
33
35
- const logoStyles = css ( {
36
- margin : spacing [ 5 ] ,
37
- marginBottom : 0 ,
38
- } ) ;
39
-
40
34
const connectItemContainerStyles = css ( {
41
35
position : 'relative' ,
42
36
flexGrow : 1 ,
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import {
10
10
BulkWriteOptions ,
11
11
ClientSession ,
12
12
Collection ,
13
- CollectionInfo ,
14
13
CollStats ,
15
14
CommandFailedEvent ,
16
15
CommandSucceededEvent ,
@@ -32,7 +31,6 @@ import {
32
31
InsertManyResult ,
33
32
InsertOneOptions ,
34
33
InsertOneResult ,
35
- ListCollectionsOptions ,
36
34
MongoClient ,
37
35
MongoClientOptions ,
38
36
ServerClosedEvent ,
@@ -912,6 +910,9 @@ class DataService extends EventEmitter {
912
910
'Running raw find' ,
913
911
{ ns }
914
912
) ;
913
+
914
+ logop ( null ) ;
915
+
915
916
return this . _collection ( ns ) . find ( filter , options ) ;
916
917
}
917
918
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ export async function getInstance(
139
139
featureCompatibilityVersion : 1 ,
140
140
} ) . catch ( ( ) => null ) ,
141
141
142
- runCommand ( adminDb , { atlasVersion : 1 } ) . catch ( ( err ) => {
142
+ runCommand ( adminDb , { atlasVersion : 1 } ) . catch ( ( ) => {
143
143
return { version : '' , gitVersion : '' } ;
144
144
} ) ,
145
145
] ) ;
Original file line number Diff line number Diff line change 1
- import { Db , MongoClient } from 'mongodb' ;
1
+ import { MongoClient } from 'mongodb' ;
2
2
3
3
type ClientMockOptions = {
4
4
hosts : [ { host : string ; port : number } ] ;
You can’t perform that action at this time.
0 commit comments