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 {
interface Group {
export interface Group {
id: string;
member_ids: string[];
}
interface User {
export interface User {
id: string;
first_name: string;
last_name: string;
}
interface Comment {
export interface Comment {
id: string;
body: string;
author_id: string;
}
type Status = "pending" | "cancelled" | "completed" | "interrupted";
export type Status = "pending" | "cancelled" | "completed" | "interrupted";
interface Post {
export interface Post {
id: string;
title: string;
description: string;