Skip to content

Commit 98dd7cb

Browse files
committed
Prettier linting fixes
1 parent c3289e3 commit 98dd7cb

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.npm-init.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function requiredPrompt(message) {
3838

3939
// Use scope option (if given)
4040
const [scopeArg = ''] = process.argv.filter((arg) =>
41-
arg.startsWith('--scope=')
41+
arg.startsWith('--scope='),
4242
);
4343
const scope = scopeArg.replace('--scope=', '');
4444
// Use basename global as name
@@ -56,7 +56,7 @@ module.exports = {
5656
'GitHub repository keywords',
5757
'',
5858
// Split keywordString on spaces or commas
59-
(keywordString) => keywordString.split(/[\s,]+/g)
59+
(keywordString) => keywordString.split(/[\s,]+/g),
6060
),
6161
license: optionalPrompt('License', package?.license),
6262
author: optionalPrompt('Author', package?.author?.name),

.npm-postprepare.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function sortObjectByKey(object, order) {
4949
}
5050
return order.indexOf(accumulator) - order.indexOf(key);
5151
}
52-
: undefined
52+
: undefined,
5353
)
5454
.reduce((accumulator, key) => {
5555
return { ...accumulator, [key]: object[key] };
@@ -135,7 +135,7 @@ function logFileUpdate(filename) {
135135
const readmeUpdated = updateReadme(
136136
pkgUpdated.description,
137137
pkgUpdated.name,
138-
readme
138+
readme,
139139
);
140140
if (readmeUpdated !== readme) {
141141
await fsPromises.writeFile(README_PATH, readmeUpdated);

test/snapshotResolver.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ module.exports = {
66
path.join(
77
process.cwd(),
88
'__snapshots__',
9-
`${path.basename(testPath)}${snapshotExtension}`
9+
`${path.basename(testPath)}${snapshotExtension}`,
1010
),
1111
resolveTestPath: (snapshotFilePath, snapshotExtension) =>
1212
path.join(
1313
process.env.TEST_ROOT,
14-
path.basename(snapshotFilePath, snapshotExtension)
14+
path.basename(snapshotFilePath, snapshotExtension),
1515
),
1616
testPathForConsistencyCheck: path.join(
1717
process.env.TEST_ROOT,
18-
'example.test.js'
18+
'example.test.js',
1919
),
2020
};

0 commit comments

Comments
 (0)