Skip to content

Commit a172224

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 a0c2567 commit a172224

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
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
3030
language: system
31-
entry: sh -c 'TURBO_SCM_BASE="HEAD^1" pnpm turbo fix --affected'
31+
entry: sh -c 'pnpm turbo fix:format'
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`
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/

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)