Skip to content

Commit

Permalink
chore: use prettier . (#1250)
Browse files Browse the repository at this point in the history
## PR Checklist

- [x] Addresses an existing open issue: fixes #1218
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md)
were taken

## Overview

Directly replaces `prettier "**/*" --ignore-unknown` with `prettier .`
per Prettier's blog post.
  • Loading branch information
JoshuaKGoldberg committed Jan 16, 2024
1 parent c1080ec commit 7793c80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"scripts": {
"build": "tsup",
"format": "prettier \"**/*\" --ignore-unknown",
"format": "prettier .",
"initialize": "tsx ./bin/index.js --mode initialize",
"lint": "eslint . .*js --max-warnings 0",
"lint:knip": "knip",
Expand Down
2 changes: 1 addition & 1 deletion script/__snapshots__/migrate-test-e2e.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ exports[`expected file changes > package.json 1`] = `
@@ ... @@
"scripts": {
"build": "tsup",
"format": "prettier \\"**/*\\" --ignore-unknown",
"format": "prettier .",
- "initialize": "tsx ./bin/index.js --mode initialize",
"lint": "eslint . .*js --max-warnings 0",
"lint:knip": "knip",
Expand Down
4 changes: 2 additions & 2 deletions src/steps/writing/creation/writePackageJson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe("writePackageJson", () => {
},
"scripts": {
"build": "tsup",
"format": "prettier "**/*" --ignore-unknown",
"format": "prettier .",
"lint": "eslint . .*js --max-warnings 0",
"lint:knip": "knip",
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line",
Expand Down Expand Up @@ -174,7 +174,7 @@ describe("writePackageJson", () => {
},
"scripts": {
"build": "tsup",
"format": "prettier "**/*" --ignore-unknown",
"format": "prettier .",
"lint": "eslint . .*js --max-warnings 0",
"prepare": "husky install",
"tsc": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion src/steps/writing/creation/writePackageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export async function writePackageJson(options: Options) {
},
scripts: {
build: "tsup",
format: 'prettier "**/*" --ignore-unknown',
format: "prettier .",
lint: "eslint . .*js --max-warnings 0",
...(!options.excludeLintKnip && {
"lint:knip": "knip",
Expand Down

0 comments on commit 7793c80

Please sign in to comment.