File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " eslint-mdx " : patch
3
+ ---
4
+
5
+ fix: pass ` cwd ` into ` getRemarkConfig ` from ` getRemarkProcessor `
Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ export const getRemarkProcessor = async (
141
141
filePath : string ,
142
142
isMdx : boolean ,
143
143
ignoreRemarkConfig ?: boolean ,
144
+ cwd ?: string ,
144
145
) => {
145
146
const initCacheKey = `${ String ( isMdx ) } -${ filePath } `
146
147
@@ -150,7 +151,9 @@ export const getRemarkProcessor = async (
150
151
return cachedProcessor
151
152
}
152
153
153
- const result = ignoreRemarkConfig ? null : await getRemarkConfig ( filePath )
154
+ const result = ignoreRemarkConfig
155
+ ? null
156
+ : await getRemarkConfig ( filePath , cwd )
154
157
155
158
const cacheKey = result ?. filePath
156
159
? `${ String ( isMdx ) } -${ result . filePath } `
@@ -241,6 +244,7 @@ runAsWorker(
241
244
filePath ,
242
245
isMdx ,
243
246
ignoreRemarkConfig ,
247
+ cwd ,
244
248
)
245
249
246
250
const fileOptions : VFileOptions = {
You can’t perform that action at this time.
0 commit comments