Skip to content

Commit 744030b

Browse files
committed
Prettier formatting
1 parent 4fa046d commit 744030b

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"prettier.singleQuote": true
3+
}

src/haul.config.extend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import originalConfig from '../../../haul.config.js';
33

44
export default {
55
webpack: env => {
6-
const config = originalConfig.webpack(env);
6+
const config = originalConfig.webpack(env);
77
config.plugins.push(new Visualizer());
88
return config;
99
}

src/haul.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import Visualizer from 'webpack-visualizer-plugin';
2-
import { createWebpackConfig } from "haul";
2+
import { createWebpackConfig } from 'haul';
33
import { getEntryPoint } from './get-entry-point';
44

55
export default {
66
webpack: env => {
77
const config = createWebpackConfig({
8-
entry: getEntryPoint(),
8+
entry: getEntryPoint()
99
})(env);
1010

1111
config.module.rules[1].exclude = /node_modules(?!.*[\/\\](react|@react-navigation|@react-native-community|@expo|pretty-format|haul|metro))/;

src/webpack.haul.extend.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ const Visualizer = require('webpack-visualizer-plugin');
22
const originalConfig = require('../../../webpack.haul.js');
33

44
module.exports = function(context, config) {
5-
config = originalConfig(context, config);
6-
return Object.assign(
7-
{},
8-
config,
9-
{
10-
plugins: (config.plugins || []).concat([new Visualizer()])
11-
}
12-
);
5+
config = originalConfig(context, config);
6+
return Object.assign({}, config, {
7+
plugins: (config.plugins || []).concat([new Visualizer()])
8+
});
139
};

0 commit comments

Comments
 (0)