Skip to content

Commit de40c22

Browse files
committed
Make npm run watch linting work right
1 parent ada56fe commit de40c22

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)