File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ async function getMarkdownRecommendedConfig() {
11
11
// Nothing
12
12
}
13
13
14
- if ( ! markdownPlugin ) {
15
- return [ ] ;
16
- }
17
-
18
14
return [
19
15
{
20
16
name : "markdown/code-blocks" ,
Original file line number Diff line number Diff line change @@ -287,7 +287,14 @@ async function getTypescriptRecommendedConfig() {
287
287
// Nothing
288
288
}
289
289
290
- const { configs } = typescriptPlugin ;
290
+ const { configs } = typescriptPlugin || {
291
+ configs : {
292
+ base : { languageOptions : { } } ,
293
+ eslintRecommended : { } ,
294
+ recommended : [ { name : "typescript-eslint/recommended" , rules : { } } ] ,
295
+ stylistic : [ { name : "typescript-eslint/stylistic" , rules : { } } ] ,
296
+ } ,
297
+ } ;
291
298
const baseConfig = configs . base ;
292
299
const eslintRecommendedConfig = configs . eslintRecommended ;
293
300
const recommendedConfig = configs . recommended . find (
You can’t perform that action at this time.
0 commit comments