diff --git a/scripts/lint-staged b/scripts/lint-staged index ba070398c..22f8fe1c3 100755 --- a/scripts/lint-staged +++ b/scripts/lint-staged @@ -74,6 +74,8 @@ if (unstaged.length !== 0) { } } -testFiles(files) - +// add formatting changes so that even if the test fails, there won't be +// stylistic diffs between files and index run('git', ['add'].concat(files)) + +testFiles(files)