File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,33 @@ module.exports = {
5
5
tsconfigRootDir : __dirname ,
6
6
project : [ './tsconfig-lint.json' ] ,
7
7
} ,
8
+ overrides : [
9
+ {
10
+ files : [ './src/**/*.ts' , './src/**/*.tsx' ] ,
11
+ rules : {
12
+ // See -
13
+ // https://typescript-eslint.io/rules/no-restricted-imports/#how-to-use
14
+ 'no-restricted-imports' : 'off' ,
15
+ '@typescript-eslint/no-restricted-imports' : [
16
+ 'error' ,
17
+ {
18
+ patterns : [
19
+ {
20
+ group : [ '@mongodb-js/connection-storage' , 'mongodb' ] ,
21
+ message :
22
+ '@mongodb-js/connection-form package is shared between Compass and VSCode and should use Compass-specific packages only for type definitions' ,
23
+ allowTypeImports : true ,
24
+ } ,
25
+ ] ,
26
+ } ,
27
+ ] ,
28
+ } ,
29
+ } ,
30
+ {
31
+ files : [ './src/**/*.spec.ts' ] ,
32
+ rules : {
33
+ '@typescript-eslint/no-restricted-imports' : [ 'off' ] ,
34
+ } ,
35
+ } ,
36
+ ] ,
8
37
} ;
You can’t perform that action at this time.
0 commit comments