Skip to content

Commit 28e307a

Browse files
style: auto-fix linting issues
1 parent b97df0c commit 28e307a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/commands/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ async function discoverMarkdownFiles(
184184
): Promise<IndexableFile[]> {
185185
// Determine the effective boundary for file scanning
186186
const effectiveBoundary = options.boundary ? resolve(options.boundary) : targetDir;
187-
187+
188188
// Build glob pattern based on maxDepth option
189189
let globPattern: string;
190190
if (options.maxDepth !== undefined) {
@@ -195,10 +195,10 @@ async function discoverMarkdownFiles(
195195
globPattern = join(targetDir, '**/*.md');
196196
}
197197

198-
const globOptions: Parameters<typeof glob>[1] = {
198+
const globOptions: Parameters<typeof glob>[1] = {
199199
ignore: ['**/node_modules/**'],
200200
};
201-
201+
202202
// Only set cwd if noTraverseUp is enabled
203203
if (options.noTraverseUp) {
204204
globOptions.cwd = targetDir;
@@ -208,26 +208,26 @@ async function discoverMarkdownFiles(
208208

209209
// Filter files to respect boundary constraints and convert Path objects to strings
210210
const boundaryFilePaths = filePaths
211-
.map(filePath => typeof filePath === 'string' ? filePath : filePath.toString())
212-
.filter(filePath => {
211+
.map((filePath) => (typeof filePath === 'string' ? filePath : filePath.toString()))
212+
.filter((filePath) => {
213213
const resolvedPath = resolve(filePath);
214-
214+
215215
// Ensure file is within the boundary directory
216216
if (options.boundary) {
217217
const relativeToBoundary = relative(effectiveBoundary, resolvedPath);
218218
if (relativeToBoundary.startsWith('..')) {
219219
return false; // File is outside boundary
220220
}
221221
}
222-
222+
223223
// Ensure file is within or below target directory when noTraverseUp is enabled
224224
if (options.noTraverseUp) {
225225
const relativeToTarget = relative(targetDir, resolvedPath);
226226
if (relativeToTarget.startsWith('..')) {
227227
return false; // File is above target directory
228228
}
229229
}
230-
230+
231231
return true;
232232
});
233233

0 commit comments

Comments
 (0)