diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 046a331..b3385e5 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,12 +1,7 @@ /** @type { import("eslint").Linter.Config } */ module.exports = { root: true, - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:svelte/recommended', - 'prettier' - ], + extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], parserOptions: { diff --git a/.prettierrc b/.prettierrc index 9573023..57cc553 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,7 +2,7 @@ "useTabs": true, "singleQuote": true, "trailingComma": "none", - "printWidth": 100, + "printWidth": 200, "plugins": ["prettier-plugin-svelte"], "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }] } diff --git a/src/lib/DataConverter.svelte b/src/lib/DataConverter.svelte index 7cf70e6..5fdf50b 100644 --- a/src/lib/DataConverter.svelte +++ b/src/lib/DataConverter.svelte @@ -76,22 +76,14 @@

BMLT Data Converter

- event.key === 'Enter' && handleExport()} - placeholder="BMLT URL query..." - /> - + event.key === 'Enter' && handleExport()} placeholder="BMLT URL query..." /> + {#if $errorMessage}

{$errorMessage}

{/if} {#if csvDownloadUrl} - Download CSV
+ Download CSV
{/if} {#if kmlDownloadUrl} Download KML @@ -99,11 +91,7 @@
Converts BMLT data from JSON to CSV or KML
diff --git a/src/lib/DataUtils.ts b/src/lib/DataUtils.ts index 6bfde26..6569cd3 100644 --- a/src/lib/DataUtils.ts +++ b/src/lib/DataUtils.ts @@ -127,16 +127,7 @@ function prepareSimpleLine(meeting: Meeting, withDate = true): string { }; const getDateString = () => { - const weekday_strings = [ - 'All', - 'Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', - 'Saturday' - ]; + const weekday_strings = ['All', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; const weekday = parseInt(meeting.weekday_tinyint?.trim() ?? '0'); const weekdayString = weekday_strings[weekday]; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e1fd677..479f99f 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -8,10 +8,7 @@ BMLT Data Converter - +