Skip to content

Commit

Permalink
add github workflow for linting
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Schuettler <[email protected]>
  • Loading branch information
mschuettlerTNG committed Jan 24, 2025
1 parent e4414d6 commit 4435bc4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/eslint-prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Lint TS
on: [push, pull_request]
jobs:
lint-ts:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./WebUI
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run lint:ci
- run: npm run format:ci
4 changes: 3 additions & 1 deletion WebUI/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"build": "node ./build/scripts/patch-nsis-template.js && cross-env-shell VITE_PLATFORM_TITLE=\"for Intel® Arc™\" \"vue-tsc && vite build && electron-builder --config build/build-config.json --win --x64\"",
"lint:eslint": "eslint . --fix",
"lint": "run-s lint:*",
"format": "prettier --write ."
"format": "prettier --write .",
"lint:ci": "eslint .",
"format:ci": "prettier --check ."
},
"dependencies": {
"@radix-icons/vue": "^1.0.0",
Expand Down

0 comments on commit 4435bc4

Please sign in to comment.