meta: move config files to typescript

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I60de4abb5b81c4b14d95d7b6f1da8aa66a6a6964
This commit is contained in:
raf 2026-02-01 17:17:16 +03:00
commit ad491d69e8
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 67 additions and 46 deletions

View file

@ -3,8 +3,24 @@ import type { Config } from './src/types';
const config: Config = { const config: Config = {
server: { server: {
port: 3000, port: 3000,
// host: '0.0.0.0', // Uncomment to bind to all interfaces (default is localhost only)
}, },
// Dashboard configuration (optional)
// dashboard: {
// enabled: true,
// // Authentication options (choose one):
// auth: {
// // Option 1: Basic HTTP authentication
// type: 'basic',
// username: 'admin',
// password: 'changeme',
// // Option 2: Bearer token authentication
// // type: 'token',
// // token: 'your-secret-token-here',
// },
// },
repositories: [ repositories: [
// Leave empty to accept webhooks from any repo. // Leave empty to accept webhooks from any repo.
// { owner: "myorg", repo: "myrepo" }, // { owner: "myorg", repo: "myrepo" },

View file

@ -2,9 +2,9 @@ import tseslint from '@typescript-eslint/eslint-plugin';
import tsparser from '@typescript-eslint/parser'; import tsparser from '@typescript-eslint/parser';
export default [ export default [
{ ignores: ['dist/**', 'node_modules/**', '**/*.d.ts'] },
{ {
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], files: ['src/**/*.ts', '**/*.js', 'config.example.ts', 'tsup.config.ts'],
ignores: ['dist/**', 'node_modules/**'],
languageOptions: { languageOptions: {
ecmaVersion: 2022, ecmaVersion: 2022,
sourceType: 'module', sourceType: 'module',
@ -19,8 +19,9 @@ export default [
}, },
}, },
plugins: { plugins: {
'@typescript-eslint': tseslint, '@typescript-eslint': tseslint as unknown as Record<string, unknown>,
}, },
rules: { rules: {
...tseslint.configs.recommended.rules, ...tseslint.configs.recommended.rules,
'@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-explicit-any': 'warn',

View file

@ -1,4 +1,6 @@
export default { import type { Config } from 'prettier';
const config: Config = {
printWidth: 100, printWidth: 100,
tabWidth: 2, tabWidth: 2,
useTabs: false, useTabs: false,
@ -13,3 +15,5 @@ export default {
endOfLine: 'lf', endOfLine: 'lf',
plugins: [], plugins: [],
}; };
export default config;