Skip to content

Commit 5cb9a2f

Browse files
committed
chore(linting): add lint-staged package
1 parent 9908a1e commit 5cb9a2f

File tree

6 files changed

+329
-40
lines changed

6 files changed

+329
-40
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ testem.log
4343
# System Files
4444
.DS_Store
4545
Thumbs.db
46+
.eslintcache
4647

4748
# Test coverage and cypress output
4849
/.nyc_output

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-push .husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm run lint
4+
npx lint-staged

.lintstagedrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.{ts,html}": [
3+
"eslint --cache --fix"
4+
]
5+
}

0 commit comments

Comments
 (0)