Skip to content

Commit

Permalink
Add action to lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
vicr123 committed Jul 5, 2024
1 parent 2ee3e9d commit a1121cd
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint Frontend
on:
push:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Restore npm dependencies
working-directory: Parlance.ClientApp
run: |
npm ci
- name: Lint
working-directory: Parlance.ClientApp
run: |
npm lint
21 changes: 21 additions & 0 deletions Parlance.ClientApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Parlance.ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"scripts": {
"dev": "node genlangindex.js && vite",
"build": "node genlangindex.js && vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"lint": "prettier . --check",
"preview": "vite preview"
},
"eslintConfig": {
Expand Down

0 comments on commit a1121cd

Please sign in to comment.