Skip to content

Commit 0765be3

Browse files
authored
Merge pull request #1150 from mohawk2/fix-watch-lint
Make `npm run watch` linting work right
2 parents c70f5cc + de40c22 commit 0765be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function lintFiles(filepaths) {
145145
return filepaths.reduce((prev, filepath) => prev.then(prevSuccess => {
146146
if (isJS(filepath)) {
147147
process.stdout.write(' ' + filepath + ' ...');
148-
return exec('eslint', [srcPath(filepath)])
148+
return exec('eslint', ['--rulesdir', './resources/lint', srcPath(filepath)])
149149
.catch(() => false)
150150
.then(success => {
151151
console.log(CLEARLINE + ' ' + (success ? CHECK : X)

0 commit comments

Comments
 (0)