From f936c28d8d0de73da2ea2e069fa43d97a8b233eb Mon Sep 17 00:00:00 2001 From: TAnas0 Date: Wed, 11 Sep 2024 16:20:46 +0100 Subject: [PATCH] feat: add prettier files and configurations --- .prettierignore | 1 + .prettierrc | 7 +++++++ webpack.config.js | 5 ----- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .prettierignore create mode 100644 .prettierrc diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..94a2dd1 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.json \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..d6eaf64 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "semi": false, + "singleQuote": false, + "trailingComma": "es5", + "printWidth": 100, + "tabWidth": 2 +} diff --git a/webpack.config.js b/webpack.config.js index ae2dd3e..4eb9cba 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,7 +5,6 @@ const path = require("path") const webpack = require("webpack") const nodeExternals = require("webpack-node-externals") -const ESLintPlugin = require("eslint-webpack-plugin") module.exports = { // https://github.com/liady/webpack-node-externals#quick-usage @@ -49,10 +48,6 @@ module.exports = { new webpack.HotModuleReplacementPlugin(), // https://github.com/lorenwest/node-config/wiki/Webpack-Usage new webpack.DefinePlugin({ CONFIG: JSON.stringify(require("config")) }), - new ESLintPlugin({ - extensions: ["js", "ts", "tsx"], - formatter: require("eslint-friendly-formatter"), - }), ], optimization: {