Skip to content

Commit 92d62fe

Browse files
committed
Fixed lint testing issue
1 parent 666d65b commit 92d62fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+117
-141
lines changed

codegens/csharp-restsharp/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/csharp-restsharp/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/csharp-restsharp/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/curl/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/curl/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/curl/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/golang/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/golang/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/golang/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/http/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -52,4 +51,4 @@ module.exports = function (exit) {
5251
};
5352

5453
// ensure we run this script exports if this is a direct stdin.tty run
55-
!module.parent && module.exports(exit);
54+
!module.parent && module.exports(shell.exit);

codegens/http/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ module.exports = function (exit) {
5252
};
5353

5454
// ensure we run this script exports if this is a direct stdin.tty run
55-
!module.parent && module.exports(exit);
55+
!module.parent && module.exports(shell.exit);

codegens/java-okhttp/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/java-okhttp/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/java-okhttp/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/java-unirest/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/java-unirest/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/java-unirest/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/js-fetch/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/js-fetch/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/js-fetch/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/js-jquery/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/js-jquery/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/js-xhr/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/js-xhr/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/js-xhr/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/libcurl/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -57,4 +56,4 @@ module.exports = function (exit) {
5756
};
5857

5958
// ensure we run this script exports if this is a direct stdin.tty run
60-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/libcurl/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/libcurl/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ module.exports = function (exit) {
6060
};
6161

6262
// ensure we run this script exports if this is a direct stdin.tty run
63-
!module.parent && module.exports(exit);
63+
!module.parent && module.exports(shell.exit);

codegens/nodejs-native/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/nodejs-native/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/nodejs-native/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ module.exports = function (exit) {
5454
};
5555

5656
// ensure we run this script exports if this is a direct stdin.tty run
57-
!module.parent && module.exports(exit);
57+
!module.parent && module.exports(shell.exit);

codegens/nodejs-request/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/nodejs-request/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/nodejs-request/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/nodejs-unirest/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/nodejs-unirest/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/nodejs-unirest/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/objective-c/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

codegens/objective-c/npm/test-newman.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/objective-c/npm/test-unit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ module.exports = function (exit) {
5656
};
5757

5858
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
59+
!module.parent && module.exports(shell.exit);

codegens/ocaml-cohttp/npm/test-lint.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
2-
require('shelljs/global');
3-
4-
var chalk = require('chalk'),
2+
var shell = require('shelljs'),
3+
chalk = require('chalk'),
54
async = require('async'),
65
ESLintCLIEngine = require('eslint').CLIEngine,
76

@@ -56,4 +55,4 @@ module.exports = function (exit) {
5655
};
5756

5857
// ensure we run this script exports if this is a direct stdin.tty run
59-
!module.parent && module.exports(exit);
58+
!module.parent && module.exports(shell.exit);

0 commit comments

Comments
 (0)