We limit the amount of moving parts when it comes to parsing our staged files in git by reusing the files_to_commit utility rather than the now-defunct collectStagedFiles task.
8 lines
156 B
JavaScript
8 lines
156 B
JavaScript
export default function (grunt) {
|
|
grunt.registerTask('precommit', [
|
|
'collectFilesToCommit',
|
|
'checkAddedFilenames',
|
|
'lintStagedFiles'
|
|
]);
|
|
};
|