Skip to content

Commit 0da7a40

Browse files
authored
NEW @W-19457570@ Pre-commit enforces linting (#341)
1 parent b244924 commit 0da7a40

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
npm run lint
12
git diff --name-only --cached --diff-filter=ACMR > `pwd`/.scratchfile
23
node ./.node-scripts/validate-changed-package-versions.js `pwd`/.scratchfile
34
cd packages

.node-scripts/validate-package-interdependencies.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function main() {
55
const packageNames = process.argv[2].split('\n');
66

77
if (packageNames.length > 0) {
8-
displayList('WILL ATTEMPT TO VALIDATE THESE PACKAGES:', packageNames);
8+
displayList('WILL ATTEMPT TO VALIDATE INTERDEPENDENCIES BETWEEN THESE PACKAGES:', packageNames);
99
} else {
1010
console.log('NO PACKAGES PROVIDED FOR VALIDATION');
1111
process.exit(0);
@@ -57,4 +57,4 @@ function identifyIncorrectlyInterdependentPackages(packageJsons) {
5757
return incorrectInterdependencies;
5858
}
5959

60-
main();
60+
main();

0 commit comments

Comments
 (0)