build(frontend): add eslint

This commit is contained in:
Sarah Vaupel 2025-01-21 19:03:33 +01:00
parent 0e45938886
commit 0c808ca393
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -89,6 +89,7 @@
},
"scripts": {
"build": "node esbuild.config.mjs",
"start": "node esbuild.config.mjs --watch"
"start": "node esbuild.config.mjs --watch",
"lint": "eslint ."
}
}