Skip to content

Commit 54afdba

Browse files
committed
chore: Fix lefthook configuration (#230)
1 parent 924d45a commit 54afdba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.prettierignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
*.png
1+
*.png
2+
*.yml
3+
.prettierignore

lefthook.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ pre-commit:
22
parallel: true
33
commands:
44
Pretty:
5-
glob: './src/**'
65
run: npx prettier --check {staged_files}
76
ESLint:
8-
glob: 'src/**/*.{ts,tsx}'
9-
run: npx eslint {staged_files}
7+
glob: '*.{ts,tsx}'
8+
run: npx eslint -c .eslintrc.js {staged_files}
109
CSpell:
11-
run: npx cspell --gitignore --show-suggestions --no-must-find-files {staged_files}
10+
run: npx cspell --gitignore --show-suggestions --no-must-find-files {staged_files}

0 commit comments

Comments
 (0)