Skip to content

Commit 5117fb0

Browse files
committed
add: exec lint beforep pushing
1 parent f9dd5e1 commit 5117fb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/check-changes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ const { execSync } = require('child_process')
22

33
function changed() {
44
try {
5+
// execute lint
6+
execSync('npm run lint', { stdio: 'inherit' })
7+
58
// Run Git commands to check for changes in the lib/rules directory
69
const diffIndex = execSync('git diff-index --name-only -B -R -M -C HEAD lib/rules')
710
.toString()

0 commit comments

Comments
 (0)