Skip to content

Commit 81f2768

Browse files
committed
🖍 fixed linting errors
1 parent 24d9791 commit 81f2768

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

data/src/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fse.emptyDirSync(outputFolder);
1313

1414
// Generate individual Entries:
1515
glob("**/info.json", {}, (err, files) => {
16-
files.forEach(entryInfoPath => {
16+
files.forEach((entryInfoPath) => {
1717
const path = entryInfoPath.slice(0, -"/info.json".length);
1818
const entry = getDataEntry(path);
1919
fse.ensureFileSync(`${outputFolder}/${path}.json`);
@@ -23,7 +23,7 @@ glob("**/info.json", {}, (err, files) => {
2323

2424
// Generate Collections:
2525
glob("*/*.json", {}, (err, files) => {
26-
files.forEach(collectionPath => {
26+
files.forEach((collectionPath) => {
2727
const backslashIndex = collectionPath.indexOf("/");
2828
const collectionType = collectionPath.slice(0, backslashIndex);
2929
const collectionName = collectionPath.slice(backslashIndex + 1);

fullstack/src/utils/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const getDataEntry = (_path: string, include?: string[]) => {
2929
entry = { ...info };
3030
} else {
3131
entry = Object.keys(info)
32-
.filter(key => include.includes(key))
32+
.filter((key) => include.includes(key))
3333
.reduce(
3434
(obj, key) => ({
3535
...obj,
@@ -67,7 +67,7 @@ export const getDataCollection = (
6767
const collection: Collection = fse.readJsonSync(path);
6868

6969
// Collect Entries
70-
const entries = collection.items.map(slug => {
70+
const entries = collection.items.map((slug) => {
7171
const entry = getDataEntry(`${collectionType}/${slug}`, collection.include);
7272
return {
7373
slug,

0 commit comments

Comments
 (0)