chore: Run linters on staged files only (#6347)
- This PR speeds up the pre-commit hook to lint only the staged files instead of running it across all files as it does now.
This commit is contained in:
@@ -122,7 +122,6 @@
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"pre-push": "sh bin/validate_push"
|
||||
}
|
||||
},
|
||||
@@ -138,10 +137,6 @@
|
||||
"eslint --fix",
|
||||
"git add"
|
||||
],
|
||||
"!(*schema).rb": [
|
||||
"bundle exec rubocop -a",
|
||||
"git add"
|
||||
],
|
||||
"*.scss": [
|
||||
"scss-lint"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user