Skip to content

Commit

Permalink
fix(module): account for layer.config.components being undefined (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianGlowala authored Mar 21, 2024
1 parent d706c24 commit 6b2ebbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/module/src/modules/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function getDirs(nuxt: Nuxt): NuxtESLintConfigOptions['dirs'] {
dirs.composables.push(r(dir))
}

if (layer.config.components !== false) {
if (layer.config.components) {
const options = layer.config.components || {}
if (options !== true && 'dirs' in options) {
for (const dir of options.dirs || []) {
Expand Down

0 comments on commit 6b2ebbb

Please sign in to comment.