Skip to content

Commit faa8269

Browse files
committed
fix: eslint fixes
1 parent ad0ab27 commit faa8269

File tree

5 files changed

+27
-11
lines changed

5 files changed

+27
-11
lines changed

docs-site/src/components/bolt-select/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ export function createSelectOptions(options) {
3737
const selectOptions = Array.from(options);
3838
return selectOptions.map(
3939
option =>
40-
wire(
41-
this,
42-
)`<option value=${option.value} selected=${option.selected}>${option.text}</option>`,
40+
wire(this)`<option value=${option.value} selected=${option.selected}>${
41+
option.text
42+
}</option>`,
4343
);
4444
}
4545

packages/build-tools/create-webpack-config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ async function createWebpackConfig(buildConfig) {
7979
// Default global Sass data defined
8080
let globalSassData = [
8181
`$bolt-namespace: ${config.namespace};`,
82-
`$bolt-css-vars-json-data-export: ${themifyOptions.fallback.jsonDataExport};`,
82+
`$bolt-css-vars-json-data-export: ${
83+
themifyOptions.fallback.jsonDataExport
84+
};`,
8385
// output $bolt-lang variable in Sass even if not specified so things fall back accordingly.
8486
`${config.lang ? `$bolt-lang: ${config.lang};` : '$bolt-lang: null;'}`,
8587
];
@@ -167,7 +169,9 @@ async function createWebpackConfig(buildConfig) {
167169

168170
if (!config.prod && config.webpackDevServer && useHotMiddleware) {
169171
entry[globalEntryName].push(
170-
`webpack-hot-middleware/client?name=${config.lang}&noInfo=true&quiet=true&logLevel=silent&reload=true`,
172+
`webpack-hot-middleware/client?name=${
173+
config.lang
174+
}&noInfo=true&quiet=true&logLevel=silent&reload=true`,
171175
);
172176
}
173177
}

packages/build-tools/tasks/api-tasks/bolt-versions.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const octokit = new Octokit({
2222
throttle: {
2323
onRateLimit: (retryAfter, options) => {
2424
console.warn(
25-
`Github API Request quota exhausted for request ${options.method} ${options.url}`,
25+
`Github API Request quota exhausted for request ${options.method} ${
26+
options.url
27+
}`,
2628
);
2729

2830
// only retry if wait is 15 seconds or less
@@ -40,7 +42,9 @@ const octokit = new Octokit({
4042
onAbuseLimit: (retryAfter, options) => {
4143
// does not retry, only logs a warning
4244
console.warn(
43-
`Github API abuse detected for request ${options.method} ${options.url}`,
45+
`Github API abuse detected for request ${options.method} ${
46+
options.url
47+
}`,
4448
);
4549
},
4650
},

packages/components/bolt-video/__tests__/bolt-video.e2e.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ module.exports = {
2929
function(result) {
3030
browser.assert.ok(
3131
result.value === 1.25,
32-
`verified that <bolt-video> play rate has sped up to ${result.value}`,
32+
`verified that <bolt-video> play rate has sped up to ${
33+
result.value
34+
}`,
3335
);
3436
},
3537
)
@@ -87,7 +89,9 @@ module.exports = {
8789
function(result) {
8890
browser.assert.ok(
8991
result.value > 1,
90-
`<bolt-video> starts playing when <bolt-button> is clicked -- verified since the current video's play time is ${result.value} seconds`,
92+
`<bolt-video> starts playing when <bolt-button> is clicked -- verified since the current video's play time is ${
93+
result.value
94+
} seconds`,
9195
);
9296
},
9397
)

packages/components/bolt-video/src/video-meta.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,16 @@ class BoltVideoMeta extends withPreact() {
3131
<div className={`c-${bolt.namespace}-video-meta__wrapper`}>
3232
{this.title ? (
3333
<div
34-
className={`c-${bolt.namespace}-video-meta__item c-${bolt.namespace}-video-meta__item--title`}>
34+
className={`c-${bolt.namespace}-video-meta__item c-${
35+
bolt.namespace
36+
}-video-meta__item--title`}>
3537
{this.title}
3638
</div>
3739
) : null}
3840
<div
39-
className={`c-${bolt.namespace}-video-meta__item c-${bolt.namespace}-video-meta__item--duration`}>
41+
className={`c-${bolt.namespace}-video-meta__item c-${
42+
bolt.namespace
43+
}-video-meta__item--duration`}>
4044
{this.duration}
4145
</div>
4246
</div>

0 commit comments

Comments
 (0)