Workflow to check sourcecode's linting and formatting (#146)

* ci: workflow to check sourcecode

* fix: make workflow to check source fail for incorrect linting/formatting

* ci: change step name for workflow to check sourcecode
This commit is contained in:
Alexander Roidl
2025-07-23 08:58:43 +02:00
committed by GitHub
parent cca1463a68
commit 9bb33e723a
4 changed files with 31 additions and 4 deletions

View File

@@ -9,8 +9,10 @@
"ui": "rm -rf ./ui/public/* && vite",
"prod": "yarn && vite build --emptyOutDir",
"format": "prettier --write lib/**/*.js ui/src/**/*.jsx test/**/*.js *.js",
"format:check": "prettier --check lib/**/*.js ui/src/**/*.jsx test/**/*.js *.js",
"test": "mocha --loader=esmock --timeout 3000000 test/**/*.test.js",
"lint": "eslint index.js lib/**/*.js test/**/*.js ui/src/**/*.jsx --fix"
"lint": "eslint index.js lib/**/*.js test/**/*.js ui/src/**/*.jsx",
"lint:fix": "yarn lint --fix"
},
"type": "module",
"lint-staged": {