Skip to content

Commit 38653e0

Browse files
committed
Fix lint
1 parent 12a88ca commit 38653e0

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

packages/react-renderer-demo/firebaseFunctions.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const nextjsDistDir = join('src', require('./src/next.config.js').distDir);
99
const nextjsServer = next({
1010
dev: isDev,
1111
conf: {
12-
distDir: nextjsDistDir
13-
}
12+
distDir: nextjsDistDir,
13+
},
1414
});
1515
const nextjsHandle = nextjsServer.getRequestHandler();
1616

@@ -40,7 +40,7 @@ exports.nextjsFunc = functions.https.onRequest((req, res) => {
4040
.map(({ 'created-at': createdAt, active_till: activeTill, ...notification }) => ({
4141
...notification,
4242
activeTill: activeTill.toDate(),
43-
'created-at': createdAt ? createdAt.toDate : undefined // eslint-disable-line camelcase
43+
'created-at': createdAt ? createdAt.toDate : undefined, // eslint-disable-line camelcase
4444
}));
4545
res.status(200).json(data);
4646
res.finished = true;
@@ -75,7 +75,7 @@ exports.sendComment = functions.https.onRequest(async (request, response) => {
7575
repo: 'react-forms',
7676
// eslint-disable-next-line camelcase
7777
comment_id: commentId,
78-
body: message
78+
body: message,
7979
});
8080
response.send(`Comment ${commentId} updated with message: ${message}`);
8181
} else {
@@ -84,7 +84,7 @@ exports.sendComment = functions.https.onRequest(async (request, response) => {
8484
repo: 'react-forms',
8585
// eslint-disable-next-line camelcase
8686
issue_number: issueNumber,
87-
body: message
87+
body: message,
8888
});
8989
response.send(`Comment in issue ${issueNumber} created with message: ${message}`);
9090
}

packages/react-renderer-demo/scripts/generate-component-examples.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,20 @@ const availableMappers = [
99
{ title: 'PF4', mapper: 'pf4' },
1010
{ title: 'BJS', mapper: 'blueprint' },
1111
{ title: 'SUIR', mapper: 'suir' },
12-
{ title: 'ANT', mapper: 'ant' }
12+
{ title: 'ANT', mapper: 'ant' },
1313
];
1414

1515
const targetDirectory = path.resolve(__dirname, '../doc-components');
1616

1717
const mdSources = availableMappers.reduce(
1818
(acc, curr) => ({
1919
...acc,
20-
[curr.mapper]: glob.sync(path.resolve(__dirname, `../doc-components/examples-texts/${curr.mapper}/*.md`)).map((path) => path.split('/').pop())
20+
[curr.mapper]: glob.sync(path.resolve(__dirname, `../doc-components/examples-texts/${curr.mapper}/*.md`)).map((path) => path.split('/').pop()),
2121
}),
2222
{}
2323
);
2424

25-
const filesToGenerate = glob.sync(path.resolve(__dirname, '../pages/component-example/*.js')).map((path) =>
26-
path
27-
.split('/')
28-
.pop()
29-
.replace('.js', '')
30-
);
25+
const filesToGenerate = glob.sync(path.resolve(__dirname, '../pages/component-example/*.js')).map((path) => path.split('/').pop().replace('.js', ''));
3126

3227
const fileTemplate = `import React from 'react';
3328
import PropTypes from 'prop-types';

0 commit comments

Comments
 (0)