mirror of
https://github.com/two-torial/webpatcher.git
synced 2024-11-23 23:20:58 +01:00
Validate javascript on PRs
This commit is contained in:
parent
06d052d6ba
commit
8692ce43a8
9
.eslintrc.yml
Normal file
9
.eslintrc.yml
Normal file
@ -0,0 +1,9 @@
|
||||
plugins:
|
||||
- html
|
||||
env:
|
||||
browser: true
|
||||
es2021: true
|
||||
overrides: []
|
||||
parserOptions:
|
||||
ecmaVersion: latest
|
||||
rules: {}
|
@ -1,4 +1,4 @@
|
||||
name: HTML Check
|
||||
name: Check HTML/JS is valid
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
@ -9,8 +9,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: HTML5 Validator
|
||||
- name: Run HTML5 Validator
|
||||
uses: Cyb3r-Jak3/html5validator-action@v7.2.0
|
||||
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
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
node_modules/
|
||||
package-lock.json
|
10
package.json
Normal file
10
package.json
Normal file
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user