Adds basic formating test

[Closes #7]
This commit is contained in:
Caio Gondim
2014-07-15 18:03:20 +02:00
parent 8b11826604
commit e6721c1ed6
3 changed files with 38 additions and 4 deletions

29
Gruntfile.js Normal file
View File

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