diff --git a/.eslintrc.json b/.eslintrc.json
index a94ea877047..4e6a169dae9 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -27,9 +27,8 @@
"extends": "plugin:svelte/recommended",
"parser": "svelte-eslint-parser",
"parserOptions": {
- "parser": "@babel/eslint-parser",
+ "parser": "@typescript-eslint/parser",
"ecmaVersion": 2019,
- "sourceType": "module",
"allowImportExportEverywhere": true
}
},
diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte
index 0a8917c3c1a..77653d0c426 100644
--- a/packages/bbui/src/Button/Button.svelte
+++ b/packages/bbui/src/Button/Button.svelte
@@ -3,7 +3,7 @@
import AbsTooltip from "../Tooltip/AbsTooltip.svelte"
import { createEventDispatcher } from "svelte"
- export let type
+ export let type = undefined
export let disabled = false
export let size = "M"
export let cta = false
@@ -16,8 +16,8 @@
export let active = false
export let tooltip = undefined
export let newStyles = true
- export let id
- export let ref
+ export let id = undefined
+ export let ref = undefined
export let reverse = false
const dispatch = createEventDispatcher()
diff --git a/packages/bbui/src/Form/Core/DateRangePicker.svelte b/packages/bbui/src/Form/Core/DateRangePicker.svelte
index 9084942ba71..72180a98d69 100644
--- a/packages/bbui/src/Form/Core/DateRangePicker.svelte
+++ b/packages/bbui/src/Form/Core/DateRangePicker.svelte
@@ -2,13 +2,6 @@
import CoreDatePicker from "./DatePicker/DatePicker.svelte"
import Icon from "../../Icon/Icon.svelte"
- export let value = null
- export let disabled = false
- export let readonly = false
- export let error = null
- export let appendTo = undefined
- export let ignoreTimezones = false
-
let fromDate
let toDate
diff --git a/packages/bbui/src/Form/Search.svelte b/packages/bbui/src/Form/Search.svelte
index 2fbda275ebf..a085986d3ed 100644
--- a/packages/bbui/src/Form/Search.svelte
+++ b/packages/bbui/src/Form/Search.svelte
@@ -10,7 +10,7 @@
export let disabled = false
export let updateOnChange = true
export let quiet = false
- export let inputRef
+ export let inputRef = undefined
export let helpText = null
const dispatch = createEventDispatcher()
diff --git a/packages/bbui/src/Form/Select.svelte b/packages/bbui/src/Form/Select.svelte
index 260090c7b72..0e67a1f5327 100644
--- a/packages/bbui/src/Form/Select.svelte
+++ b/packages/bbui/src/Form/Select.svelte
@@ -17,18 +17,18 @@
export let getOptionIcon = option => option?.icon
export let getOptionColour = option => option?.colour
export let useOptionIconImage = false
- export let isOptionEnabled
+ export let isOptionEnabled = undefined
export let quiet = false
export let autoWidth = false
export let sort = false
export let tooltip = ""
export let autocomplete = false
- export let customPopoverHeight
- export let align
+ export let customPopoverHeight = undefined
+ export let align = undefined
export let footer = null
export let tag = null
export let helpText = null
- export let compare
+ export let compare = undefined
export let onOptionMouseenter = () => {}
export let onOptionMouseleave = () => {}
diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte
index 3916bec7388..228838e477b 100644
--- a/packages/bbui/src/Table/Table.svelte
+++ b/packages/bbui/src/Table/Table.svelte
@@ -43,7 +43,7 @@
export let showHeaderBorder = true
export let placeholderText = "No rows found"
export let snippets = []
- export let defaultSortColumn
+ export let defaultSortColumn = undefined
export let defaultSortOrder = "Ascending"
const dispatch = createEventDispatcher()
diff --git a/packages/bbui/src/Typography/Heading.svelte b/packages/bbui/src/Typography/Heading.svelte
index 50522fffc32..90d53fb2083 100644
--- a/packages/bbui/src/Typography/Heading.svelte
+++ b/packages/bbui/src/Typography/Heading.svelte
@@ -1,9 +1,9 @@
-
diff --git a/packages/builder/.gitignore b/packages/builder/.gitignore
index abc5671984e..e5c961d5091 100644
--- a/packages/builder/.gitignore
+++ b/packages/builder/.gitignore
@@ -5,5 +5,4 @@ package-lock.json
release/
dist/
routify
-.routify/
-svelte.config.js
\ No newline at end of file
+.routify/
\ No newline at end of file
diff --git a/packages/builder/package.json b/packages/builder/package.json
index 46e454f5b97..fd819b8a9c8 100644
--- a/packages/builder/package.json
+++ b/packages/builder/package.json
@@ -4,7 +4,8 @@
"license": "GPL-3.0",
"private": true,
"scripts": {
- "build": "routify -b && vite build --emptyOutDir",
+ "svelte-check": "svelte-check --no-tsconfig",
+ "build": "yarn svelte-check && routify -b && vite build --emptyOutDir",
"start": "routify -c rollup",
"dev": "routify -c dev:vite",
"dev:vite": "vite --host 0.0.0.0",
@@ -97,6 +98,7 @@
"jest": "29.7.0",
"jsdom": "^21.1.1",
"resize-observer-polyfill": "^1.5.1",
+ "svelte-check": "^4.1.0",
"svelte-jester": "^1.3.2",
"vite": "^4.5.0",
"vite-plugin-static-copy": "^0.17.0",
diff --git a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte
index b7237886955..3757ed7dee5 100644
--- a/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/data/datasource/[datasourceId]/index.svelte
@@ -117,7 +117,4 @@
align-items: center;
margin-bottom: 12px;
}
-
- .tabs {
- }
diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/DNDPositionIndicator.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/DNDPositionIndicator.svelte
index 4612440a2c5..45185d8e2de 100644
--- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/DNDPositionIndicator.svelte
+++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/_components/ComponentList/DNDPositionIndicator.svelte
@@ -50,8 +50,6 @@
border-radius: 4px;
pointer-events: none;
}
- .indicator.above {
- }
.indicator.below {
margin-top: 32px;
}
diff --git a/packages/builder/src/pages/builder/portal/plugins/index.svelte b/packages/builder/src/pages/builder/portal/plugins/index.svelte
index d8dd4eae114..e16da42e102 100644
--- a/packages/builder/src/pages/builder/portal/plugins/index.svelte
+++ b/packages/builder/src/pages/builder/portal/plugins/index.svelte
@@ -1,4 +1,4 @@
-