Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Update format-code.js
Browse files Browse the repository at this point in the history
  • Loading branch information
emahuni authored Aug 28, 2022
1 parent fa28def commit 89429aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/global/utils/format-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const formatFile = async (path) => {
const fileContent = await readFile(path, 'utf-8');
// Format the code with prettier
return writeFile(
path,
prettier.format(fileContent, {
filepath: path,
})
path, fileContent
// prettier.format(fileContent, {
// filepath: path,
// })
);
} catch (error) {
logger.warn(`Failed to format code, check ${path}`);
Expand Down

0 comments on commit 89429aa

Please sign in to comment.