Skip to content

Commit 29e3bee

Browse files
committed
chore: avoid eslint error
1 parent 71bf7b6 commit 29e3bee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/release/common.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ export const OWNER = config.owner;
88
export const REPO = config.repo;
99
export const MAIN_GENERATOR = Object.keys(clientsConfig).reduce(
1010
(mainGenerator: { [lang: string]: string }, lang: string) => {
11-
// eslint-disable-next-line no-param-reassign
12-
mainGenerator[lang] = clientsConfig[lang].mainGenerator;
13-
return mainGenerator;
11+
return {
12+
...mainGenerator,
13+
[lang]: clientsConfig[lang].mainGenerator,
14+
};
1415
},
1516
{}
1617
);

0 commit comments

Comments
 (0)