Skip to content

Commit 29bd056

Browse files
committed
Run prettier
1 parent 3ca6baa commit 29bd056

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

fixtures/flight/config/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function getClientEnvironment(publicUrl) {
9898
}, {}),
9999
};
100100

101-
return { raw, stringified };
101+
return {raw, stringified};
102102
}
103103

104104
module.exports = getClientEnvironment;

fixtures/flight/config/getHttpsConfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const paths = require('./paths');
88

99
// Ensure the certificate and key provided are valid and if not
1010
// throw an easy to debug error
11-
function validateKeyAndCerts({ cert, key, keyFile, crtFile }) {
11+
function validateKeyAndCerts({cert, key, keyFile, crtFile}) {
1212
let encrypted;
1313
try {
1414
// publicEncrypt will throw an error with an invalid cert
@@ -46,7 +46,7 @@ function readEnvFile(file, type) {
4646
// Get the https config
4747
// Return cert files if provided in env, otherwise just true or false
4848
function getHttpsConfig() {
49-
const { SSL_CRT_FILE, SSL_KEY_FILE, HTTPS } = process.env;
49+
const {SSL_CRT_FILE, SSL_KEY_FILE, HTTPS} = process.env;
5050
const isHttps = HTTPS === 'true';
5151

5252
if (isHttps && SSL_CRT_FILE && SSL_KEY_FILE) {
@@ -57,7 +57,7 @@ function getHttpsConfig() {
5757
key: readEnvFile(keyFile, 'SSL_KEY_FILE'),
5858
};
5959

60-
validateKeyAndCerts({ ...config, keyFile, crtFile });
60+
validateKeyAndCerts({...config, keyFile, crtFile});
6161
return config;
6262
}
6363
return isHttps;

fixtures/flight/config/webpack/persistentCache/createEnvironmentHash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
const { createHash } = require('crypto');
2+
const {createHash} = require('crypto');
33

44
module.exports = env => {
55
const hash = createHash('md5');

fixtures/flight/scripts/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const config = configFactory('production');
5151

5252
// We require that you explicitly set browsers and do not fall back to
5353
// browserslist defaults.
54-
const { checkBrowsers } = require('react-dev-utils/browsersHelper');
54+
const {checkBrowsers} = require('react-dev-utils/browsersHelper');
5555
checkBrowsers(paths.appPath, isInteractive)
5656
.then(() => {
5757
// First, read the current file sizes in build directory.
@@ -68,7 +68,7 @@ checkBrowsers(paths.appPath, isInteractive)
6868
return build(previousFileSizes);
6969
})
7070
.then(
71-
({ stats, previousFileSizes, warnings }) => {
71+
({stats, previousFileSizes, warnings}) => {
7272
if (warnings.length) {
7373
console.log(chalk.yellow('Compiled with warnings.\n'));
7474
console.log(warnings.join('\n\n'));
@@ -159,7 +159,7 @@ function build(previousFileSizes) {
159159
});
160160
} else {
161161
messages = formatWebpackMessages(
162-
stats.toJson({ all: false, warnings: true, errors: true })
162+
stats.toJson({all: false, warnings: true, errors: true})
163163
);
164164
}
165165
if (messages.errors.length) {

fixtures/flight/scripts/start.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const paths = require('../config/paths');
3232
const configFactory = require('../config/webpack.config');
3333
const createDevServerConfig = require('../config/webpackDevServer.config');
3434
const getClientEnvironment = require('../config/env');
35-
const react = require(require.resolve('react', { paths: [paths.appPath] }));
35+
const react = require(require.resolve('react', {paths: [paths.appPath]}));
3636

3737
const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
3838
const useYarn = fs.existsSync(paths.yarnLockFile);
@@ -66,7 +66,7 @@ if (process.env.HOST) {
6666

6767
// We require that you explicitly set browsers and do not fall back to
6868
// browserslist defaults.
69-
const { checkBrowsers } = require('react-dev-utils/browsersHelper');
69+
const {checkBrowsers} = require('react-dev-utils/browsersHelper');
7070
checkBrowsers(paths.appPath, isInteractive)
7171
.then(() => {
7272
// We attempt to use the default port but if it is busy, we offer the user to
@@ -131,16 +131,16 @@ checkBrowsers(paths.appPath, isInteractive)
131131
openBrowser(urls.localUrlForBrowser);
132132
});
133133

134-
['SIGINT', 'SIGTERM'].forEach(function (sig) {
135-
process.on(sig, function () {
134+
['SIGINT', 'SIGTERM'].forEach(function(sig) {
135+
process.on(sig, function() {
136136
devServer.close();
137137
process.exit();
138138
});
139139
});
140140

141141
if (process.env.CI !== 'true') {
142142
// Gracefully exit when stdin ends
143-
process.stdin.on('end', function () {
143+
process.stdin.on('end', function() {
144144
devServer.close();
145145
process.exit();
146146
});

fixtures/flight/scripts/test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let argv = process.argv.slice(2);
2121

2222
function isInGitRepository() {
2323
try {
24-
execSync('git rev-parse --is-inside-work-tree', { stdio: 'ignore' });
24+
execSync('git rev-parse --is-inside-work-tree', {stdio: 'ignore'});
2525
return true;
2626
} catch (e) {
2727
return false;
@@ -30,7 +30,7 @@ function isInGitRepository() {
3030

3131
function isInMercurialRepository() {
3232
try {
33-
execSync('hg --cwd . root', { stdio: 'ignore' });
33+
execSync('hg --cwd . root', {stdio: 'ignore'});
3434
return true;
3535
} catch (e) {
3636
return false;
@@ -48,5 +48,4 @@ if (
4848
argv.push(hasSourceControl ? '--watch' : '--watchAll');
4949
}
5050

51-
5251
jest.run(argv);

0 commit comments

Comments
 (0)