Skip to content

Commit d8ad991

Browse files
authored
chore(repo): enforce clippy (#31093)
1 parent 98d3354 commit d8ad991

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.husky/pre-push

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
pnpm check-lock-files
2-
pnpm pretty-quick --check
3-
NX_TUI=false pnpm nx format-native nx
4-
NX_TUI=false pnpm nx lint-native nx
5-
pnpm check-commit
6-
pnpm documentation
1+
pnpm nx prepush --parallel 8 --tuiAutoExit 0

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"commit": "czg",
99
"check-commit": "node ./scripts/commit-lint.js",
1010
"check-format": "nx format:check --all",
11+
"check-format:quick": "pretty-quick --check",
1112
"check-imports": "node ./scripts/check-imports.js",
1213
"check-lock-files": "node ./scripts/check-lock-files.js",
1314
"check-documentation-map": "ts-node -P ./scripts/tsconfig.scripts.json ./scripts/documentation/map-link-checker.ts",
@@ -407,6 +408,7 @@
407408
"echo",
408409
"check-commit",
409410
"check-format",
411+
"check-format:quick",
410412
"check-imports",
411413
"check-lock-files",
412414
"check-codeowners"

project.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
"{workspaceRoot}/docs/generated"
7575
]
7676
},
77+
"check-format:quick": {
78+
"parallelism": false
79+
},
7780
"lint": {
7881
"dependsOn": ["@nx/nx-source:lint-pnpm-lock"],
7982
"cache": true,
@@ -82,6 +85,16 @@
8285
"lint-pnpm-lock": {
8386
"cache": true,
8487
"inputs": ["{projectRoot}/pnpm-lock.yaml"]
88+
},
89+
"prepush": {
90+
"dependsOn": [
91+
"nx:format-native",
92+
"nx:lint-native",
93+
"documentation",
94+
"check-commit",
95+
"check-format:quick",
96+
"check-lock-files"
97+
]
8598
}
8699
}
87100
}

0 commit comments

Comments
 (0)