1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Tools: Add class member accessibility modifiers and converted rule @typescript-eslint/explicit-member-accessibility to an error

This commit is contained in:
Laurent Cozic
2023-03-06 14:22:01 +00:00
parent aa4af69afc
commit c1db7182ac
129 changed files with 1252 additions and 1296 deletions

View File

@@ -3,15 +3,15 @@
import BaseModel from '../BaseModel';
export default class Search extends BaseModel {
static tableName(): string {
public static tableName(): string {
throw new Error('Not using database');
}
static modelType() {
public static modelType() {
return BaseModel.TYPE_SEARCH;
}
static keywords(query: string) {
public static keywords(query: string) {
let output: any = query.trim();
output = output.split(/[\s\t\n]+/);
output = output.filter((o: any) => !!o);