Skip to content

Commit 5d2c661

Browse files
committed
chore: Automatically call git add after linting
1 parent 0dcab6d commit 5d2c661

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.dependency-cruiser.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
},
4747
},
4848
{
49-
name: 'not-to-deprecated',
49+
name: 'not-to-deprecated',
5050
comment:
5151
'This module uses a (version of an) npm module that has been deprecated. Either upgrade to a later ' +
5252
'version of that module, or find an alternative. Deprecated modules are a security risk.',

lefthook.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ pre-commit:
44
format:
55
glob: '*.{css,html,json,less,md,scss,yml}'
66
run: npx -c "cross-env NODE_OPTIONS=--max_old_space_size=4096 prettier --write --log-level error {staged_files}"
7+
stage_fixed: true
78
lint:
8-
glob: '*.{js,jsx,ts,tsx}'
9+
glob: '*.{js,jsx,ts,tsx,cjs,mjs,cts,mts}'
910
run: npx eslint {staged_files} --fix
11+
stage_fixed: true

0 commit comments

Comments
 (0)