Skip to content

Commit 6e232f0

Browse files
antfukingyue737
andcommittedJul 27, 2024··
feat: add server components to single root list, fix #457
Co-authored-by: kingyue737 <kingyue737@users.noreply.github.com>
1 parent a0e8d86 commit 6e232f0

File tree

1 file changed

+1
-0
lines changed
  • packages/eslint-config/src/flat/configs

1 file changed

+1
-0
lines changed
 

‎packages/eslint-config/src/flat/configs/nuxt.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default function nuxt(options: NuxtESLintConfigOptions): Linter.Config[]
1212
const fileSingleRoot = [
1313
...(dirs.layouts?.map(layoutsDir => join(layoutsDir, `**/*.${GLOB_EXTS}`)) || []),
1414
...(dirs.pages?.map(pagesDir => join(pagesDir, `**/*.${GLOB_EXTS}`)) || []),
15+
...(dirs.components?.map(componentsDir => join(componentsDir, `**/*.server.${GLOB_EXTS}`)) || []),
1516
]
1617

1718
const configs: Linter.Config[] = []

0 commit comments

Comments
 (0)
Please sign in to comment.