Skip to content

Commit 751a3a6

Browse files
fix(deps): update dependency prettier to v3 (#112)
1 parent e13e12b commit 751a3a6

13 files changed

+24
-24
lines changed

cli.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ async function main() {
117117

118118
await command("git add CODE_OF_CONDUCT.md");
119119
await command(
120-
`git commit -m "docs(CODE_OF_CONDUCT): Contributor Covenant"`
120+
`git commit -m "docs(CODE_OF_CONDUCT): Contributor Covenant"`,
121121
);
122122

123123
await command("git add CONTRIBUTING.md");
@@ -141,7 +141,7 @@ async function main() {
141141
});
142142

143143
await command(
144-
`git remote add origin [email protected]:${answers.repository}.git`
144+
`git remote add origin [email protected]:${answers.repository}.git`,
145145
);
146146
await command(`git push -u origin HEAD`);
147147
await command(`git checkout -b initial-version`);
@@ -187,15 +187,15 @@ async function main() {
187187
if (error.status !== 403) throw error;
188188

189189
console.log(
190-
"Branch protection could not be enabled, because the repository is private and belongs to an organization using the free plan"
190+
"Branch protection could not be enabled, because the repository is private and belongs to an organization using the free plan",
191191
);
192192
}
193193

194194
const ignorePaths = ["node_modules"];
195195
await writePrettyFile(".gitignore", ignorePaths.join("\n"));
196196
await command(`git add .gitignore`);
197197
await command(
198-
`git commit -m "build(gitignore): ${ignorePaths.join(", ")}"`
198+
`git commit -m "build(gitignore): ${ignorePaths.join(", ")}"`,
199199
);
200200

201201
console.log("create script.js and cli.js");
@@ -209,7 +209,7 @@ import { script } from "./script.js";
209209
import { run } from "@octoherd/cli/run";
210210
211211
run(script);
212-
`
212+
`,
213213
);
214214

215215
await command(`git add script.js cli.js`);

lib/create-branch-protection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export default async function createBranchProtection(octokit, { owner, repo }) {
1414
contexts: owner === "octoherd" ? ["WIP", "test"] : ["test"],
1515
},
1616
restrictions: null,
17-
}
17+
},
1818
);
1919
}

lib/create-coc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import writePrettyFile from "./write-pretty-file.js";
33

44
export default async function createCoc(email) {
55
const contributorCovenantText = getTemplateFileContent(
6-
"CODE_OF_CONDUCT.md"
6+
"CODE_OF_CONDUCT.md",
77
).replace("{{EMAIL}}", email);
88
await writePrettyFile("CODE_OF_CONDUCT.md", contributorCovenantText);
99
}

lib/create-contributing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ Besides publishing a new version to npm, semantic-release also creates a git tag
6262
on GitHub, generates changelogs from the commit messages and puts them into the release notes.
6363
6464
If the pull request looks good but does not follow the commit conventions, use the <kbd>Squash & merge</kbd> button.
65-
`
65+
`,
6666
);
6767
}

lib/create-github-action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default async function createGitHubAction(actionFileName, options = {}) {
77
if (options.replace) {
88
fileContent = fileContent.replace(
99
options.replace.searchValue,
10-
options.replace.replaceValue
10+
options.replace.replaceValue,
1111
);
1212
}
1313

lib/create-issue-templates.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ labels: bug
2222
**What the problem might be**
2323
2424
<!-- If you have an idea where the bug might lie, please share here. Otherwise remove the whole section -->
25-
`
25+
`,
2626
);
2727
await writePrettyFile(
2828
".github/ISSUE_TEMPLATE/02_feature_request.md",
@@ -45,6 +45,6 @@ labels: feature
4545
**Alternatives you tried**
4646
4747
<!-- Describe the workarounds you tried so far and how they worked for you -->
48-
`
48+
`,
4949
);
5050
}

lib/create-license.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export default async function createLicense(name) {
66
"LICENSE.md",
77
getTemplateFileContent("LICENSE.md")
88
.replace("{{YEAR}}", new Date().getFullYear())
9-
.replace("{{OWNER}}", name)
9+
.replace("{{OWNER}}", name),
1010
);
1111
}

lib/create-pull-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default async function createPullRequest(
22
octokit,
3-
{ owner, repo, ownerId, repositoryId }
3+
{ owner, repo, ownerId, repositoryId },
44
) {
55
let body = `Your new script is ready to be implemented :tada:
66

lib/create-readme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default async function createReadme({
5555
minimalUsage += ` \\
5656
--${name} ${example}`;
5757
}
58-
}
58+
},
5959
);
6060
Object.entries(scriptOptions).forEach(([name, { type, example }]) => {
6161
if (type === "boolean") {
@@ -113,7 +113,7 @@ ${fullUsage}
113113
: ""
114114
} |
115115
`;
116-
}
116+
},
117117
);
118118

119119
content += `| \`--octoherd-token\`, \`-T\` | string | A personal access token ([create](https://github.com/settings/tokens/new?scopes=repo)). Script will create one if option is not set |\n`;

lib/create-repository.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default async function createRepository(
22
octokit,
3-
{ isUserRepo, owner, repo, description, repoIsPrivate }
3+
{ isUserRepo, owner, repo, description, repoIsPrivate },
44
) {
55
const createRepoOptions = {
66
name: repo,

lib/write-pretty-file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ export default async function writePrettyFile(path, content) {
2727
path,
2828
pretier.format(content, {
2929
parser,
30-
})
30+
}),
3131
);
3232
}

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"decamelize": "^6.0.0",
2828
"execa": "^7.0.0",
2929
"inquirer": "^9.0.0",
30-
"prettier": "^2.2.1",
30+
"prettier": "^3.0.0",
3131
"spdx-license-list": "^6.3.0"
3232
},
3333
"devDependencies": {

0 commit comments

Comments
 (0)