The front-end is plain JavaScript served as is: no build step to run before the bot starts, and no second toolchain to keep alive. A simple/advanced switch hides the technical panels without ever standing in for a permission. `npm run setup` starts the wizard alone, because the bot refuses to boot without a token and the `.env` has to be writable from somewhere. When the webhook and the dashboard share a port, a single HTTP server is started. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
27 lines
706 B
JavaScript
27 lines
706 B
JavaScript
import js from '@eslint/js';
|
|
import prettier from 'eslint-config-prettier';
|
|
import globals from 'globals';
|
|
|
|
export default [
|
|
{ ignores: ['node_modules/', 'data/', 'logs/', 'coverage/'] },
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
globals: globals.node,
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'prefer-const': 'error',
|
|
eqeqeq: ['error', 'always'],
|
|
},
|
|
},
|
|
{
|
|
// The dashboard front-end runs in the browser, not in Node (M16-T11).
|
|
files: ['src/web/public/**/*.js'],
|
|
languageOptions: { globals: globals.browser },
|
|
},
|
|
prettier,
|
|
];
|