Refactored to typescript & more consistent code

Updated how we interface with figlet and unified error handling &
response.
This commit is contained in:
2022-11-02 21:14:12 +01:00
parent df172e94ea
commit c8f87ade58
19 changed files with 1442 additions and 115 deletions

31
.eslintrc.json Normal file
View File

@@ -0,0 +1,31 @@
{
"root": true,
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"eslint-config-airbnb-base",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint"],
"rules": {
"lines-between-class-members": [
"error",
"always",
{ "exceptAfterSingleLine": true }
],
"max-classes-per-file": 1,
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-promise-executor-return": 1,
"no-shadow": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/no-var-requires": "off"
}
}