Enable @typescript-eslint/explicit-member-accessibility on /src (#9785)

* Enable `@typescript-eslint/explicit-member-accessibility` on /src

* Prettier
This commit is contained in:
Michael Telatynski 2022-12-16 12:29:59 +00:00 committed by GitHub
parent 51554399fb
commit f1e8e7f140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
396 changed files with 1110 additions and 1098 deletions

View file

@ -36,8 +36,8 @@ export interface IAutocompleteOptions {
}
export default abstract class AutocompleteProvider {
commandRegex: RegExp;
forcedCommandRegex: RegExp;
public commandRegex: RegExp;
public forcedCommandRegex: RegExp;
protected renderingType: TimelineRenderingType = TimelineRenderingType.Room;
@ -59,7 +59,7 @@ export default abstract class AutocompleteProvider {
}
}
destroy() {
public destroy() {
// stub
}
@ -70,7 +70,7 @@ export default abstract class AutocompleteProvider {
* @param {boolean} force True if the user is forcing completion
* @return {object} { command, range } where both objects fields are null if no match
*/
getCurrentCommand(query: string, selection: ISelectionRange, force = false) {
public getCurrentCommand(query: string, selection: ISelectionRange, force = false) {
let commandRegex = this.commandRegex;
if (force && this.shouldForceComplete()) {
@ -106,19 +106,19 @@ export default abstract class AutocompleteProvider {
};
}
abstract getCompletions(
public abstract getCompletions(
query: string,
selection: ISelectionRange,
force: boolean,
limit: number,
): Promise<ICompletion[]>;
abstract getName(): string;
public abstract getName(): string;
abstract renderCompletions(completions: React.ReactNode[]): React.ReactNode | null;
public abstract renderCompletions(completions: React.ReactNode[]): React.ReactNode | null;
// Whether we should provide completions even if triggered forcefully, without a sigil.
shouldForceComplete(): boolean {
public shouldForceComplete(): boolean {
return false;
}
}