Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports = [
{
rules: {
// Base JS recommended rules
'no-unused-vars': 'warn',
'no-unused-vars': ['warn', {
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}],
// TypeScript rules
'@typescript-eslint/no-explicit-any': 'off',
},
Expand Down
171 changes: 87 additions & 84 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"build": "NODE_ENV=production esbuild ts/app.ts --bundle --outfile=./public/js/app.js --platform=browser --minify",
"build:dev": "NODE_ENV=development esbuild ts/app.ts --bundle --outfile=./public/js/app.js --sourcemap --platform=browser",
"watch": "esbuild ts/app.ts --bundle --outfile=./public/js/app.js --sourcemap --platform=browser --watch",
"lint": "eslint --ext .ts ./ts --max-warnings=0 || true"
"lint": "eslint --ext .ts ./ts --max-warnings=0"
},
"devDependencies": {
"esbuild": "^0.25.10",
"typescript": "^5.9.2",
"eslint": "^9.36.0",
"@typescript-eslint/parser": "^8.44.0",
"@typescript-eslint/eslint-plugin": "^8.44.0"
"typescript": "^5.9.3",
"eslint": "^9.37.0",
"@typescript-eslint/parser": "^8.45.0",
"@typescript-eslint/eslint-plugin": "^8.45.0"
}
}
2 changes: 1 addition & 1 deletion app/ts/modules/graph_select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function clearGraphOptions() {
if (optionsContainer) optionsContainer.innerHTML = '';
}

export function addGraphOption(name: string, onSelect: (n: string) => void, onDelete: (n: string) => void, isDemo: boolean = false) {
export function addGraphOption(name: string, onSelect: (_name: string) => void, onDelete: (_name: string) => void, isDemo: boolean = false) {
const optionsContainer = document.getElementById('graph-options');
if (!optionsContainer) return;
const row = document.createElement('div');
Expand Down
4 changes: 2 additions & 2 deletions app/ts/modules/left_toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function initLeftToolbar(): void {

try {
setOpen(mq.matches);
} catch (e) {
} catch {
setOpen(true);
}

Expand All @@ -54,7 +54,7 @@ export function initLeftToolbar(): void {
ignoreNextClick = true;
});

btn.addEventListener('click', function (_e: MouseEvent) {
btn.addEventListener('click', function () {
if (ignoreNextClick) {
ignoreNextClick = false;
return;
Expand Down
Loading