Skip to content

Commit c2d5a35

Browse files
committed
fix: avoid inserting name for eslintrc configs; fixes #1239
1 parent 5429982 commit c2d5a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const index = {
133133
*/
134134
const createRecommendedRuleset = (warnOrError, flatName) => {
135135
return {
136-
name: flatName,
136+
...(flatName ? {name: flatName} : {}),
137137
// @ts-expect-error Ok
138138
plugins:
139139
flatName ? {

0 commit comments

Comments
 (0)