Add linter for JS files with basic recommended rules:

- Add Github Action.
- Fix JS files to match rules; mostly `globals` and `exported`.
This commit is contained in:
Fabien Basmaison
2021-03-31 17:07:28 +02:00
parent 40c7bde7ec
commit 53f03457cc
8 changed files with 376 additions and 11 deletions

View File

@ -22,3 +22,9 @@ jobs:
uses: actions-hub/stylelint@v1.1.3
env:
PATTERN: "*.css"
- name: Run ESLint
uses: stefanoeb/eslint-action@1.0.2
with:
files:
- 'bookwyrm/static/js/**'