Clean up: remove eslint-disable no-undef in test_js* scripts
Summary: Changelog: [Internal] - Clean up - Remove `eslint-disable no-undef` by not requiring `shelljs/global` Reviewed By: cortinico Differential Revision: D33197964 fbshipit-source-id: 2e36fc10bf4e3230b8ae914f48d244446da43973
This commit is contained in:
Родитель
8d652fba4c
Коммит
8583d39327
|
@ -18,9 +18,8 @@
|
|||
* --skip-cli-install - to skip react-native-cli global installation (for local debugging)
|
||||
* --retries [num] - how many times to retry possible flaky commands: yarn add and running tests, default 1
|
||||
*/
|
||||
/*eslint-disable no-undef */
|
||||
require('shelljs/global');
|
||||
|
||||
const {cd, cp, echo, exec, exit, mv} = require('shelljs');
|
||||
const spawn = require('child_process').spawn;
|
||||
const argv = require('yargs').argv;
|
||||
const path = require('path');
|
||||
|
@ -288,5 +287,3 @@ try {
|
|||
}
|
||||
}
|
||||
exit(exitCode);
|
||||
|
||||
/*eslint-enable no-undef */
|
||||
|
|
|
@ -16,9 +16,8 @@
|
|||
* --jestBinary [path] - path to jest binary, defaults to local node modules
|
||||
* --yarnBinary [path] - path to yarn binary, defaults to yarn
|
||||
*/
|
||||
/*eslint-disable no-undef */
|
||||
require('shelljs/global');
|
||||
|
||||
const {echo, exec, exit} = require('shelljs');
|
||||
const argv = require('yargs').argv;
|
||||
|
||||
const numberOfMaxWorkers = argv.maxWorkers || 1;
|
||||
|
@ -72,5 +71,3 @@ try {
|
|||
echo('Finished.');
|
||||
}
|
||||
exit(exitCode);
|
||||
|
||||
/*eslint-enable no-undef */
|
||||
|
|
Загрузка…
Ссылка в новой задаче