prettier configs

This commit is contained in:
Boki 2025-06-11 10:41:33 -04:00
parent 8b5e06954a
commit f5a5ff0a76
22 changed files with 581 additions and 400 deletions

View file

@ -103,8 +103,3 @@ scripts/
*.sh *.sh
*.bat *.bat
*.ps1 *.ps1
# Config files that need special formatting
bunfig.toml
angular.json
turbo.json

View file

@ -1,91 +1,90 @@
{ {
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1, "version": 1,
"cli": { "cli": {
"packageManager": "npm" "packageManager": "npm"
}, },
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"trading-dashboard": { "trading-dashboard": {
"projectType": "application", "schematics": { "projectType": "application",
"@schematics/angular:component": { "schematics": {
"style": "css" "@schematics/angular:component": {
} "style": "css"
}, }
"root": "", },
"sourceRoot": "src", "root": "",
"prefix": "app", "sourceRoot": "src",
"architect": { "build": { "prefix": "app",
"builder": "@angular/build:application", "architect": {
"options": { "build": {
"browser": "src/main.ts", "builder": "@angular/build:application",
"tsConfig": "tsconfig.app.json", "options": {
"inlineStyleLanguage": "css", "browser": "src/main.ts",
"assets": [ "tsConfig": "tsconfig.app.json",
{ "inlineStyleLanguage": "css",
"glob": "**/*", "assets": [
"input": "public" {
} "glob": "**/*",
], "input": "public"
"styles": [ }
"src/styles.css" ],
] "styles": ["src/styles.css"]
}, },
"configurations": { "configurations": {
"production": { "production": {
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
"maximumWarning": "500kB", "maximumWarning": "500kB",
"maximumError": "1MB" "maximumError": "1MB"
}, },
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "4kB", "maximumWarning": "4kB",
"maximumError": "8kB" "maximumError": "8kB"
} }
], ],
"outputHashing": "all" "outputHashing": "all"
}, },
"development": { "development": {
"optimization": false, "optimization": false,
"extractLicenses": false, "extractLicenses": false,
"sourceMap": false "sourceMap": false
} }
}, },
"defaultConfiguration": "production" "defaultConfiguration": "production"
}, },
"serve": { "serve": {
"builder": "@angular/build:dev-server", "builder": "@angular/build:dev-server",
"configurations": { "configurations": {
"production": { "production": {
"buildTarget": "trading-dashboard:build:production" "buildTarget": "trading-dashboard:build:production"
}, },
"development": { "development": {
"buildTarget": "trading-dashboard:build:development" "buildTarget": "trading-dashboard:build:development"
} }
}, },
"defaultConfiguration": "development" "defaultConfiguration": "development"
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular/build:extract-i18n" "builder": "@angular/build:extract-i18n"
}, "test": { },
"builder": "@angular/build:karma", "test": {
"options": { "builder": "@angular/build:karma",
"tsConfig": "tsconfig.spec.json", "options": {
"inlineStyleLanguage": "css", "tsConfig": "tsconfig.spec.json",
"assets": [ "inlineStyleLanguage": "css",
{ "assets": [
"glob": "**/*", {
"input": "public" "glob": "**/*",
} "input": "public"
], }
"styles": [ ],
"src/styles.css" "styles": ["src/styles.css"]
] }
} }
} }
} }
} }
} }
}

View file

@ -1,21 +1,28 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": [ "dependsOn": [
"@stock-bot/cache#build", "@stock-bot/cache#build",
"@stock-bot/config#build", "@stock-bot/config#build",
"@stock-bot/event-bus#build", "@stock-bot/event-bus#build",
"@stock-bot/http#build", "@stock-bot/http#build",
"@stock-bot/logger#build", "@stock-bot/logger#build",
"@stock-bot/mongodb-client#build", "@stock-bot/mongodb-client#build",
"@stock-bot/questdb-client#build", "@stock-bot/questdb-client#build",
"@stock-bot/shutdown#build" "@stock-bot/shutdown#build"
], ],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "inputs": [
"package.json", "src/**",
"tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "package.json",
} "tsconfig.json",
} "!**/*.test.ts",
} "!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,17 +1,26 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": [ "dependsOn": [
"@stock-bot/types#build", "@stock-bot/types#build",
"@stock-bot/config#build", "@stock-bot/config#build",
"@stock-bot/logger#build", "@stock-bot/logger#build",
"@stock-bot/utils#build", "@stock-bot/utils#build",
"@stock-bot/event-bus#build", "@stock-bot/event-bus#build",
"@stock-bot/shutdown#build" "@stock-bot/shutdown#build"
], ],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,18 +1,27 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": [ "dependsOn": [
"@stock-bot/types#build", "@stock-bot/types#build",
"@stock-bot/config#build", "@stock-bot/config#build",
"@stock-bot/logger#build", "@stock-bot/logger#build",
"@stock-bot/utils#build", "@stock-bot/utils#build",
"@stock-bot/postgres-client#build", "@stock-bot/postgres-client#build",
"@stock-bot/event-bus#build", "@stock-bot/event-bus#build",
"@stock-bot/shutdown#build" "@stock-bot/shutdown#build"
], ],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,20 +1,29 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": [ "dependsOn": [
"@stock-bot/types#build", "@stock-bot/types#build",
"@stock-bot/config#build", "@stock-bot/config#build",
"@stock-bot/logger#build", "@stock-bot/logger#build",
"@stock-bot/utils#build", "@stock-bot/utils#build",
"@stock-bot/data-frame#build", "@stock-bot/data-frame#build",
"@stock-bot/vector-engine#build", "@stock-bot/vector-engine#build",
"@stock-bot/mongodb-client#build", "@stock-bot/mongodb-client#build",
"@stock-bot/event-bus#build", "@stock-bot/event-bus#build",
"@stock-bot/shutdown#build" "@stock-bot/shutdown#build"
], ],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,18 +1,27 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": [ "dependsOn": [
"@stock-bot/types#build", "@stock-bot/types#build",
"@stock-bot/config#build", "@stock-bot/config#build",
"@stock-bot/logger#build", "@stock-bot/logger#build",
"@stock-bot/utils#build", "@stock-bot/utils#build",
"@stock-bot/strategy-engine#build", "@stock-bot/strategy-engine#build",
"@stock-bot/event-bus#build", "@stock-bot/event-bus#build",
"@stock-bot/shutdown#build" "@stock-bot/shutdown#build"
], ],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

29
libs/cache/turbo.json vendored
View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build"], "dependsOn": ["@stock-bot/types#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/utils#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/utils#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build", "@stock-bot/logger#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build", "@stock-bot/logger#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build", "@stock-bot/logger#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build", "@stock-bot/logger#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build", "@stock-bot/logger#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build", "@stock-bot/logger#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/logger#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,17 +1,26 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": [ "dependsOn": [
"@stock-bot/types#build", "@stock-bot/types#build",
"@stock-bot/config#build", "@stock-bot/config#build",
"@stock-bot/logger#build", "@stock-bot/logger#build",
"@stock-bot/utils#build", "@stock-bot/utils#build",
"@stock-bot/data-frame#build", "@stock-bot/data-frame#build",
"@stock-bot/event-bus#build" "@stock-bot/event-bus#build"
], ],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": [], "dependsOn": [],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,19 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build"], "dependsOn": ["@stock-bot/types#build", "@stock-bot/config#build"],
"outputs": ["dist/**"], "outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
} "src/**",
} "package.json",
} "tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,10 +1,23 @@
{ {
"extends": ["//"], "extends": ["//"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["@stock-bot/types#build", "@stock-bot/utils#build", "@stock-bot/data-frame#build"], "dependsOn": [
"outputs": ["dist/**"], "@stock-bot/types#build",
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "@stock-bot/utils#build",
} "@stock-bot/data-frame#build"
} ],
} "outputs": ["dist/**"],
"inputs": [
"src/**",
"package.json",
"tsconfig.json",
"!**/*.test.ts",
"!**/*.spec.ts",
"!**/test/**",
"!**/tests/**",
"!**/__tests__/**"
]
}
}
}

View file

@ -1,63 +1,77 @@
{ {
"$schema": "https://turbo.build/schema.json", "$schema": "https://turbo.build/schema.json",
"ui": "tui", "ui": "tui",
"globalDependencies": ["**/.env.*local"], "globalDependencies": ["**/.env.*local"],
"tasks": { "tasks": {
"build": { "build": {
"dependsOn": ["^build"], "dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"], "outputs": ["dist/**", ".next/**", "!.next/cache/**"],
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "inputs": [
}, "src/**",
"build:libs": { "package.json",
"dependsOn": [], "tsconfig.json",
"outputs": ["dist/**"], "!**/*.test.ts",
"inputs": ["src/**", "package.json", "tsconfig.json", "!**/*.test.ts", "!**/*.spec.ts", "!**/test/**", "!**/tests/**", "!**/__tests__/**"] "!**/*.spec.ts",
}, "!**/test/**",
"dev": { "!**/tests/**",
"dependsOn": ["^build"], "!**/__tests__/**"
"cache": false, ]
"persistent": true },
}, "build:libs": {
"test": { "dependsOn": [],
"dependsOn": ["build"], "outputs": ["dist/**"],
"outputs": [] "inputs": [
}, "lint": { "src/**",
"dependsOn": [], "package.json",
"outputs": [] "tsconfig.json",
}, "!**/*.test.ts",
"lint:fix": { "!**/*.spec.ts",
"dependsOn": [], "!**/test/**",
"outputs": [] "!**/tests/**",
}, "!**/__tests__/**"
"lint:check": { ]
"dependsOn": [], },
"outputs": [] "dev": {
}, "dependsOn": ["^build"],
"format": { "cache": false,
"dependsOn": [], "persistent": true
"outputs": [] },
}, "test": {
"format:check": { "dependsOn": ["build"],
"dependsOn": [], "outputs": []
"outputs": [] },
}, "lint": {
"clean": { "dependsOn": [],
"cache": false "outputs": []
}, },
"start": { "lint:fix": {
"dependsOn": ["build"], "dependsOn": [],
"cache": false, "outputs": []
"persistent": true },
}, "lint:check": {
"backtest": { "dependsOn": [],
"dependsOn": ["build"], "outputs": []
"cache": false },
} "format": {
}, "dependsOn": [],
"globalEnv": [ "outputs": []
"NODE_ENV", },
"DATA_SERVICE_PORT", "format:check": {
"DRAGONFLY_HOST", "dependsOn": [],
"DRAGONFLY_PORT" "outputs": []
] },
} "clean": {
"cache": false
},
"start": {
"dependsOn": ["build"],
"cache": false,
"persistent": true
},
"backtest": {
"dependsOn": ["build"],
"cache": false
}
},
"globalEnv": ["NODE_ENV", "DATA_SERVICE_PORT", "DRAGONFLY_HOST", "DRAGONFLY_PORT"]
}