Skip to content

Commit 799937b

Browse files
committed
undo prettier in unchanged file
1 parent ced2496 commit 799937b

File tree

1 file changed

+8
-6
lines changed
  • packages/react-scripts/config

1 file changed

+8
-6
lines changed

packages/react-scripts/config/env.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88
// @remove-on-eject-end
9-
'use strict'
9+
'use strict';
1010

1111
const fs = require('fs');
1212
const path = require('path');
@@ -17,7 +17,9 @@ delete require.cache[require.resolve('./paths')];
1717

1818
const NODE_ENV = process.env.NODE_ENV;
1919
if (!NODE_ENV) {
20-
throw new Error('The NODE_ENV environment variable is required but was not specified.');
20+
throw new Error(
21+
'The NODE_ENV environment variable is required but was not specified.'
22+
);
2123
}
2224

2325
// https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
@@ -42,7 +44,7 @@ dotenvFiles.forEach(dotenvFile => {
4244
require('dotenv').config({
4345
path: dotenvFile,
4446
})
45-
)
47+
);
4648
}
4749
});
4850

@@ -71,8 +73,8 @@ function getClientEnvironment(publicUrl) {
7173
.filter(key => REACT_APP.test(key))
7274
.reduce(
7375
(env, key) => {
74-
env[key] = process.env[key]
75-
return env
76+
env[key] = process.env[key];
77+
return env;
7678
},
7779
{
7880
// Useful for determining whether we’re running in production mode.
@@ -99,7 +101,7 @@ function getClientEnvironment(publicUrl) {
99101
// Stringify all values so we can feed into webpack DefinePlugin
100102
const stringified = {
101103
'process.env': Object.keys(raw).reduce((env, key) => {
102-
env[key] = JSON.stringify(raw[key])
104+
env[key] = JSON.stringify(raw[key]);
103105
return env;
104106
}, {}),
105107
};

0 commit comments

Comments
 (0)