Convert to TypeScript

This needs the usual "I know the `app` element exists" annotation, plus
dealing with a non-existing /etc/hostname (in which case the watch will
return `null`, and we shouldn't poke that into a `string` state).
This commit is contained in:
Martin Pitt 2024-07-11 11:39:39 +02:00 committed by Allison Karlitskaya
parent 4bbb291281
commit 745b4ab8e8
6 changed files with 43 additions and 5 deletions

View file

@ -45,5 +45,17 @@
"globals": {
"require": "readonly",
"module": "readonly"
}
},
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"plugins": [
"@typescript-eslint"
],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
}
}]
}