Files
bullet-train.zsh/Gruntfile.js
2014-12-01 17:51:53 +01:00

40 lines
719 B
JavaScript

module.exports = function(grunt) {
"use strict";
grunt.loadNpmTasks('grunt-lintspaces');
var config = {};
config.lintspaces = {
rest: {
src: [
'Gruntfile.js',
'bullet-train.zsh-theme',
'README.md'
],
options: {
newline: true,
newlineMaximum: 2,
trailingspaces: true,
indentation: 'spaces',
spaces: 2
}
},
makefile: {
src: [
'makefile'
],
options: {
newline: true,
newlineMaximum: 2,
trailingspaces: true,
indentation: 'tabs'
}
},
};
grunt.initConfig(config);
grunt.registerTask("test", "lintspaces:makefile", "lintspaces:rest");
};