Skip to content

Commit b13742c

Browse files
joekarasekEvanLovely
authored andcommitted
fix: lint fixes
1 parent 836b3c8 commit b13742c

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

packages/micro-journeys/src/character.js

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import uCommPlus from './images/u-comm-plus.png';
1212

1313
let cx = classNames.bind(styles);
1414

15-
const resolveCharacterImage = (characterImage) => {
15+
const resolveCharacterImage = characterImage => {
1616
console.log('Hey super smart developer, you probably want this info -> ', {
17-
characterImage
17+
characterImage,
1818
});
1919
switch (characterImage) {
2020
case 'customer-neutral':
@@ -31,7 +31,7 @@ const resolveCharacterImage = (characterImage) => {
3131
case 'customer-happy':
3232
return customerHappy;
3333
}
34-
}
34+
};
3535

3636
@define
3737
class BoltCharacter extends withLitHtml() {
@@ -53,15 +53,21 @@ class BoltCharacter extends withLitHtml() {
5353
}
5454

5555
render() {
56-
const { characterImage, characterCustomUrl, size, useIcon, animtype } = this.validateProps(
57-
this.props,
58-
);
56+
const {
57+
characterImage,
58+
characterCustomUrl,
59+
size,
60+
useIcon,
61+
} = this.validateProps(this.props);
5962
const classes = cx('c-bolt-character', `c-bolt-character--${size}`);
6063

61-
const image = characterImage === 'custom' ? characterCustomUrl : resolveCharacterImage(characterImage);
64+
const image =
65+
characterImage === 'custom'
66+
? characterCustomUrl
67+
: resolveCharacterImage(characterImage);
6268

6369
console.log('Hey super smart developer, you probably want this info -> ', {
64-
image
70+
image,
6571
});
6672

6773
return html`

packages/micro-journeys/src/character.schema.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,30 @@ module.exports = {
1818
characterImage: {
1919
type: 'string',
2020
description: 'Pre-defined package image.',
21-
enum: ['customer-happy', 'customer-neutral', 'customer-sad', 'customer-surprise', 'pega-rep', 'u-comm-plus', 'custom'],
21+
enum: [
22+
'customer-happy',
23+
'customer-neutral',
24+
'customer-sad',
25+
'customer-surprise',
26+
'pega-rep',
27+
'u-comm-plus',
28+
'custom',
29+
],
2230
default: 'customer-happy',
23-
enumName: ['Customer Happy', 'Customer Neutral', 'Customer Sad', 'Customer Surprise', 'Pega Rep', 'U-comm Plus', 'Custom Url (use custom url field)']
31+
enumName: [
32+
'Customer Happy',
33+
'Customer Neutral',
34+
'Customer Sad',
35+
'Customer Surprise',
36+
'Pega Rep',
37+
'U-comm Plus',
38+
'Custom Url (use custom url field)',
39+
],
2440
},
2541
characterCustomUrl: {
2642
type: 'string',
2743
description: 'URL of a custom image.',
28-
default:
29-
'https://www.fillmurray.com/g/200/200',
44+
default: 'https://www.fillmurray.com/g/200/200',
3045
},
3146
useIcon: {
3247
type: 'boolean',

0 commit comments

Comments
 (0)