Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint-no-fix && npm run check-types
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint-no-fix && npm run check-types
8 changes: 7 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ export default tseslint.config(
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/unified-signatures": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unused-vars": ["error", {
vars: "all",
args: "after-used",
ignoreRestSiblings: true,
}],
"no-unused-private-class-members": "error",
"@stylistic/quotes": ["error", "single", { avoidEscape: true }],
"@stylistic/indent": ["error", 4],
"@stylistic/semi": ["error", "always"],
Expand All @@ -39,4 +45,4 @@ export default tseslint.config(
"webapp/control/**/*.gen.d.ts"
],
},
);
);
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"lint": "npx eslint --fix && npm run check-types",
"serve": "node mock.mjs",
"start:webserver": "npx http-server dist/ -p 80",
"test": "npx ui5-test-runner"
"test": "npx ui5-test-runner",
"prepare": "husky"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^5.10.0",
Expand All @@ -47,6 +48,7 @@
"dotenv": "^17.4.1",
"eslint": "^10.2.0",
"express": "^5.2.1",
"husky": "^9.1.7",
"typescript-eslint": "^8.58.1",
"ui5-test-runner": "^5.13.1"
}
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"noImplicitAny": true,
"strictNullChecks": true,
"strictPropertyInitialization": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": false,
"inlineSourceMap": false,
"declaration": false,
Expand Down
2 changes: 1 addition & 1 deletion webapp/common/Formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,5 @@ export function formatErrorDetails(status: string, errorMessage: string): string
}

export function isErrorStatus(status: string): boolean {
return status === SystemStatus.FAILED;
return (status as SystemStatus) === SystemStatus.FAILED;
}
46 changes: 0 additions & 46 deletions webapp/component/HelpInfoPopover.ts

This file was deleted.

Loading