feat: Best Practices (#102)

* feat: best practices

* feat: add tests workflow

* feat: add best-practices workflow

* fix: wrong indentation in workflow
This commit is contained in:
doprz
2024-02-21 15:54:21 -06:00
parent fe599dfe75
commit 5eb7be246c
13 changed files with 1739 additions and 1756 deletions

View File

@@ -6,7 +6,7 @@ export interface CourseColors {
}
// calculates luminance of a hex string
function getLuminance(hex: string): number {
export function getLuminance(hex: string): number {
let r = parseInt(hex.substring(1, 3), 16);
let g = parseInt(hex.substring(3, 5), 16);
let b = parseInt(hex.substring(5, 7), 16);