Skip to content

Commit d8b2add

Browse files
committed
Fix Prettier script passthrough
1 parent c13b327 commit d8b2add

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
*
2+
!plugins/
3+
!plugins/**
4+
!src/
5+
!src/**
16
src/content/**/*.md
7+
src/components/MDX/Sandpack/generatedHooksLint.ts
8+
src/components/MDX/Sandpack/sandpack-rsc/generatedSources.ts
9+
src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/**

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"build": "node scripts/buildRscWorker.mjs && node scripts/buildSandpackHooksLint.mjs && node scripts/buildSandpackTheme.mjs && next build && node --experimental-modules ./scripts/downloadFonts.mjs",
1111
"lint": "eslint .",
1212
"lint:fix": "eslint . --fix",
13-
"format:source": "prettier --config .prettierrc --write \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
14-
"nit:source": "prettier --config .prettierrc --list-different \"{plugins,src}/**/*.{js,ts,jsx,tsx,css}\"",
15-
"prettier": "yarn format:source",
13+
"format:source": "yarn prettier --write .",
14+
"nit:source": "yarn prettier --list-different .",
15+
"prettier": "prettier --config .prettierrc --ignore-path .prettierignore",
1616
"prettier:diff": "yarn nit:source",
1717
"lint-heading-ids": "node scripts/headingIdLinter.js",
1818
"fix-headings": "node scripts/headingIdLinter.js --fix",
@@ -112,7 +112,7 @@
112112
"showDetails": true
113113
},
114114
"lint-staged": {
115-
"*.{js,ts,jsx,tsx,css}": "yarn prettier",
115+
"*.{js,ts,jsx,tsx,css}": "yarn prettier --write",
116116
"src/**/*.md": "yarn fix-headings"
117117
},
118118
"packageManager": "yarn@1.22.22"

0 commit comments

Comments
 (0)