add linting and prettier

This commit is contained in:
Blake Joynes
2023-04-13 21:58:41 -04:00
parent 7cccdb9929
commit 06155bd323
38 changed files with 2514 additions and 2135 deletions

View File

@@ -8,7 +8,12 @@
* @param {string} imagePath raw image path
* @param {boolean} svg get svg version if true
*/
export const getFullImagePath = (baseUrl: string, fileSize: string, imagePath: string, svg = false): string => {
export const getFullImagePath = (
baseUrl: string,
fileSize: string,
imagePath: string,
svg = false
): string => {
const imagePathArr = imagePath.split('.');
const imageFormat = svg ? 'svg' : imagePathArr[1];

View File

@@ -1,7 +1,3 @@
export function parseOptions(
options?: { [s: string]: any },
): string {
return options
? new URLSearchParams(Object.entries(options)).toString()
: '';
export function parseOptions(options?: { [s: string]: any }): string {
return options ? new URLSearchParams(Object.entries(options)).toString() : '';
}