add javascript/eslint action
This commit is contained in:
parent
d6543909a5
commit
02a1ef7db8
2 changed files with 34 additions and 0 deletions
14
.eslintrc.js
Normal file
14
.eslintrc.js
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
module.exports = {
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"es2021": true
|
||||||
|
},
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"overrides": [
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": "latest"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
}
|
||||||
|
}
|
20
.gitea/workflows/javascript.yaml
Normal file
20
.gitea/workflows/javascript.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Javascript Linter
|
||||||
|
run-name: ${{ gitea.actor }} is running eslint
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Javascript-Lint:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm install eslint
|
||||||
|
|
||||||
|
- name: Run checking
|
||||||
|
run: |
|
||||||
|
npx eslint app/static/app.js
|
Loading…
Reference in a new issue