Skip to content

Commit

Permalink
Add missing .eslintrc for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Sep 7, 2015
1 parent de210c3 commit 8c38912
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 2 deletions.
7 changes: 7 additions & 0 deletions test/lib/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "mysticatea/es5",
"env": {"node": true},
"rules": {
"no-console": 0
}
}
2 changes: 2 additions & 0 deletions test/lib/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var fs = require("fs");
var Writable = require("stream").Writable;
var inherits = require("util").inherits;
Expand Down
7 changes: 7 additions & 0 deletions test/tasks/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "mysticatea/es5",
"env": {"node": true},
"rules": {
"no-console": 0
}
}
2 changes: 2 additions & 0 deletions test/tasks/append.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var appendResult = require("../lib/util").appendResult;

function append() {
Expand Down
2 changes: 2 additions & 0 deletions test/tasks/append2.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

console.log("APPEND2", process.argv[2], "ENTER");

var appendResult = require("../lib/util").appendResult;
Expand Down
2 changes: 2 additions & 0 deletions test/tasks/env-check.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

var appendResult = require("../lib/util").appendResult;

if (process.env.npm_package_config_test === "OK") {
Expand Down
4 changes: 3 additions & 1 deletion test/tasks/error.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/*eslint no-process-exit:0*/
/* eslint no-process-exit:0 */
"use strict";

process.exit(1);
3 changes: 2 additions & 1 deletion test/tasks/stdio.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*eslint no-process-exit:0*/
/* eslint no-process-exit:0 */
"use strict";

var appendResult = require("../lib/util").appendResult;

Expand Down

0 comments on commit 8c38912

Please # to comment.