Skip to content

Commit d45b250

Browse files
chadwickellisantfu
andauthoredApr 3, 2024··
fix: add name field to @stylistic/eslint-plugin configuration (#374)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
1 parent efe18c9 commit d45b250

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎packages/eslint-config/src/flat/index.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@ export function createConfigForNuxt(options: NuxtESLintConfigOptions = {}): Flat
4747
}
4848

4949
if (resolved.features.stylistic) {
50-
c.append(
51-
stylistic(resolved.features.stylistic === true ? {} : resolved.features.stylistic),
52-
)
50+
c.append({
51+
name: 'nuxt/stylistic',
52+
...stylistic(
53+
resolved.features.stylistic === true
54+
? {}
55+
: resolved.features.stylistic,
56+
),
57+
})
5358
}
5459

5560
c.append(

0 commit comments

Comments
 (0)
Please sign in to comment.