From 6725954b70ad43e134fd41ae3973f6a0e7fef5a5 Mon Sep 17 00:00:00 2001 From: Jaime Baez Date: Thu, 8 Sep 2022 17:17:15 +0200 Subject: [PATCH] Add web check / lint npm commands `svelte-check` returns some "hints" that can be ignored since some are not true and others are not relevant. --- web/package.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/package.json b/web/package.json index 63631834b8..ead4ef8056 100644 --- a/web/package.json +++ b/web/package.json @@ -6,10 +6,14 @@ "build": "vite build", "package": "svelte-kit package", "preview": "vite preview", - "check": "svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", - "lint": "prettier --check --plugin-search-dir=. . && eslint .", - "format": "prettier --write --plugin-search-dir=. .", + "check": "svelte-check --tsconfig ./tsconfig.json --fail-on-warnings", + "check:watch": "npm run check -- --watch", + "check:code": "npm run format && npm run lint && npm run check", + "check:all": "npm run check:code && npm test", + "lint": "eslint . --max-warnings 0", + "lint:fix": "npm run lint -- --fix", + "format": "prettier --check --plugin-search-dir=. .", + "format:fix": "prettier --write --plugin-search-dir=. .", "test": "jest", "test:watch": "npm test -- --watch" },