Skip to content

Commit a96c43d

Browse files
🚿 lines-between-class-members
1 parent 985654c commit a96c43d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.eslintrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ rules:
2626
- requireReturn: false
2727
requireParamType: false
2828
requireReturnType: false
29+
lines-between-class-members:
30+
- error
31+
- always

src/class/HTMLCodeBlockElement.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,31 @@ export default class HTMLCodeBlockElement extends HTMLElement {
5151
code: mkslot('code'),
5252
};
5353
})();
54+
5455
/** Pure DOM content */
5556
#a11yName: HTMLElement;
57+
5658
/** Pure DOM content */
5759
#copyButton: HTMLButtonElement;
60+
5861
/** Pure DOM content */
5962
#codeBlock: HTMLElement;
63+
6064
/** Pure DOM content */
6165
#codeWrap: HTMLPreElement;
66+
6267
/** Actual value of the accessor `value` */
6368
#value: string = '';
69+
6470
/** Actual value of the accessor `label` */
6571
#label: string = '';
72+
6673
/** Actual value of the accessor `language` */
6774
#language: string = '';
75+
6876
/** Actual value of the accessor `controls` */
6977
#controls: boolean = false;
78+
7079
/** Click event handler of copy button */
7180
#onClickButton = (() => {
7281
let key = -1;
@@ -105,6 +114,7 @@ export default class HTMLCodeBlockElement extends HTMLElement {
105114
}, 1500);
106115
};
107116
})();
117+
108118
/**
109119
* Outputs the resulting syntax-highlighted markup to the DOM.
110120
* @param this - instance

0 commit comments

Comments
 (0)