You've already forked photo-importer
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:
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -104,3 +104,4 @@ ENV/
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
node_modules
|
||||
|
||||
Generated
+1368
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "photo-importer-web",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-plugin-html": "^8.1.4"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user