You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What feature(s) would you like to see in RepoSense
With #2002 being worked on, it would be beneficial to add lint rule(s) to enforce typescript functions to have explicit return type annotations. This will ensure that future additions comply with the existing coding standard, and enforce uniformity across the codebase.
Is the feature request related to a problem?
If this is not added, future functions might omit explicit return types, which would result in inconsistency across the frontend codebase.
If possible, describe the solution
Add lint rule(s) to enforce explicit return types for functions. Example: https://typescript-eslint.io/rules/explicit-function-return-type/
We should make sure that the linter works for both raw .ts files and for TypeScript code inside .vue files. This rule should of course be added after the rule has been enforced across the existing code base (i.e. after #2002 is finished & closed).
Additionally, since this will be enforced as a rule, please also update the style guide in the DG to specify this rule.
If applicable, describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered:
Hi @vvidday, may I try this issue? I know that issue #2002 is still open (for .ts files), but may I work on this issue and create a PR with a s.DoNotMerge label?
What feature(s) would you like to see in RepoSense
With #2002 being worked on, it would be beneficial to add lint rule(s) to enforce typescript functions to have explicit return type annotations. This will ensure that future additions comply with the existing coding standard, and enforce uniformity across the codebase.
Is the feature request related to a problem?
If this is not added, future functions might omit explicit return types, which would result in inconsistency across the frontend codebase.
If possible, describe the solution
Add lint rule(s) to enforce explicit return types for functions. Example: https://typescript-eslint.io/rules/explicit-function-return-type/
We should make sure that the linter works for both raw
.ts
files and for TypeScript code inside.vue
files. This rule should of course be added after the rule has been enforced across the existing code base (i.e. after #2002 is finished & closed).Additionally, since this will be enforced as a rule, please also update the style guide in the DG to specify this rule.
If applicable, describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: