Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
fix(precommit): Dont fail tests if no test found
Browse files Browse the repository at this point in the history
  • Loading branch information
adambrgmn committed Dec 20, 2017
1 parent 33ae35d commit ecc4b25
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/config/lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ module.exports = {
],
'**/*.+(js|jsx|json|less|scss|sass|css|ts|md)': [
isOptedOut('autoformat', null, `${fransScripts} format`),
`${fransScripts} test --passWithNoTests --findRelatedTests`,
`${fransScripts} lint`,
isOptedOut('autoformat', null, 'git add'),
].filter(Boolean),
'**/*.+(js|jsx)': [
`${fransScripts} test --findRelatedTests`,
`${fransScripts} lint`,
],
},
};

0 comments on commit ecc4b25

Please sign in to comment.