Skip to content

Commit 276ee30

Browse files
fix(deps): update dependency prettier to v3 (#269)
* fix(deps): update dependency prettier to v3
1 parent 6daa070 commit 276ee30

14 files changed

+40
-40
lines changed

index.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export async function main() {
137137

138138
await command("git add CODE_OF_CONDUCT.md");
139139
await command(
140-
"git commit -m 'docs(CODE_OF_CONDUCT): Contributor Covenant'"
140+
"git commit -m 'docs(CODE_OF_CONDUCT): Contributor Covenant'",
141141
);
142142

143143
await command("git add CONTRIBUTING.md");
@@ -160,7 +160,7 @@ export async function main() {
160160
});
161161

162162
await command(
163-
`git remote add origin [email protected]:${answers.repository}.git`
163+
`git remote add origin [email protected]:${answers.repository}.git`,
164164
);
165165
await command(`git push -u origin HEAD`);
166166
await command(`git checkout -b initial-version`);
@@ -224,11 +224,11 @@ export async function main() {
224224

225225
await writePrettyFile(
226226
".gitignore",
227-
["coverage/", "node_modules/", "pkg/"].join("\n")
227+
["coverage/", "node_modules/", "pkg/"].join("\n"),
228228
);
229229
await command(`git add .gitignore`);
230230
await command(
231-
`git commit -m 'build(gitignore): coverage, node_modules, pkg'`
231+
`git commit -m 'build(gitignore): coverage, node_modules, pkg'`,
232232
);
233233

234234
writePrettyFile(
@@ -242,11 +242,11 @@ export async function main() {
242242
emitDeclarationOnly: true,
243243
sourceMap: true,
244244
},
245-
})
245+
}),
246246
);
247247
await command(`git add tsconfig.json`);
248248
await command(
249-
`git commit -m 'build(typescript): configuration for esbuild'`
249+
`git commit -m 'build(typescript): configuration for esbuild'`,
250250
);
251251

252252
console.log("create smoke test");
@@ -275,7 +275,7 @@ export async function main() {
275275
}).not.toThrow();
276276
});
277277
});
278-
`
278+
`,
279279
);
280280
} else {
281281
await writePrettyFile(
@@ -292,7 +292,7 @@ export async function main() {
292292
expect(${answers.exportName}.VERSION).toEqual("0.0.0-development");
293293
});
294294
});
295-
`
295+
`,
296296
);
297297
}
298298

@@ -302,7 +302,7 @@ export async function main() {
302302
console.log("create src");
303303
await writePrettyFile(
304304
"src/version.ts",
305-
'export const VERSION = "0.0.0-development"'
305+
'export const VERSION = "0.0.0-development"',
306306
);
307307

308308
if (answers.isPlugin) {
@@ -320,7 +320,7 @@ export async function main() {
320320
*/
321321
export function ${answers.exportName}(octokit: Octokit, options: Options) {}
322322
${answers.exportName}.VERSION = VERSION;
323-
`
323+
`,
324324
);
325325
} else if (answers.isAuthenticationStrategy) {
326326
await writePrettyFile(
@@ -345,7 +345,7 @@ export async function main() {
345345
});
346346
};
347347
348-
`
348+
`,
349349
);
350350
await writePrettyFile(
351351
"src/types.ts",
@@ -355,7 +355,7 @@ export async function main() {
355355
AuthOptions: any;
356356
Authentication: any;
357357
};
358-
`
358+
`,
359359
);
360360
await writePrettyFile(
361361
"src/auth.ts",
@@ -365,7 +365,7 @@ export async function main() {
365365
export async function auth(options: AuthOptions): Promise<Authentication> {
366366
// TODO: add implementation
367367
}
368-
`
368+
`,
369369
);
370370
await writePrettyFile(
371371
"src/hook.ts",
@@ -392,7 +392,7 @@ export async function main() {
392392
// probably something like setting the authorization header
393393
return request(route, parameters);
394394
}
395-
`
395+
`,
396396
);
397397
} else {
398398
const isClass = /^[A-Z]/.test(answers.exportName);
@@ -406,7 +406,7 @@ export async function main() {
406406
export class ${answers.exportName} {
407407
static VERSION = VERSION
408408
}
409-
`
409+
`,
410410
);
411411
} else {
412412
await writePrettyFile(
@@ -416,7 +416,7 @@ export async function main() {
416416
417417
export function ${answers.exportName}() {}
418418
${answers.exportName}.VERSION = VERSION
419-
`
419+
`,
420420
);
421421
}
422422
}

lib/create-branch-protection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ export async function createBranchProtection(octokit, { owner, repo }) {
1717
contexts: ["WIP", "test"],
1818
},
1919
restrictions: null,
20-
}
20+
},
2121
);
2222
}

lib/create-coc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const __dirname = fileURLToPath(new URL(".", import.meta.url));
1010

1111
const cocText = readFileSync(
1212
pathJoin(__dirname, "..", "vendor", "code-of-conduct.en.md"),
13-
"utf8"
13+
"utf8",
1414
);
1515

1616
async function createCoc(email) {
1717
const contributorCovenantText = cocText.replace(
1818
"[INSERT EMAIL ADDRESS]",
19-
email
19+
email,
2020
);
2121
await writePrettyFile("CODE_OF_CONDUCT.md", contributorCovenantText);
2222
}

lib/create-contributing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ on GitHub, generates changelogs from the commit messages and puts them into the
7777
Before the publish it runs the \`npm run build\` script which creates a \`pkg/\` folder with distributions for browsers, node and Typescript definitions. The contents of the \`pkg/\` folder are published to the npm registry.
7878
7979
If the pull request looks good but does not follow the commit conventions, use the <kbd>Squash & merge</kbd> button.
80-
`
80+
`,
8181
);
8282
}

lib/create-esbuild-script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,6 @@ async function main() {
124124
);
125125
}
126126
main();
127-
`
127+
`,
128128
);
129129
}

lib/create-issue-templates.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function createIssueTemplates(isOctokitOrg) {
2525
**What the problem might be**
2626
2727
<!-- If you have an idea where the bug might lie, please share here. Otherwise remove the whole section -->
28-
`
28+
`,
2929
);
3030
await writePrettyFile(
3131
".github/ISSUE_TEMPLATE/02_feature_request.md",
@@ -48,7 +48,7 @@ async function createIssueTemplates(isOctokitOrg) {
4848
**Alternatives you tried**
4949
5050
<!-- Describe the workarounds you tried so far and how they worked for you -->
51-
`
51+
`,
5252
);
5353

5454
await writePrettyFile(
@@ -57,7 +57,7 @@ async function createIssueTemplates(isOctokitOrg) {
5757
contact_links:
5858
- name: 🆘 I need Help
5959
url: https://github.com/octokit/octokit.js/discussions
60-
about: Got a question? An idea? Feedback? Start here.`
60+
about: Got a question? An idea? Feedback? Start here.`,
6161
);
6262
return;
6363
}
@@ -69,7 +69,7 @@ name: "🆘 Help"
6969
about: "How does this even work 🤷‍♂️"
7070
labels: support
7171
---
72-
`
72+
`,
7373
);
7474

7575
await writePrettyFile(
@@ -93,7 +93,7 @@ labels: bug
9393
**What the problem might be**
9494
9595
<!-- If you have an idea where the bug might lie, please share here. Otherwise remove the whole section -->
96-
`
96+
`,
9797
);
9898
await writePrettyFile(
9999
".github/ISSUE_TEMPLATE/03_feature_request.md",
@@ -116,6 +116,6 @@ labels: feature
116116
**Alternatives you tried**
117117
118118
<!-- Describe the workarounds you tried so far and how they worked for you -->
119-
`
119+
`,
120120
);
121121
}

lib/create-pull-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export { createPullRequest };
22

33
async function createPullRequest(
44
octokit,
5-
{ owner, repo, ownerId, repositoryId }
5+
{ owner, repo, ownerId, repositoryId },
66
) {
77
let body = `- [ ] Implement features. Create separate \`feat: ...\` commits for each feature of the initial version
88
- [ ] 100% test coverage

lib/create-release-action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
env:
3333
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
3434
NPM_TOKEN: \${{ secrets.${npmTokenSecretName} }}
35-
`
35+
`,
3636
);
3737
}

lib/create-repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export { createRepository };
22

33
async function createRepository(
44
octokit,
5-
{ isUserRepo, owner, repo, description }
5+
{ isUserRepo, owner, repo, description },
66
) {
77
const createRepoOptions = {
88
name: repo,

lib/create-test-action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
- run: npm ci
4141
- run: npm run lint
4242
if: \${{ always() }}
43-
`
43+
`,
4444
);
4545
}

0 commit comments

Comments
 (0)