From 0c808ca39346a10c5314c4efaff4409af50c5e4d Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Tue, 21 Jan 2025 19:03:33 +0100 Subject: [PATCH] build(frontend): add eslint --- Makefile | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6f324b930..5229d8111 100644 --- a/Makefile +++ b/Makefile @@ -312,6 +312,8 @@ frontend/src/env.sass: static: node_modules assets esbuild.config.mjs frontend/src/env.sass npm run build well-known: static; +--lint-frontend: --compile-frontend + npm run lint # HELP(compile-uniworxdb): clear and fill database. requires running postgres instance (use "make start-postgres" to start one) # TODO (db-m-$MIGRATION-backend): apply migration (see src/Model/Migration/Definition.hs for list of available migrations) diff --git a/package.json b/package.json index e7cd70b03..11680876a 100644 --- a/package.json +++ b/package.json @@ -89,6 +89,7 @@ }, "scripts": { "build": "node esbuild.config.mjs", - "start": "node esbuild.config.mjs --watch" + "start": "node esbuild.config.mjs --watch", + "lint": "eslint ." } }