File tree 2 files changed +15
-5
lines changed
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 17
17
"enabled" : true ,
18
18
"indentStyle" : " space" ,
19
19
"indentSize" : 2
20
+ },
21
+ "javascript" :{
22
+ "formatter" :{
23
+ "quoteStyle" : " double"
24
+ }
20
25
}
21
26
}
Original file line number Diff line number Diff line change @@ -167,7 +167,6 @@ const defaultConfig: Configuration = {
167
167
} ,
168
168
linter : {
169
169
enabled : true ,
170
- ignore : [ "dist/**/*" ] ,
171
170
rules : {
172
171
recommended : true ,
173
172
} ,
@@ -177,18 +176,24 @@ const defaultConfig: Configuration = {
177
176
indentStyle : "space" ,
178
177
indentSize : 2 ,
179
178
} ,
179
+ javascript : {
180
+ formatter : {
181
+ quoteStyle : "single" ,
182
+ } ,
183
+ } ,
180
184
} ;
181
185
182
186
export const getBiomeConfig = ( ) : Configuration => {
183
187
try {
188
+ let config = defaultConfig ;
184
189
const biomeConfigPath = findNearestBiomeConfig ( ) ;
185
190
186
- if ( ! biomeConfigPath ) {
187
- throw new Error ( "No biome config found, using default config" ) ;
191
+ if ( biomeConfigPath ) {
192
+ const biomeConfig = readFileSync ( biomeConfigPath , "utf8" ) ;
193
+ config = Object . assign ( config , JSON . parse ( biomeConfig ) ) ;
188
194
}
189
195
190
- const biomeConfig = readFileSync ( biomeConfigPath , "utf8" ) ;
191
- return JSON . parse ( biomeConfig ) ;
196
+ return config ;
192
197
} catch ( error ) {
193
198
console . warn ( error ) ;
194
199
return defaultConfig ;
You can’t perform that action at this time.
0 commit comments