Skip to content

Commit 0fe31cb

Browse files
committed
style: prettify codebase
1 parent ffa2569 commit 0fe31cb

File tree

486 files changed

+3532
-3677
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+3532
-3677
lines changed

.github/actions/generators-integration-tests/index.js

+12-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
const core = require('@actions/core');
2-
const {spawn} = require('child_process');
2+
const { spawn } = require('child_process');
33

44
async function run() {
55
try {
6-
const packageCommand = core.getInput('packageCommand', {required: true});
7-
const successRegexp = core.getInput('successRegexp', {required: true});
6+
const packageCommand = core.getInput('packageCommand', { required: true });
7+
const successRegexp = core.getInput('successRegexp', { required: true });
88
let timeoutId;
99

1010
const child = spawn(packageCommand, {
1111
shell: true,
1212
});
1313

1414
console.log('###', successRegexp);
15-
child.stdout.on('data', data => {
15+
child.stdout.on('data', (data) => {
1616
console.log(data.toString());
1717
if (data.toString().includes(successRegexp)) {
1818
clearTimeout(timeoutId);
@@ -21,14 +21,17 @@ async function run() {
2121
}
2222
});
2323

24-
child.stderr.on('data', data => {
24+
child.stderr.on('data', (data) => {
2525
console.error(data.toString());
2626
});
2727

28-
timeoutId = setTimeout(() => {
29-
child.kill('SIGTERM');
30-
core.setFailed('Command timeout');
31-
}, 8 * 60 * 1000); // 8 minutes
28+
timeoutId = setTimeout(
29+
() => {
30+
child.kill('SIGTERM');
31+
core.setFailed('Command timeout');
32+
},
33+
8 * 60 * 1000,
34+
); // 8 minutes
3235
} catch (error) {
3336
core.setFailed(error.message);
3437
}

.storybook/events/register.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function getDividedItems(items) {
2626

2727
return acc;
2828
},
29-
[[], []]
29+
[[], []],
3030
);
3131
}
3232

.storybook/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
webpackFinal: async (config) => {
5353
// removes default file-loader
5454
const rules = config.module.rules.filter(
55-
(rule) => !rule.loader || !rule.loader.includes('file-loader')
55+
(rule) => !rule.loader || !rule.loader.includes('file-loader'),
5656
);
5757

5858
const tsPaths = new TsconfigPathsPlugin({
@@ -74,7 +74,7 @@ module.exports = {
7474
fs: false,
7575
stream: false,
7676
os: false,
77-
zlib: false
77+
zlib: false,
7878
},
7979
},
8080
module: {

0 commit comments

Comments
 (0)