-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adjacent-overload-signatures
typescript-eslint rule
#1250
Comments
It requires getters and setters to be next to each other. Like this getHintResponse(): ResolvedResponse {
return ResponsePacket.getResponseText( this._hintResponse );
}
get hintResponse(): ResolvedResponse { return this.getHintResponse(); }
setHintResponse( hintResponse: VoicingResponse ): void {
this._hintResponse = hintResponse;
}
set hintResponse( hintResponse: VoicingResponse ) { this.setHintResponse( hintResponse ); } The The reason this may be useful is because it could prevent accidental overloading since overloaded functions must be grouped. SR volunteered to to give it a try, if it doesn't take too long to fix existing errors it is worth having this rule enabled. |
We reviewed the cases and decided to divide and conquer. I'll do cases in scenery. @marlitas will do the other cases. |
OK I finished in scenery. When the rest of the cases are complete, @marlitas can you please enable the rule in chipper/eslint/.eslintrc.js and commit/push? Self-unassigning. |
lint rule enabled runs clean. Closing. |
From to #1114, see https://typescript-eslint.io/rules/adjacent-overload-signatures/.
Currently 258 errors in the project. Should we chip-away and enable or ignore this rule? To be discussed during dev meeting.
The text was updated successfully, but these errors were encountered: