Skip to content

Commit

Permalink
feat: add prettier files and configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
TAnas0 committed Sep 11, 2024
1 parent f86d158 commit f936c28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": false,
"trailingComma": "es5",
"printWidth": 100,
"tabWidth": 2
}
5 changes: 0 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit f936c28

Please sign in to comment.