1
0
mirror of https://github.com/sashacmc/photo-importer.git synced 2026-06-09 16:43:31 +02:00

Add eslint

This commit is contained in:
sashacmc
2026-06-03 19:50:06 +02:00
parent 95af48a38f
commit d009d65d91
5 changed files with 1415 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{
"env": {
"browser": true,
"es2020": true,
"jquery": true
},
"plugins": ["html"],
"rules": {
"no-eval": "error",
"no-undef": "error",
"no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^(g_|sendCommand|reload|init)",
"argsIgnorePattern": ".*"
}
],
"eqeqeq": ["warn", "smart"],
"no-var": "warn"
}
}
+17
View File
@@ -0,0 +1,17 @@
name: ESLint
on: [push, pull_request]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Lint JavaScript
run: npx eslint web/index.html
+1
View File
@@ -104,3 +104,4 @@ ENV/
# mypy
.mypy_cache/
node_modules
+1368
View File
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
{
"name": "photo-importer-web",
"private": true,
"devDependencies": {
"eslint": "^8.57.1",
"eslint-plugin-html": "^8.1.4"
}
}