Skip to content

Commit 86602f1

Browse files
committed
Enable new CLI for Prettier #11661
2x faster with cold caches πŸŽ‰
1 parent 2d6d3b0 commit 86602f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

β€Ž.github/workflows/main.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- run: ./vendor/bin/phpstan analyse
6565
- run: ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
6666
- run: yarn lint
67-
- run: ./node_modules/.bin/prettier --check .
67+
- run: ./node_modules/.bin/prettier --experimental-cli --check .
6868
- run: ./node_modules/.bin/ng test --progress false --watch=false --browsers ChromeHeadlessCustom
6969

7070
- name: Upload code coverage

β€Žbin/pre-commit.shβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ files=$(git diff --cached --name-only --diff-filter=ACMR | grep -E '\.(js|json|h
66
if [ "$files" != "" ]; then
77

88
# Run prettier before commit
9-
echo "$files" | xargs ./node_modules/.bin/prettier --write
9+
echo "$files" | xargs ./node_modules/.bin/prettier --experimental-cli --write
1010
if [ $? -ne 0 ]; then
1111
pass=false
1212
fi

β€Žcodegen.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const config: CodegenConfig = {
1919
},
2020
},
2121
hooks: {
22-
afterAllFileWrite: ["prettier --ignore-path '' --write"],
22+
afterAllFileWrite: ["prettier --experimental-cli --ignore-path '' --write"],
2323
},
2424
config: {
2525
// immutableTypes:true, // TODO enable this when we have time

0 commit comments

Comments
Β (0)