run prettier formatting

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-08-09 11:42:22 +02:00
parent 467b758a7a
commit 923491eece
311 changed files with 1449 additions and 1667 deletions
+3 -5
View File
@@ -55,11 +55,9 @@ export default async (cmd: Command) => {
lockfile.replaceVersions(result.newVersions);
await lockfile.save();
} else {
const [
newVersionsForbidden,
newVersionsAllowed,
] = partition(result.newVersions, ({ name }) =>
forbiddenDuplicatesFilter(name),
const [newVersionsForbidden, newVersionsAllowed] = partition(
result.newVersions,
({ name }) => forbiddenDuplicatesFilter(name),
);
if (newVersionsForbidden.length && !fix) {
success = false;
+2 -2
View File
@@ -30,9 +30,9 @@ export const optimization = (
...(!isParallelDefault(options.parallel)
? {
minimizer: [
(new TerserPlugin({
new TerserPlugin({
parallel: options.parallel,
}) as unknown) as WebpackPluginInstance,
}) as unknown as WebpackPluginInstance,
],
}
: {}),
+3 -3
View File
@@ -137,9 +137,9 @@ export class Lockfile {
}
// Find all versions currently in use
const versions = Array.from(
new Set(entries.map(e => e.version)),
).sort((v1, v2) => semver.rcompare(v1, v2));
const versions = Array.from(new Set(entries.map(e => e.version))).sort(
(v1, v2) => semver.rcompare(v1, v2),
);
// If we're not using at least 2 different versions we're done
if (versions.length < 2) {
+3 -4
View File
@@ -30,9 +30,7 @@ declare module '@svgr/rollup' {
declare module '@rollup/plugin-yaml';
declare module 'react-dev-utils/formatWebpackMessages' {
export default function (
stats: any,
): {
export default function (stats: any): {
errors: string[];
warnings: string[];
};
@@ -46,7 +44,8 @@ declare module 'react-dev-utils/ModuleScopePlugin' {
import webpack = require('webpack');
export default class ModuleScopePlugin
implements webpack.WebpackPluginInstance {
implements webpack.WebpackPluginInstance
{
constructor(
appSrc: string | ReadonlyArray<string>,
allowedFiles?: ReadonlyArray<string>,