mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Remove snake case check
This commit is contained in:
parent
f9cfb13fd6
commit
ed25f879ae
2 changed files with 0 additions and 15 deletions
|
@ -1,14 +0,0 @@
|
|||
export default function (grunt) {
|
||||
grunt.registerTask('checkStagedFilenames', function () {
|
||||
grunt.task.requires('collectStagedFiles');
|
||||
|
||||
const invalid = grunt.config
|
||||
.get('stagedFiles')
|
||||
.filter(name => name.match(/[A-Z \-]/))
|
||||
.reduce((all, name) => `${all} ${name}\n`, '');
|
||||
|
||||
if (invalid) {
|
||||
grunt.fail.fatal(`Filenames must use snake_case.\n${invalid}`);
|
||||
}
|
||||
});
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
export default function (grunt) {
|
||||
grunt.registerTask('precommit', [
|
||||
'collectStagedFiles',
|
||||
'checkStagedFilenames',
|
||||
'lintStagedFiles'
|
||||
]);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue