Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: switch format:write to format --write #901

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ It should be applied automatically when you save files in VS Code or make a Git
To manually reformat all files, you can run:

```shell
pnpm format:write
pnpm format --write
```

## Linting
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"scripts": {
"build": "tsup",
"format": "prettier \"**/*\" --ignore-unknown",
"format:write": "pnpm format --write",
"initialize": "tsx ./src/bin/index.js --mode initialize",
"lint": "eslint . .*js --max-warnings 0",
"lint:knip": "knip",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe("createDevelopment", () => {
To manually reformat all files, you can run:

\`\`\`shell
pnpm format:write
pnpm format --write
\`\`\`

## Linting
Expand Down Expand Up @@ -197,7 +197,7 @@ describe("createDevelopment", () => {
To manually reformat all files, you can run:

\`\`\`shell
pnpm format:write
pnpm format --write
\`\`\`

## Linting
Expand Down
2 changes: 1 addition & 1 deletion src/steps/writing/creation/dotGitHub/createDevelopment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ It should be applied automatically when you save files in VS Code or make a Git
To manually reformat all files, you can run:

\`\`\`shell
pnpm format:write
pnpm format --write
\`\`\`

## Linting
Expand Down
2 changes: 0 additions & 2 deletions src/steps/writing/creation/writePackageJson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ describe("writePackageJson", () => {
"scripts": {
"build": "tsup",
"format": "prettier \\"**/*\\" --ignore-unknown",
"format:write": "pnpm format --write",
"lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
"lint:knip": "knip",
"lint:md": "markdownlint \\"**/*.md\\" \\".github/**/*.md\\" --rules sentences-per-line",
Expand Down Expand Up @@ -180,7 +179,6 @@ describe("writePackageJson", () => {
"scripts": {
"build": "tsup",
"format": "prettier \\"**/*\\" --ignore-unknown",
"format:write": "pnpm format --write",
"lint": "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
"prepare": "husky install",
"tsc": "tsc",
Expand Down
1 change: 0 additions & 1 deletion src/steps/writing/creation/writePackageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export async function writePackageJson(options: Options) {
scripts: {
build: "tsup",
format: 'prettier "**/*" --ignore-unknown',
"format:write": "pnpm format --write",
lint: "eslint . .*js --max-warnings 0 --report-unused-disable-directives",
...(!options.excludeLintKnip && {
"lint:knip": "knip",
Expand Down