Skip to content

Commit

Permalink
tweak sample linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Spongman committed Dec 15, 2017
1 parent 55ac786 commit 0f2d6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,14 @@ module.exports = function(grunt) {
.reduce((a, b) => a.concat(b), [])
.filter(a => a);

/* not yet
gruntConfig['eslint-samples'].fix.src = Object.keys(
gruntConfig['eslint-samples']
)
.map(s => gruntConfig['eslint-samples'][s].src)
.reduce((a, b) => a.concat(b), [])
.filter(a => a);
*/

grunt.initConfig(gruntConfig);

Expand Down
4 changes: 2 additions & 2 deletions utils/sample-linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ module.exports = {
};

function eslintFiles(opts, filesSrc) {
opts = {
opts = opts || {
outputFile: false,
quiet: false,
maxWarnings: -1,
Expand Down Expand Up @@ -233,7 +233,7 @@ function eslintFiles(opts, filesSrc) {
module.exports.eslintFiles = eslintFiles;

if (!module.parent) {
var result = eslintFiles({}, process.argv.slice(2));
var result = eslintFiles(null, process.argv.slice(2));
console.log(result.output);
process.exit(result.report.errorCount === 0 ? 0 : 1);
}

0 comments on commit 0f2d6f8

Please sign in to comment.