Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
- Add `eslint-config-mysticatea` for linting rules.
- Fixed for linting.
  • Loading branch information
mysticatea committed Jun 17, 2015
1 parent a59ef7d commit cf60bdf
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 44 deletions.
28 changes: 3 additions & 25 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
{
"env": {
"node": true,
"es6": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"octalLiterals": true,
"regexUFlag": true,
"regexYFlag": true,
"superInFunctions": true,
"templateStrings": true,
"unicodeCodePointEscapes": true,
"globalReturn": true
"extends": "mysticatea/nodejs",
"rules": {
"spaced-comment": [2, "always", {"exceptions": ["*", "-"]}]
}
}
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,21 @@
"test-task:stdio": "node test/tasks/stdio.js"
},
"dependencies": {
"es6-promise": "^2.1.1",
"minimatch": "^2.0.7"
"es6-promise": "^2.3.0",
"minimatch": "^2.0.8"
},
"devDependencies": {
"babel": "^5.4.2",
"babel-core": "^5.4.2",
"babel-plugin-espower": "^0.3.0",
"babel": "^5.5.8",
"babel-core": "^5.5.8",
"babel-plugin-espower": "^1.0.0",
"coveralls": "^2.11.2",
"eslint": "^0.21.0",
"istanbul": "^0.3.14",
"eslint": "^0.23.0",
"eslint-config-mysticatea": "^0.3.0",
"istanbul": "^0.3.15",
"mocha": "^2.2.5",
"npm-run-all": "^1.2.4",
"npm-run-all": "^1.2.5",
"power-assert": "^0.11.0",
"rimraf": "^2.3.3"
"rimraf": "^2.4.0"
},
"repository": {
"type": "git",
Expand Down
11 changes: 7 additions & 4 deletions src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export default function main(
case "--version":
printVersion(stdout);
return SUCCESS;

default:
break;
}

let queue;
Expand All @@ -89,18 +92,18 @@ export default function main(
}

const options = {
stdout: stdout,
stderr: stderr,
stdout,
stderr,
parallel: group.parallel
};
return runAll(group.tasks, options).then(next);
})();
}

/*eslint no-process-exit:0*/
/* eslint no-process-exit:0 */
if (require.main === module) {
main(process.argv.slice(2)).catch(err => {
console.log("ERROR:", err.message);
console.error("ERROR:", err.message); // eslint-disable-line no-console
process.exit(1);
});
}
8 changes: 3 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function readTaskList() {
}
}
catch (err) {
console.error("ERROR:", err.message);
console.error("ERROR:", err.message); // eslint-disable-line no-console
}

return null;
Expand Down Expand Up @@ -52,7 +52,7 @@ function filterTasks(taskList, patterns) {

// Take tasks while keep the order of patterns.
const retv = [];
let matched = Object.create(null);
const matched = Object.create(null);
filters.forEach(filter => {
candidates.forEach(task => {
if (filter(task)) {
Expand All @@ -78,9 +78,7 @@ function defineExec() {
const OPTIONS = {windowsVerbatimArguments: true};
return command => spawn(FILE, ["/s", "/c", `"${command}"`], OPTIONS);
}
else {
return command => spawn("/bin/sh", ["-c", command]);
}
return command => spawn("/bin/sh", ["-c", command]);
}

const exec = defineExec();
Expand Down
6 changes: 5 additions & 1 deletion test/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"env": {"mocha": true}
"env": {"mocha": true},
"rules": {
"max-nested-callbacks": 0,
"spaced-comment": 0
}
}

0 comments on commit cf60bdf

Please sign in to comment.