Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and faergeek committed Jul 6, 2023
1 parent f8f4f96 commit ace9a4d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 26 deletions.
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

40 changes: 20 additions & 20 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AssetsPlugin {
auxiliary: [],
css: [],
js: [],
}
},
);
}

Expand All @@ -62,15 +62,15 @@ class AssetsPlugin {
const index = Object.fromEntries(
assets
.filter(
item => item.type === 'asset' && !item.info.hotModuleReplacement
item => item.type === 'asset' && !item.info.hotModuleReplacement,
)
.map(asset => [
asset.name,
{
path: publicPath + asset.name,
immutable: Boolean(asset.info.immutable),
},
])
]),
);

const dynamicAssets = new Set(Object.values(index));
Expand All @@ -90,9 +90,9 @@ class AssetsPlugin {
entriesAssets.add(asset);

return true;
})
}),
),
])
]),
);

const unnamedChunkAssets = new Set(dynamicAssets);
Expand All @@ -116,10 +116,10 @@ class AssetsPlugin {
chunkName,
this.#groupAssetsByType(
chunkAssets.filter(
asset => asset != null && !entriesAssets.has(asset)
)
asset => asset != null && !entriesAssets.has(asset),
),
),
])
]),
);

async[''] = this.#groupAssetsByType(Array.from(unnamedChunkAssets));
Expand All @@ -128,7 +128,7 @@ class AssetsPlugin {

await writeFile(
this.filename,
JSON.stringify({ initial, async }, null, 2)
JSON.stringify({ initial, async }, null, 2),
);
});
}
Expand Down Expand Up @@ -178,7 +178,7 @@ class NodeHmrPlugin {
entryValue.import.unshift(
`@faergeek/make-webpack-config/hmr/node${
SIGNALS_ARE_SUPPORTED ? '' : '?poll=1000'
}`
}`,
);
});
});
Expand Down Expand Up @@ -325,7 +325,7 @@ function mapEntryArrayOrString(entry, fn) {

function mapObject(obj, fn) {
return Object.fromEntries(
Object.entries(obj).map(([key, value]) => [key, fn(value)])
Object.entries(obj).map(([key, value]) => [key, fn(value)]),
);
}

Expand All @@ -352,7 +352,7 @@ export default async function makeWebpackConfig({
}) {
const pkg = require(path.relative(
__dirname,
path.resolve(process.cwd(), 'package.json')
path.resolve(process.cwd(), 'package.json'),
));

const env = dev ? 'development' : 'production';
Expand All @@ -379,12 +379,12 @@ export default async function makeWebpackConfig({
},
devtoolModuleFilenameTemplate: path.relative(
paths.build,
'[resource-path]'
'[resource-path]',
),
externals: new RegExp(
`^(${Object.keys(pkg.dependencies)
.map(escapeStringRegexp)
.join('|')})(/|$)`
.join('|')})(/|$)`,
),
externalsType: 'commonjs',
plugins: [
Expand All @@ -396,7 +396,7 @@ export default async function makeWebpackConfig({
]
.concat(process.stdout.isTTY ? [new webpack.ProgressPlugin()] : [])
.concat(
watch ? [new NodeHmrPlugin(path.join(paths.build, 'main.cjs'))] : []
watch ? [new NodeHmrPlugin(path.join(paths.build, 'main.cjs'))] : [],
),
}),
makeConfig({
Expand All @@ -409,14 +409,14 @@ export default async function makeWebpackConfig({
(watch && dev
? ['@faergeek/tiny-browser-hmr-webpack-plugin/client']
: []
).concat(entryArray)
).concat(entryArray),
),
srcPath: paths.src,
outputPath: paths.public,
babelLoaderOptions: {
envName: env,
plugins: [watch && dev && reactRefresh && 'react-refresh/babel'].filter(
Boolean
Boolean,
),
},
immutableAssets: true,
Expand Down Expand Up @@ -444,12 +444,12 @@ export default async function makeWebpackConfig({
openAnalyzer: false,
reportFilename: path.join(
paths.build,
'webpack-bundle-analyzer.html'
'webpack-bundle-analyzer.html',
),
statsFilename: path.join(paths.build, 'stats.json'),
}),
]
: []
: [],
)
.concat(
watch && dev
Expand All @@ -461,7 +461,7 @@ export default async function makeWebpackConfig({
overlay: false,
}),
].filter(Boolean)
: []
: [],
),
optimization: {
minimizer: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@commitlint/config-conventional": "^17.0.0",
"@faergeek/eslint-config": "^5.0.0",
"eslint": "^8.0.0",
"prettier": "^2.2.1",
"prettier": "^3.0.0",
"semantic-release": "^21.0.0"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4881,10 +4881,10 @@ prelude-ls@^1.2.1:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==

prettier@^2.2.1:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
prettier@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae"
integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==

proc-log@^3.0.0:
version "3.0.0"
Expand Down

0 comments on commit ace9a4d

Please sign in to comment.