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

@@ -32,7 +32,7 @@ const selfClosingElements = [
class HtmlUtils {
attributesHtml(attr: any) {
public attributesHtml(attr: any) {
const output = [];
for (const n in attr) {
@@ -48,7 +48,7 @@ class HtmlUtils {
return output.join(' ');
}
processImageTags(html: string, callback: Function) {
public processImageTags(html: string, callback: Function) {
if (!html) return '';
return html.replace(imageRegex, (_v, before, src, after) => {
@@ -73,7 +73,7 @@ class HtmlUtils {
});
}
processAnchorTags(html: string, callback: Function) {
public processAnchorTags(html: string, callback: Function) {
if (!html) return '';
return html.replace(anchorRegex, (_v, before, href, after) => {
@@ -98,7 +98,7 @@ class HtmlUtils {
});
}
isSelfClosingTag(tagName: string) {
public isSelfClosingTag(tagName: string) {
return selfClosingElements.includes(tagName.toLowerCase());
}