chore(users/Profpatsch/lyric): add typescript linting rules
Change-Id: I9ab0336450519648f7a8edeec94bd64b78e2f05b Reviewed-on: https://cl.tvl.fyi/c/depot/+/12554 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
102c9b30a7
commit
ad711b15a0
6 changed files with 140 additions and 89 deletions
|
|
@ -1,16 +1,16 @@
|
|||
import { tapBpm } from "./tap-bpm.js";
|
||||
import { tapBpm } from './tap-bpm.js';
|
||||
|
||||
async function main() {
|
||||
function main() {
|
||||
// subcommand for tap-bpm
|
||||
if (process.argv[2] === "tap-bpm") {
|
||||
await tapBpm();
|
||||
if (process.argv[2] === 'tap-bpm') {
|
||||
tapBpm();
|
||||
}
|
||||
}
|
||||
|
||||
await main();
|
||||
main();
|
||||
|
||||
// sleep in a loop to block nodejs
|
||||
console.log("Blocking event loop...");
|
||||
console.log('Blocking event loop...');
|
||||
while (true) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue