Skip to content

Commit b984d0a

Browse files
committed
chore(js): update fix:fmt config
- not depend on lint - only run fix:fmt in precommit - add submodules path to prettierignore
1 parent b5ae884 commit b984d0a

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ repos:
2525
)
2626
- repo: local
2727
hooks:
28-
- id: turbo-fix
29-
name: Run turbo fix on packages changed since the last commit
28+
- id: turbo-fix-format
29+
name: Run turbo fix:format on packages changed since the last commit
3030
language: system
31-
entry: sh -c 'TURBO_SCM_BASE="HEAD^1" pnpm turbo fix --affected'
31+
entry: sh -c 'TURBO_SCM_BASE="HEAD^1" pnpm turbo fix:format --affected'
3232
pass_filenames: false
3333
# Hooks for the remote executor
3434
- id: cargo-fmt-remote-executor

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ pnpm-lock.yaml
22
patches/
33
.turbo/
44
target_chains/sui/vendor/
5+
lazer/contracts/evm/lib/
56

67
# This should stay in sync with the list of workspaces from
78
# `pnpm-workspace.yaml`

target_chains/ethereum/sdk/stylus/pyth-mock-solidity/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"test": "test"
99
},
1010
"scripts": {
11-
"test:format": "prettier --check .",
12-
"fix:format": "prettier --write ."
11+
"fix:format": "prettier --write \"src/**/*.sol\"",
12+
"test:format": "prettier --check \"src/**/*.sol\""
1313
},
1414
"keywords": [],
1515
"author": "",

turbo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"cache": false
1010
},
1111
"//#fix:format": {
12-
"dependsOn": ["//#install:modules", "//#fix:lint"],
12+
"dependsOn": ["//#install:modules"],
1313
"cache": false
1414
},
1515
"//#fix:lint": {
@@ -101,7 +101,7 @@
101101
"cache": false
102102
},
103103
"fix:format": {
104-
"dependsOn": ["//#install:modules", "fix:lint"],
104+
"dependsOn": ["//#install:modules"],
105105
"cache": false
106106
},
107107
"fix:lint": {

0 commit comments

Comments
 (0)