add .prettierrc

This commit is contained in:
Michael Fatemi 2021-04-10 11:26:36 -04:00
parent e72b6e5135
commit 1121ae0f66
3 changed files with 13 additions and 5 deletions

7
.prettierrc Normal file
View File

@ -0,0 +1,7 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": true
}

View File

@ -0,0 +1 @@
let users: Record<string, Carpool.User> = {};

View File

@ -1,24 +1,24 @@
namespace Carpool { namespace Carpool {
interface Group { export interface Group {
id: string; id: string;
member_ids: string[]; member_ids: string[];
} }
interface User { export interface User {
id: string; id: string;
first_name: string; first_name: string;
last_name: string; last_name: string;
} }
interface Comment { export interface Comment {
id: string; id: string;
body: string; body: string;
author_id: string; author_id: string;
} }
type Status = "pending" | "cancelled" | "completed" | "interrupted"; export type Status = "pending" | "cancelled" | "completed" | "interrupted";
interface Post { export interface Post {
id: string; id: string;
title: string; title: string;
description: string; description: string;