meta: move config files to typescript
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I60de4abb5b81c4b14d95d7b6f1da8aa66a6a6964
This commit is contained in:
parent
7d8bc6943d
commit
ad491d69e8
5 changed files with 67 additions and 46 deletions
|
|
@ -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" },
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
@ -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;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue