Skip to content

Commit 6a14f47

Browse files
committed
improve linting
far less crude this way
1 parent 4b05984 commit 6a14f47

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* jshint node: true */
12
var globby = require("globby");
23
var resolve = require("resolve");
34
var argv = require("yargs")
@@ -115,7 +116,7 @@ var postcss = require('postcss');
115116
var processor = postcss(plugins);
116117

117118
// hook for dynamically updating the list of watched files
118-
global.watchCSS = function() {}; // jshint ignore:line
119+
global.watchCSS = function() {};
119120
if (argv.watch) {
120121
var watchedFiles = inputFiles;
121122
var watcher = require('chokidar').watch(watchedFiles);
@@ -125,7 +126,7 @@ if (argv.watch) {
125126
});
126127
});
127128

128-
global.watchCSS = function(files) { // jshint ignore:line
129+
global.watchCSS = function(files) {
129130
watcher.unwatch(watchedFiles);
130131
watcher.add(files);
131132
watchedFiles = files;

0 commit comments

Comments
 (0)