Build/Refactor: lint pre-commit hook and reformat repo to spec (#314)

* build/refactor: move lint/prettier packages to project root, install husky, add pre-commit hook

* refactor: reformat files

* build: put full eslintrc back with all rules
This commit is contained in:
Dan Orlando 2023-05-18 11:09:31 -07:00 committed by GitHub
parent 8d75b25104
commit 7fdc862042
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
157 changed files with 4836 additions and 2403 deletions

View file

@ -28,56 +28,56 @@ export const deleteConversation = () => {
export const search = (q: string, pageNumber: string) => {
return `/api/search?q=${q}&pageNumber=${pageNumber}`;
}
};
export const searchEnabled = () => {
return `/api/search/enable`;
}
};
export const presets = () => {
return `/api/presets`;
}
};
export const deletePreset = () => {
return `/api/presets/delete`;
}
};
export const aiEndpoints = () => {
return `/api/endpoints`;
}
};
export const tokenizer = () => {
return `/api/tokenizer`;
}
};
export const login = () => {
return '/api/auth/login';
}
};
export const logout = () => {
return '/api/auth/logout';
}
};
export const register = () => {
return '/api/auth/register';
}
};
export const loginFacebook = () => {
return '/api/auth/facebook';
}
};
export const loginGoogle = () => {
return '/api/auth/google';
}
};
export const refreshToken = () => {
return '/api/auth/refresh';
}
};
export const requestPasswordReset = () => {
return '/api/auth/requestPasswordReset';
}
};
export const resetPassword = () => {
return '/api/auth/resetPassword';
}
};