From 01cc5ddf7c759595b0bea02b570714cbed69339a Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Fri, 10 Apr 2020 01:42:32 +0300 Subject: [PATCH] prettier config --- .prettierrc.json | 3 +++ webpack.config.dev.js | 18 +++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 .prettierrc.json diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..36b3563 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "trailingComma": "none" +} diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 1742d7b..1993db1 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -12,7 +12,7 @@ module.exports = { output: { path: path.resolve(__dirname, "build"), publicPath: "/", - filename: "bundle.js", + filename: "bundle.js" }, devServer: { stats: "minimal", @@ -20,25 +20,25 @@ module.exports = { historyApiFallback: true, disableHostCheck: true, headers: { "Access-Control-Allow-Origin": "*" }, - https: false, + https: false }, plugins: [ new HtmlWebpackPlugin({ template: "src/index.html", - favicon: "src/favicon.ico", - }), + favicon: "src/favicon.ico" + }) ], module: { rules: [ { test: /\.(js|jsx)$/, exclude: /node_modules/, - use: ["babel-loader"], + use: ["babel-loader"] }, { test: /(\.css)$/, - use: ["style-loader", "css-loader"], - }, - ], - }, + use: ["style-loader", "css-loader"] + } + ] + } };