mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-04-26 17:11:21 +00:00
fix: resolve lint, format and type errors
This commit is contained in:
parent
539dd2acbd
commit
16045ca5ba
4 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
'**/*.{js,ts,cjs,svelte,tsx}': [() => 'tsc -p tsconfig.json --noEmit', 'eslint --fix', 'prettier --write']
|
'**/*.{js,ts,cjs,svelte,tsx}': [
|
||||||
|
() => 'tsc -p tsconfig.json --noEmit',
|
||||||
|
'eslint --fix',
|
||||||
|
'prettier --write'
|
||||||
|
]
|
||||||
};
|
};
|
|
@ -30,8 +30,8 @@ function sendToAnalytics(
|
||||||
debug: boolean;
|
debug: boolean;
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
const page = Object.entries(options.params).reduce(
|
const page = (Object.entries(options.params) as [string, string][]).reduce(
|
||||||
(acc, [key, value]) => acc.replace(value, `[${key}]`),
|
(acc: string, [key, value]: [string, string]) => acc.replace(value, `[${key}]`),
|
||||||
options.path
|
options.path
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
0
src/routes/blog/[slug]/$types.d.ts
vendored
0
src/routes/blog/[slug]/$types.d.ts
vendored
|
@ -1,10 +1,8 @@
|
||||||
<script>
|
<script>
|
||||||
/** @type {import('./$types').PageData} */
|
|
||||||
export let data;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>hellob.art — {data.title}</title>
|
<title>hellob.art —</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<!-- <h1>{data.title}</h1>
|
<!-- <h1>{data.title}</h1>
|
||||||
|
|
Loading…
Reference in a new issue