Disallow trailing whitespace

// FREEBIE
pull/749/head
lilia 9 years ago
parent 18e9ded296
commit b09cb228f7

@ -1,3 +1,4 @@
{ {
"disallowMixedSpacesAndTabs": true "disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true
} }

@ -134,7 +134,15 @@ module.exports = function(grunt) {
}, },
jscs: { jscs: {
all: { all: {
src: ['js/**/*.js', '!js/libtextsecure.js', '!js/libaxolotl-worker.js', '!js/components.js', 'test/**/*.js'] src: [
'Gruntfile',
'js/**/*.js',
'!js/libtextsecure.js',
'!js/libaxolotl-worker.js',
'!js/components.js',
'test/**/*.js',
'!test/blanket_mocha.js',
]
} }
}, },
watch: { watch: {
@ -142,6 +150,10 @@ module.exports = function(grunt) {
files: ['<%= jshint.files %>', './js/**/*.js'], files: ['<%= jshint.files %>', './js/**/*.js'],
tasks: ['jshint'] tasks: ['jshint']
}, },
style: {
files: ['<%= jscs.all.src %>', './js/**/*.js'],
tasks: ['jscs']
},
sass: { sass: {
files: ['./stylesheets/*.scss'], files: ['./stylesheets/*.scss'],
tasks: ['sass'] tasks: ['sass']

Loading…
Cancel
Save