Skip to content

Commit 6b2ebbb

Browse files
authoredMar 21, 2024··
fix(module): account for layer.config.components being undefined (#352)
1 parent d706c24 commit 6b2ebbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/module/src/modules/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function getDirs(nuxt: Nuxt): NuxtESLintConfigOptions['dirs'] {
192192
dirs.composables.push(r(dir))
193193
}
194194

195-
if (layer.config.components !== false) {
195+
if (layer.config.components) {
196196
const options = layer.config.components || {}
197197
if (options !== true && 'dirs' in options) {
198198
for (const dir of options.dirs || []) {

0 commit comments

Comments
 (0)
Please sign in to comment.