From 379d414649924f8f49ed6e195f931f34a9284e3f Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Tue, 31 Jan 2023 16:12:09 +0100 Subject: [PATCH] Upgrade packages & lint (partially) --- .eslintrc.cjs | 2 +- package.json | 4 ++-- src/app.d.ts | 2 +- src/app.html | 4 ++-- src/lib/components/LienView.svelte | 7 ++++++- src/routes/api/articles/[id]/+server.ts | 5 +---- src/routes/api/recherche/+server.ts | 5 +---- src/routes/api/textes/+server.ts | 5 +---- src/routes/api/textes/[id]/+server.ts | 5 +---- src/routes/article/+page.server.ts | 5 +---- src/routes/articles/[id]/+page.ts | 5 +---- src/routes/dossier_legislatif/+page.server.ts | 5 +---- src/routes/id/+page.server.ts | 5 +---- src/routes/idcc/+page.server.ts | 5 +---- src/routes/jo/+page.server.ts | 5 +---- src/routes/section_ta/+page.server.ts | 5 +---- src/routes/texte_version/+page.server.ts | 5 +---- src/routes/textekali/+page.server.ts | 5 +---- src/routes/textelr/+page.server.ts | 5 +---- src/routes/textes/[id]/+page.ts | 5 +---- src/routes/versions/+page.server.ts | 5 +---- svelte.config.js | 10 +++------- tailwind.config.cjs | 4 ++-- 23 files changed, 33 insertions(+), 80 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index fe58b1d..1c7337f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -11,12 +11,12 @@ module.exports = { ], ignorePatterns: ["*.cjs"], overrides: [{ files: ["*.svelte"], processor: "svelte3/svelte3" }], - plugins: ["svelte3", "@typescript-eslint"], parser: "@typescript-eslint/parser", parserOptions: { sourceType: "module", ecmaVersion: 2020, }, + plugins: ["svelte3", "@typescript-eslint"], root: true, settings: { "svelte3/typescript": () => require("typescript"), diff --git a/package.json b/package.json index 600f5e2..6f7a8e1 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "configure": "tsx src/scripts/configure.ts", "dev": "vite dev", "format": "prettier --plugin-search-dir . --write .", - "lint": "prettier --plugin-search-dir . --check . && eslint .", - "package": "svelte-package", + "lint": "prettier --check --plugin-search-dir . . && eslint .", + "package": "svelte-kit sync && svelte-package", "preview": "vite preview", "test": "playwright test" }, diff --git a/src/app.d.ts b/src/app.d.ts index 3e4ed20..1cea0dc 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -2,8 +2,8 @@ // for information about these interfaces // and what to do when importing types declare namespace App { + // interface Error {} // interface Locals {} // interface PageData {} - // interface Error {} // interface Platform {} } diff --git a/src/app.html b/src/app.html index ab9c015..d65ee40 100644 --- a/src/app.html +++ b/src/app.html @@ -6,7 +6,7 @@ %sveltekit.head% - -
%sveltekit.body%
+ +
%sveltekit.body%
diff --git a/src/lib/components/LienView.svelte b/src/lib/components/LienView.svelte index dbf53ed..faa3585 100644 --- a/src/lib/components/LienView.svelte +++ b/src/lib/components/LienView.svelte @@ -62,7 +62,11 @@ {#if componentAndProperties === undefined} -
+