Skip to content

Commit 2e7285d

Browse files
committed
remove eslint, format fixes
1 parent bcf11e5 commit 2e7285d

17 files changed

Lines changed: 323 additions & 1154 deletions

bin/react-unity-scripts.js

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,44 @@
11
#!/usr/bin/env node
2-
/**
3-
* Copyright (c) 2015-present, Facebook, Inc.
4-
*
5-
* This source code is licensed under the MIT license found in the
6-
* LICENSE file in the root directory of this source tree.
7-
*/
8-
9-
'use strict';
102

113
// Makes the script crash on unhandled rejections instead of silently
124
// ignoring them. In the future, promise rejections that are not handled will
135
// terminate the Node.js process with a non-zero exit code.
14-
process.on('unhandledRejection', err => {
6+
process.on('unhandledRejection', (err) => {
157
throw err;
168
});
179

1810
const spawn = require('react-dev-utils/crossSpawn');
1911
const args = process.argv.slice(2);
2012

21-
const scriptIndex = args.findIndex(
22-
x =>
23-
x === 'build' ||
24-
x === 'eject' ||
25-
x === 'start' ||
26-
x === 'test' ||
27-
x === 'clean' ||
28-
x === 'lint'
29-
);
13+
const scriptIndex = args.findIndex((x) => x === 'build' || x === 'eject' || x === 'start' || x === 'test' || x === 'clean');
3014
const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
3115
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
3216

33-
if (['build', 'eject', 'start', 'test', 'clean', 'lint'].includes(script)) {
17+
if (['build', 'eject', 'start', 'test', 'clean'].includes(script)) {
3418
const result = spawn.sync(
3519
process.execPath,
36-
nodeArgs
37-
.concat(require.resolve('../scripts/' + script))
38-
.concat(args.slice(scriptIndex + 1)),
39-
{ stdio: 'inherit' }
20+
nodeArgs.concat(require.resolve(`../scripts/${script}`)).concat(args.slice(scriptIndex + 1)),
21+
{ stdio: 'inherit' },
4022
);
4123
if (result.signal) {
4224
if (result.signal === 'SIGKILL') {
4325
console.log(
4426
'The build failed because the process exited too early. ' +
45-
'This probably means the system ran out of memory or someone called ' +
46-
'`kill -9` on the process.'
27+
'This probably means the system ran out of memory or someone called ' +
28+
'`kill -9` on the process.',
4729
);
4830
} else if (result.signal === 'SIGTERM') {
4931
console.log(
5032
'The build failed because the process exited too early. ' +
51-
'Someone might have called `kill` or `killall`, or the system could ' +
52-
'be shutting down.'
33+
'Someone might have called `kill` or `killall`, or the system could ' +
34+
'be shutting down.',
5335
);
5436
}
5537
process.exit(1);
5638
}
5739
process.exit(result.status);
5840
} else {
59-
console.log('Unknown script "' + script + '".');
41+
console.log(`Unknown script "${script}".`);
6042
console.log('Perhaps you need to update react-unity-scripts?');
61-
console.log(
62-
'See: https://github.com/KurtGokhan/react-unity-scripts.git'
63-
);
43+
console.log('See: https://github.com/KurtGokhan/react-unity-scripts.git');
6444
}

config/eslint/base.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

config/eslint/config.js

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)