Skip to content

Commit

Permalink
Also lint bin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Dec 5, 2017
1 parent d74be7a commit d0ba36b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/src/run/index.js
Expand Up @@ -39,7 +39,7 @@ export default function runRollup ( command ) {
process.env[ key ] = true;
}
});
})
});
}

let configFile = command.config === true ? 'rollup.config.js' : command.config;
Expand Down
4 changes: 2 additions & 2 deletions bin/src/run/loadConfigFile.js
@@ -1,4 +1,4 @@
import buble from 'rollup-plugin-buble'
import buble from 'rollup-plugin-buble';
import path from 'path';
import chalk from 'chalk';
import * as rollup from 'rollup';
Expand Down Expand Up @@ -55,4 +55,4 @@ export default function loadConfigFile (configFile, silent) {
return Array.isArray( configs ) ? configs : [configs];
});
});
}
}
8 changes: 4 additions & 4 deletions bin/src/run/watch.js
Expand Up @@ -44,8 +44,8 @@ export default function watch(configFile, configs, command, silent) {
if (merged.deprecations.length) {
if (!result.watch) result.watch = {};
result.watch._deprecations = merged.deprecations;
}
}

if (merged.inputOptions.watch && merged.inputOptions.watch.clearScreen === false) {
screenWriter = stderr;
}
Expand Down Expand Up @@ -96,7 +96,7 @@ export default function watch(configFile, configs, command, silent) {
// only listen to stdin if it is a pipe
if (!process.stdin.isTTY) {
process.stdin.on('end', close); // in case we ever support stdin!
process.stdin.resume()
process.stdin.resume();
}

function close() {
Expand Down Expand Up @@ -151,4 +151,4 @@ export default function watch(configFile, configs, command, silent) {
if (event === 'change') restart();
});
}
}
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -22,7 +22,7 @@
"watch": "rollup -cw",
"prepublishOnly": "npm run lint && npm run test:only && npm run test:leak",
"prepare": "npm run build",
"lint": "eslint src browser test/test.js test/*/index.js test/utils test/**/_config.js"
"lint": "eslint src browser bin test/test.js test/*/index.js test/utils test/**/_config.js"
},
"repository": "rollup/rollup",
"keywords": [
Expand Down

0 comments on commit d0ba36b

Please sign in to comment.