diff --git a/daemon/web/eslint.config.js b/daemon/web/eslint.config.js index 1ef0f52..b19dc75 100644 --- a/daemon/web/eslint.config.js +++ b/daemon/web/eslint.config.js @@ -37,6 +37,17 @@ export default ts.config( { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, ], '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/naming-convention': [ + 'error', + { + selector: 'function', + format: ['snake_case'], + }, + { + selector: 'method', + format: ['snake_case'], + }, + ], }, } ); diff --git a/daemon/web/src/lib/components/ApiRequestButton.svelte b/daemon/web/src/lib/components/ApiRequestButton.svelte index b43b60c..c7d683f 100644 --- a/daemon/web/src/lib/components/ApiRequestButton.svelte +++ b/daemon/web/src/lib/components/ApiRequestButton.svelte @@ -43,7 +43,7 @@ }, }; - async function handleClick() { + async function handle_click() { if (is_disabled) return; is_requesting = true; @@ -71,7 +71,7 @@