Skip to content

Commit

Permalink
feat: add server components to single root list, fix #457
Browse files Browse the repository at this point in the history
Co-authored-by: kingyue737 <kingyue737@users.noreply.github.com>
  • Loading branch information
antfu and kingyue737 committed Jul 27, 2024
1 parent a0e8d86 commit 6e232f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config/src/flat/configs/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function nuxt(options: NuxtESLintConfigOptions): Linter.Config[]
const fileSingleRoot = [
...(dirs.layouts?.map(layoutsDir => join(layoutsDir, `**/*.${GLOB_EXTS}`)) || []),
...(dirs.pages?.map(pagesDir => join(pagesDir, `**/*.${GLOB_EXTS}`)) || []),
...(dirs.components?.map(componentsDir => join(componentsDir, `**/*.server.${GLOB_EXTS}`)) || []),
]

const configs: Linter.Config[] = []
Expand Down

0 comments on commit 6e232f0

Please sign in to comment.