mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
'grunt lint' now works on Windows
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
|
||||
var grunt = require('grunt');
|
||||
|
||||
var extension = process.platform === 'win32' ? '.cmd': '';
|
||||
|
||||
module.exports = function() {
|
||||
var done = this.async();
|
||||
grunt.util.spawn({
|
||||
cmd: 'node_modules/.bin/eslint',
|
||||
cmd: 'node_modules/.bin/eslint' + extension,
|
||||
args: ['.'],
|
||||
opts: {stdio: 'inherit'}, // allows colors to passthrough
|
||||
}, function(err, result, code) {
|
||||
|
||||
Reference in New Issue
Block a user