Skip to content

Commit 8cca6f2

Browse files
committed
Test prettier commit hook formatting
1 parent 6abab81 commit 8cca6f2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

typescript/test-format.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// Test file for prettier formatting
2-
const test={a:1,b:2,c:3};
3-
function badFormat(x:number,y:string){return x+y;}
4-
export default test;
2+
const test = { a: 1, b: 2, c: 3, d: 4 };
3+
function badFormat(x: number, y: string) {
4+
return x + y;
5+
}
6+
const another = { badly: "formatted" };
7+
export default test;

0 commit comments

Comments
 (0)