This repository was archived by the owner on Nov 16, 2023. It is now read-only.
File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 137
137
"tslint.suppressWhileTypeErrorsPresent" : {
138
138
"type" : " boolean" ,
139
139
"description" : " Always show rule failures as warnings, independent of the tslint configuration."
140
+ },
141
+ "tslint.packageManager" : {
142
+ "type" : " string" ,
143
+ "enum" : [
144
+ " npm" ,
145
+ " pnpm" ,
146
+ " yarn"
147
+ ],
148
+ "default" : " npm" ,
149
+ "description" : " The package manager you use to install node modules."
140
150
}
141
151
}
142
152
}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ interface SynchronizedConfiguration {
12
12
suppressWhileTypeErrorsPresent ?: boolean ;
13
13
jsEnable ?: boolean ;
14
14
exclude ?: string | string [ ] ;
15
+ packageManager ?: 'npm' | 'pnpm' | 'yarn' ;
15
16
}
16
17
17
18
export async function activate ( context : vscode . ExtensionContext ) {
@@ -61,6 +62,7 @@ function getConfiguration(): SynchronizedConfiguration {
61
62
withConfigValue ( config , outConfig , 'jsEnable' ) ;
62
63
withConfigValue ( config , outConfig , 'configFile' ) ;
63
64
withConfigValue ( config , outConfig , 'exclude' ) ;
65
+ withConfigValue ( config , outConfig , 'packageManager' ) ;
64
66
65
67
return outConfig ;
66
68
}
You can’t perform that action at this time.
0 commit comments