GitHub Actions: Add basic ESLinter checks

This commit is contained in:
Frédéric Guillot 2024-03-10 20:52:56 -07:00
parent 45fa641d26
commit c51a3270da
3 changed files with 25 additions and 14 deletions

View file

@ -13,11 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install jshint
- name: Install linters
run: |
sudo npm install -g jshint@2.13.6
sudo npm install -g jshint@2.13.6 eslint@8.57.0
- name: Run jshint
run: jshint internal/ui/static/js/*.js
- name: Run ESLint
run: eslint internal/ui/static/js/*.js
golangci:
name: Golang Linter

View file

@ -0,0 +1,9 @@
{
"env": {
"browser": true,
"es2017": true
},
"rules": {
"indent": ["error", 4]
}
}