Skip to content

Commit 7d763a0

Browse files
[internal] Prettier all if dependencies changes
Same as mui/base-ui#2437
1 parent a2adf41 commit 7d763a0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,14 @@ jobs:
223223
- install_js
224224
- run:
225225
name: '`pnpm prettier` changes committed?'
226-
command: pnpm prettier --check
226+
command: |
227+
# #target-branch-reference
228+
if [[ $(git diff --name-status master | grep pnpm-lock) == "" ]];
229+
then
230+
pnpm prettier --check
231+
else
232+
pnpm exec prettier --check . --ignore-path .lintignore
233+
fi
227234
- run:
228235
name: '`pnpm extract-error-codes` changes committed?'
229236
command: |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"eslint:ci": "eslint . --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0",
2323
"stylelint": "stylelint --reportInvalidScopeDisables --reportNeedlessDisables \"{docs,examples,app}/**/*.{js,ts,tsx}\" --ignore-path .gitignore",
2424
"markdownlint": "markdownlint-cli2 \"**/*.md\"",
25-
"prettier": "pretty-quick --ignore-path .eslintignore",
25+
"prettier": "pretty-quick --ignore-path .eslintignore --branch master",
2626
"prettier:all": "prettier --write . --ignore-path .eslintignore",
2727
"size:snapshot": "node --max-old-space-size=4096 ./scripts/sizeSnapshot/create",
2828
"size:why": "pnpm size:snapshot --analyze",

0 commit comments

Comments
 (0)