|
10 | 10 | "build": "node scripts/buildRscWorker.mjs && node scripts/buildSandpackHooksLint.mjs && node scripts/buildSandpackTheme.mjs && next build && node --experimental-modules ./scripts/downloadFonts.mjs", |
11 | 11 | "lint": "eslint .", |
12 | 12 | "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", |
16 | 16 | "prettier:diff": "yarn nit:source", |
17 | 17 | "lint-heading-ids": "node scripts/headingIdLinter.js", |
18 | 18 | "fix-headings": "node scripts/headingIdLinter.js --fix", |
|
112 | 112 | "showDetails": true |
113 | 113 | }, |
114 | 114 | "lint-staged": { |
115 | | - "*.{js,ts,jsx,tsx,css}": "yarn prettier", |
| 115 | + "*.{js,ts,jsx,tsx,css}": "yarn prettier --write", |
116 | 116 | "src/**/*.md": "yarn fix-headings" |
117 | 117 | }, |
118 | 118 | "packageManager": "yarn@1.22.22" |
|
0 commit comments