Skip to content

Commit

Permalink
Update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Feb 14, 2024
1 parent b8fb03a commit 2c3662b
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ exports.createPages = async ({ graphql, actions, reporter }) => {

if (nexuscategoryresults.errors) {
reporter.panicOnBuild(
`Error while running Nexus Add-on Category GraphQL query.`
`Error while running Nexus Add-on Category GraphQL query.`,
);
return;
}
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"eslint-plugin-react": "^7.33.2",
"gatsby-plugin-eslint": "^4.0.4",
"gatsby-plugin-postcss": "^6.13.1",
"postcss": "^8.4.33",
"prettier": "2.8.8",
"postcss": "^8.4.35",
"prettier": "3.2.5",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
}
Expand Down
8 changes: 4 additions & 4 deletions plugins/gatsby-source-kodiaddon/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exports.sourceNodes = async ({
addons = JSON.parse(fs.readFileSync(pixiememory + "addons.json", "utf8"));
authors = JSON.parse(fs.readFileSync(pixiememory + "authors.json", "utf8"));
categories = JSON.parse(
fs.readFileSync(pixiememory + "categories.json", "utf8")
fs.readFileSync(pixiememory + "categories.json", "utf8"),
);
featured = yaml.load(fs.readFileSync(pixiememory + "featured.yaml", "utf8"));
addons.forEach(addon =>
Expand All @@ -71,7 +71,7 @@ exports.sourceNodes = async ({
content: JSON.stringify(addon),
contentDigest: createContentDigest(addon),
},
})
}),
);
authors.forEach(author =>
createNode({
Expand All @@ -84,7 +84,7 @@ exports.sourceNodes = async ({
content: JSON.stringify(author),
contentDigest: createContentDigest(author),
},
})
}),
);
categories.forEach(category =>
createNode({
Expand All @@ -97,7 +97,7 @@ exports.sourceNodes = async ({
content: JSON.stringify(category),
contentDigest: createContentDigest(category),
},
})
}),
);
}
};
4 changes: 2 additions & 2 deletions plugins/gatsby-source-kodidonorwall/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports.sourceNodes = ({ actions, createNodeId, createContentDigest }, options)
if (err) {
console.error(
"Unable to query donors. Error:",
JSON.stringify(err, null, 2)
JSON.stringify(err, null, 2),
);
} else {
console.log("No donor records found during this pagination cycle.");
Expand Down Expand Up @@ -88,7 +88,7 @@ exports.sourceNodes = ({ actions, createNodeId, createContentDigest }, options)
accessKeyId: options.accessKeyId,
secretAccessKey: options.secretAccessKey,
},
})
}),
);
docClient.query(options.params, onQuery);
}
Expand Down
28 changes: 14 additions & 14 deletions scripts/addon-parser/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function createAuthorNode(author) {
authors.push(newauthor);
} else {
addoncheck = authorcheck.addons.find(
(/** @type {{ id: string; }} */ o) => o.id === addon.id
(/** @type {{ id: string; }} */ o) => o.id === addon.id,
);
if (!addoncheck) {
authorcheck.addons.push(addon);
Expand All @@ -354,7 +354,7 @@ function createCategoryNode(category) {
categories.push(newcategory);
} else {
addoncheck = categorycheck.addons.find(
(/** @type {{ id: string; }} */ o) => o.id === addon.id
(/** @type {{ id: string; }} */ o) => o.id === addon.id,
);
if (!addoncheck) {
categorycheck.addons.push(addon);
Expand Down Expand Up @@ -458,7 +458,7 @@ function getAssets(asset) {
addonimagetypes.push(arrayname);
} else {
assetcheck = addon[arrayname].find(
(/** @type {{ remotepath: any; }} */ o) => o.remotepath === asset.content
(/** @type {{ remotepath: any; }} */ o) => o.remotepath === asset.content,
);
}
if (!assetcheck) {
Expand Down Expand Up @@ -518,7 +518,7 @@ function queueImageType(imagetype) {
localdir: localbase,
local: rootpath + asset.localpath,
});
}
},
);
}

Expand All @@ -535,7 +535,7 @@ async function app() {
pixiememory = pixiememory + kodiversion + "/";
history = await loadHistoryFile();
console.log(
"getting addons from the " + kodiversion + " repo using " + kodimirror
"getting addons from the " + kodiversion + " repo using " + kodimirror,
);
try {
const res = await fetch(kodimirror + "addons.xml");
Expand Down Expand Up @@ -571,11 +571,11 @@ async function app() {
console.log("downloading " + download.remote);
await fetch(download.remote).then(
(
/** @type {{ body: { pipe: (arg0: fs.WriteStream) => void; }; }} */ res
/** @type {{ body: { pipe: (arg0: fs.WriteStream) => void; }; }} */ res,
) => {
const dest = fs.createWriteStream(download.local);
res.body.pipe(dest);
}
},
);
}
console.log("getting addon download counts");
Expand Down Expand Up @@ -609,26 +609,26 @@ async function app() {
JSON.stringify(
addons.sort((a, b) => a.id.localeCompare(b.id)),
null,
2
)
2,
),
);
console.log("writing authors.json to " + pixiememory);
fs.writeFileSync(
pixiememory + "authors.json",
JSON.stringify(
authors.sort((a, b) => a.id.localeCompare(b.id)),
null,
2
)
2,
),
);
console.log("writing categories.json to " + pixiememory);
fs.writeFileSync(
pixiememory + "categories.json",
JSON.stringify(
categories.sort((a, b) => a.id.localeCompare(b.id)),
null,
2
)
2,
),
);
if (args["getstats"]) {
let stats = "";
Expand All @@ -644,7 +644,7 @@ async function app() {
break;
}
}
}
},
);
} catch (error) {
stats = "";
Expand Down
4 changes: 2 additions & 2 deletions src/components/AddonLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function AddonLayout({
linkType="internal"
/>
);
}
},
)}
</div>
</div>
Expand All @@ -152,7 +152,7 @@ export default function AddonLayout({
linkType="internal"
/>
);
}
},
)}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function NavCard(_props: unknown) {
</span>
</Link>
);
}
},
)}
<h2 className="pt-6 text-gray-900 font-bold text-md">Search</h2>
<Link
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function Header(props: any) {
)
) : (
<HeaderDropdownMenu key={item.id} menu={item} />
)
),
)}
</div>
</div>
Expand Down Expand Up @@ -306,7 +306,7 @@ function Header(props: any) {
)
) : (
<HeaderDropdownMenuMobile key={item.url.url} menu={item} />
)
),
)}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeaderDropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function HeaderDropdownMenu(props: { menu: MenuEntry }) {
</p>
</div>
</a>
)
),
)}
{props.menu.footer === null ? (
""
Expand Down
2 changes: 1 addition & 1 deletion src/components/HeaderDropdownMenuMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function HeaderDropdownMenuMobile(props: { menu: MenuEntry }) {
>
{item.title}
</a>
)
),
)}
</div>
</Transition>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ReleasesLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function DownloadLinks(props: {
{props.downloads.map(
(
download: { url: string | undefined; name: React.ReactNode },
index: any
index: any,
) => {
return (
<div className="lg:flex-initial">
Expand All @@ -23,7 +23,7 @@ export function DownloadLinks(props: {
</Button>
</div>
);
}
},
)}
</div>
</React.Fragment>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchAddons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default class SearchAddons extends React.Component {
filtered_results = filtered_results.filter(addon => {
if (
addon.authors.find(
o => o.name.toLowerCase() == this.state.author.toLowerCase()
o => o.name.toLowerCase() == this.state.author.toLowerCase(),
) != undefined
) {
return addon;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function SEO({ lang, meta, keywords, frontmatter }) {
name: "keywords",
content: keywords.join(", "),
}
: []
: [],
)
.concat(meta)}
>
Expand Down

0 comments on commit 2c3662b

Please sign in to comment.