Fix linting issues
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dockerfile: ./SmartClinicManagementSystem/app/Dockerfile
|
dockerfile: ./SmartClinicManagementSystem/app/Dockerfile
|
||||||
output-file: hadolint.log
|
output-file: hadolint.log
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hadolint.log
|
name: hadolint.log
|
||||||
path: hadolint.log
|
path: hadolint.log
|
||||||
@@ -17,10 +17,10 @@ jobs:
|
|||||||
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
|
ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }}
|
||||||
- name: Install linters
|
- name: Install linters
|
||||||
run: |
|
run: |
|
||||||
npm install -g htmlhint stylelint stylelint-config-standard eslint
|
npm install htmlhint stylelint stylelint-config-standard eslint
|
||||||
- name: Lint HTML
|
- name: Lint HTML
|
||||||
run: htmlhint "./SmartClinicManagementSystem/app/src/main/resources/static/pages//*.html" || true
|
run: ./node_modules/.bin/htmlhint "./SmartClinicManagementSystem/app/src/main/resources/static/pages//*.html" || true
|
||||||
- name: Lint CSS
|
- name: Lint CSS
|
||||||
run: stylelint "./SmartClinicManagementSystem/app/src/main/resources/static/assets/css//*.css" || true
|
run: ./node_modules/.bin/stylelint "./SmartClinicManagementSystem/app/src/main/resources/static/assets/css//*.css" || true
|
||||||
- name: Lint JS
|
- name: Lint JS
|
||||||
run: eslint -c SmartClinicManagementSystem/eslint.config.js "./SmartClinicManagementSystem/app/src/main/resources/static/js//*.js" || true
|
run: ./node_modules/.bin/eslint -c SmartClinicManagementSystem/eslint.config.js "./SmartClinicManagementSystem/app/src/main/resources/static/js//*.js" || true
|
||||||
Reference in New Issue
Block a user