Skip to content

Commit e79f9a8

Browse files
committed
fix: fixing prettier / eslint issues with decorators next to exported Classes
1 parent ca03baf commit e79f9a8

File tree

18 files changed

+54
-21
lines changed

18 files changed

+54
-21
lines changed

packages/components/bolt-band/src/band.standalone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { withHyperHtml } from '@bolt/core/renderers';
99
// ShadyCSS will rename classes as needed to ensure style scoping.
1010

1111
@define
12-
export class BoltBand extends withHyperHtml() {
12+
class BoltBand extends withHyperHtml() {
1313
static is = 'bolt-band';
1414

1515
static get observedAttributes() {
@@ -207,3 +207,5 @@ export class BoltBand extends withHyperHtml() {
207207
}
208208
}
209209
}
210+
211+
export { BoltBand };

packages/components/bolt-block-list/src/block-list.standalone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { h, withPreact } from '@bolt/core/renderers';
44
import styles from './block-list.scss';
55

66
@define
7-
export class BoltBlockList extends withPreact() {
7+
class BoltBlockList extends withPreact() {
88
static is = 'bolt-block-list';
99

1010
static props = {
@@ -34,3 +34,5 @@ export class BoltBlockList extends withPreact() {
3434
);
3535
}
3636
}
37+
38+
export { BoltBlockList };

packages/components/bolt-button/src/button.standalone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import styles from './button.scss';
1616
let cx = classNames.bind(styles);
1717

1818
@define
19-
export class BoltButton extends withHyperHtml() {
19+
class BoltButton extends withHyperHtml() {
2020
static is = 'bolt-button';
2121

2222
static props = {
@@ -155,3 +155,5 @@ export class BoltButton extends withHyperHtml() {
155155
`;
156156
}
157157
}
158+
159+
export { BoltButton };

packages/components/bolt-code-snippet/src/code-snippet.standalone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import 'prismjs/components/prism-markdown';
2323
import 'prismjs/components/prism-yaml';
2424

2525
@define
26-
export class BoltCodeSnippetClass extends withPreact() {
26+
class BoltCodeSnippetClass extends withPreact() {
2727
static is = 'bolt-code-snippet';
2828

2929
static props = {
@@ -97,3 +97,5 @@ export class BoltCodeSnippetClass extends withPreact() {
9797
}
9898
}
9999
}
100+
101+
export { BoltCodeSnippetClass };

packages/components/bolt-copy-to-clipboard/src/copy-to-clipboard.standalone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { props, define } from '@bolt/core/utils';
44
import { withHyperHtml } from '@bolt/core/renderers';
55

66
@define
7-
export class BoltCopyToClipboard extends withHyperHtml() {
7+
class BoltCopyToClipboard extends withHyperHtml() {
88
static is = 'bolt-copy-to-clipboard';
99

1010
constructor(self) {
@@ -49,3 +49,5 @@ export class BoltCopyToClipboard extends withHyperHtml() {
4949
this.copyLink.removeEventListener('click', this.clickHandler);
5050
}
5151
}
52+
53+
export { BoltCopyToClipboard };

packages/components/bolt-device-viewer/src/device-viewer.standalone.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,5 @@ class BoltImageZoom extends withHyperHtml() {
159159
`;
160160
}
161161
}
162+
163+
export { BoltDeviceViewer, BoltImageZoom };

packages/components/bolt-dropdown/dropdown.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import heightUtils from '@bolt/global/styles/07-utilities/_utilities-height.scss
1212
import styles from './dropdown.scss';
1313

1414
@define
15-
export class BoltDropdown extends withHyperHtml() {
15+
class BoltDropdown extends withHyperHtml() {
1616
static is = 'bolt-dropdown';
1717

1818
static props = {
@@ -219,3 +219,5 @@ export class BoltDropdown extends withHyperHtml() {
219219
`;
220220
}
221221
}
222+
223+
export { BoltDropdown };

packages/components/bolt-icon/src/icon.standalone.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const backgroundStyles = ['circle', 'square'];
2020
const colors = ['teal', 'blue'];
2121

2222
@define
23-
export class BoltIcon extends withPreact() {
23+
class BoltIcon extends withPreact() {
2424
static is = 'bolt-icon';
2525

2626
static props = {
@@ -162,3 +162,5 @@ if (!supportsCSSVars && !observedElements.includes(document.body)) {
162162
subtree: true,
163163
});
164164
}
165+
166+
export { BoltIcon };

packages/components/bolt-nav-indicator/nav-indicator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ let gumshoeStateModule = (function() {
149149
})();
150150

151151
@define
152-
export class BoltNavIndicator extends withHyperHtml() {
152+
class BoltNavIndicator extends withHyperHtml() {
153153
static is = 'bolt-nav-indicator';
154154

155155
// Behavior for `<bolt-nav>` parent container
@@ -382,3 +382,5 @@ export class BoltNavIndicator extends withHyperHtml() {
382382
// such as scroll.
383383
throttle('resize', 'optimizedResize');
384384
})();
385+
386+
export { BoltNavIndicator };

packages/components/bolt-nav-priority/nav-priority.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { withHyperHtml } from '@bolt/core/renderers';
88
*/
99

1010
@define
11-
export class BoltNavPriority extends withHyperHtml() {
11+
class BoltNavPriority extends withHyperHtml() {
1212
static is = 'bolt-nav-priority';
1313

1414
static get observedAttributes() {
@@ -237,3 +237,5 @@ export class BoltNavPriority extends withHyperHtml() {
237237
window.removeEventListener('optimizedResize', this._adaptPriorityNav);
238238
}
239239
}
240+
241+
export { BoltNavPriority };

0 commit comments

Comments
 (0)