Skip to content

Commit aaeaecd

Browse files
talentlessguyalcuadrado
authored andcommitted
fix fmt
1 parent d363318 commit aaeaecd

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

packages/hardhat-core/src/builtin-tasks/compile.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,9 @@ subtask(TASK_COMPILE_SOLIDITY_LOG_COMPILATION_ERRORS)
800800
getFormattedInternalCompilerErrorMessage(error) ??
801801
error.formattedMessage;
802802

803-
console.error(errorMessage.replace(/^\w+:/, (t) => chalk.bold(chalk.red(t))));
803+
console.error(
804+
errorMessage.replace(/^\w+:/, (t) => chalk.bold(chalk.red(t)))
805+
);
804806
} else {
805807
console.warn(
806808
(error.formattedMessage as string).replace(/^\w+:/, (t) =>

packages/hardhat-core/src/internal/cli/cli.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,16 @@ async function main() {
170170

171171
// Warning for Hardhat V3 deprecation
172172
console.warn(
173-
chalk.yellow.bold("\n\nDEPRECATION WARNING\n\n"),
173+
chalk.bold(chalk.yellow("\n\nDEPRECATION WARNING\n\n")),
174174
chalk.yellow(
175-
`Initializing a project with ${chalk.white.italic(
176-
"npx hardhat"
175+
`Initializing a project with ${chalk.italic(
176+
chalk.white("npx hardhat")
177177
)} is deprecated and will be removed in the future.\n`
178178
),
179179
chalk.yellow(
180-
`Please use ${chalk.white.italic("npx hardhat init")} instead.\n\n`
180+
`Please use ${chalk.italic(
181+
chalk.white("npx hardhat init")
182+
)} instead.\n\n`
181183
)
182184
);
183185

@@ -387,13 +389,13 @@ async function main() {
387389
if (HardhatError.isHardhatError(error)) {
388390
isHardhatError = true;
389391
console.error(
390-
chalk.red.bold("Error"),
391-
error.message.replace(/^\w+:/, (t) => chalk.red.bold(t))
392+
chalk.bold(chalk.red("Error")),
393+
error.message.replace(/^\w+:/, (t) => chalk.bold(chalk.red(t)))
392394
);
393395
} else if (HardhatPluginError.isHardhatPluginError(error)) {
394396
isHardhatError = true;
395397
console.error(
396-
chalk.red.bold(`Error in plugin ${error.pluginName}:`),
398+
chalk.bold(chalk.red(`Error in plugin ${error.pluginName}:`)),
397399
error.message
398400
);
399401
} else if (error instanceof Error) {

packages/hardhat-core/src/internal/util/glob.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function glob(
1414
pattern: string,
1515
options: GlobOptions = {}
1616
): Promise<string[]> {
17-
const files = await (await import('tinyglobby')).glob([pattern], options);
17+
const files = await (await import("tinyglobby")).glob([pattern], options);
1818
return files.map(path.normalize);
1919
}
2020

@@ -23,6 +23,9 @@ export async function glob(
2323
* @see glob
2424
*/
2525
export function globSync(pattern: string, options: GlobOptions = {}): string[] {
26-
const files = (require('tinyglobby') as typeof import('tinyglobby')).globSync([pattern], options);
26+
const files = (require("tinyglobby") as typeof import("tinyglobby")).globSync(
27+
[pattern],
28+
options
29+
);
2730
return files.map(path.normalize);
2831
}

0 commit comments

Comments
 (0)