Skip to content

Commit ed62b5a

Browse files
committed
Run prettier fix
1 parent afa3e06 commit ed62b5a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

libs/object-utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
export const cleanObject = <T extends Record<string, any>>(obj: T): Partial<T> => {
1+
export const cleanObject = <T extends Record<string, any>>(
2+
obj: T
3+
): Partial<T> => {
24
return Object.fromEntries(
35
Object.entries(obj).filter(
46
([_, v]) => v !== null && v !== undefined && v !== ''

libs/string-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const randomLetter = () => {
1010
// return "hex";
1111
};
1212

13-
const zeroPad = (num: number, places: number) => String(num).padStart(places, '0');
13+
const zeroPad = (num: number, places: number) =>
14+
String(num).padStart(places, '0');
1415

1516
const orDefault = <T>(value: T, defaultValue: string = '-'): T | string =>
1617
value == null || value === '' || (Array.isArray(value) && !value.length)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"build": "next build",
88
"start": "next start -p 3232",
99
"lint": "next lint",
10-
"format": "prettier --write .",
11-
"format:check": "prettier --check .",
10+
"format": "prettier --check .",
11+
"format:fix": "prettier --write .",
1212
"analyze": "cross-env ANALYZE=true next build",
1313
"analyze:server": "cross-env BUNDLE_ANALYZE=server next build",
1414
"analyze:browser": "cross-env BUNDLE_ANALYZE=browser next build",

0 commit comments

Comments
 (0)