Skip to content

Commit

Permalink
Validate javascript on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mon committed Oct 29, 2023
1 parent 291c26e commit f65b90f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
plugins:
- html
env:
browser: true
es2021: true
overrides: []
parserOptions:
ecmaVersion: latest
rules: {}
8 changes: 6 additions & 2 deletions .github/workflows/html.yml → .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: HTML Check
name: Check HTML/JS is valid

on:
pull_request:
Expand All @@ -9,8 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: HTML5 Validator
- name: Run HTML5 Validator
uses: Cyb3r-Jak3/[email protected]
with:
config: ./.github/html5validator.yml
css: true
- name: Install modules for eslint
run: npm i
- name: Run ESLint
run: npx eslint . --ext .js,.html
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
package-lock.json
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "bemanipatcher",
"version": "1.0.0",
"description": "Online DLL patcher. This file only exists for eslint.",
"author": "mon",
"devDependencies": {
"eslint": "^8.52.0",
"eslint-plugin-html": "^7.1.0"
}
}

0 comments on commit f65b90f

Please sign in to comment.