-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kent C. Dodds
committed
Apr 6, 2018
1 parent
7a57626
commit 5d39f66
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const config = require('kcd-scripts/dist/config/lintstagedrc') | ||
|
||
// we need to exclude the test and lint scripts on commit because we run it in the validate script | ||
const jsLinter = Object.keys(config.linters).find(key => key.includes('js')) | ||
config.linters[jsLinter] = config.linters[jsLinter].filter( | ||
script => !script.includes('test') && !script.includes('lint'), | ||
) | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters