Skip to content

Commit 7793c80

Browse files
authoredJan 16, 2024
chore: use prettier . (#1250)
## 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.
1 parent c1080ec commit 7793c80

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"scripts": {
2525
"build": "tsup",
26-
"format": "prettier \"**/*\" --ignore-unknown",
26+
"format": "prettier .",
2727
"initialize": "tsx ./bin/index.js --mode initialize",
2828
"lint": "eslint . .*js --max-warnings 0",
2929
"lint:knip": "knip",

‎script/__snapshots__/migrate-test-e2e.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ exports[`expected file changes > package.json 1`] = `
167167
@@ ... @@
168168
"scripts": {
169169
"build": "tsup",
170-
"format": "prettier \\"**/*\\" --ignore-unknown",
170+
"format": "prettier .",
171171
- "initialize": "tsx ./bin/index.js --mode initialize",
172172
"lint": "eslint . .*js --max-warnings 0",
173173
"lint:knip": "knip",

‎src/steps/writing/creation/writePackageJson.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ describe("writePackageJson", () => {
101101
},
102102
"scripts": {
103103
"build": "tsup",
104-
"format": "prettier "**/*" --ignore-unknown",
104+
"format": "prettier .",
105105
"lint": "eslint . .*js --max-warnings 0",
106106
"lint:knip": "knip",
107107
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line",
@@ -174,7 +174,7 @@ describe("writePackageJson", () => {
174174
},
175175
"scripts": {
176176
"build": "tsup",
177-
"format": "prettier "**/*" --ignore-unknown",
177+
"format": "prettier .",
178178
"lint": "eslint . .*js --max-warnings 0",
179179
"prepare": "husky install",
180180
"tsc": "tsc",

‎src/steps/writing/creation/writePackageJson.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export async function writePackageJson(options: Options) {
8383
},
8484
scripts: {
8585
build: "tsup",
86-
format: 'prettier "**/*" --ignore-unknown',
86+
format: "prettier .",
8787
lint: "eslint . .*js --max-warnings 0",
8888
...(!options.excludeLintKnip && {
8989
"lint:knip": "knip",

0 commit comments

Comments
 (0)
Please sign in to comment.