diff --git a/gatsby-node.js b/gatsby-node.js index aec230ddc..168eede33 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -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; } diff --git a/package-lock.json b/package-lock.json index 26ed3def8..c55f9fccd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,7 @@ "gatsby-plugin-eslint": "^4.0.4", "gatsby-plugin-postcss": "^6.13.1", "postcss": "^8.4.33", - "prettier": "2.8.8", + "prettier": "3.2.5", "tailwindcss": "^3.4.1", "typescript": "^5.3.3" } @@ -21036,15 +21036,15 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.5.tgz", + "integrity": "sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" diff --git a/package.json b/package.json index d6f4ca62a..8d535c594 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/plugins/gatsby-source-kodiaddon/gatsby-node.js b/plugins/gatsby-source-kodiaddon/gatsby-node.js index 0d2c3a69b..ebf38b59c 100644 --- a/plugins/gatsby-source-kodiaddon/gatsby-node.js +++ b/plugins/gatsby-source-kodiaddon/gatsby-node.js @@ -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 => @@ -71,7 +71,7 @@ exports.sourceNodes = async ({ content: JSON.stringify(addon), contentDigest: createContentDigest(addon), }, - }) + }), ); authors.forEach(author => createNode({ @@ -84,7 +84,7 @@ exports.sourceNodes = async ({ content: JSON.stringify(author), contentDigest: createContentDigest(author), }, - }) + }), ); categories.forEach(category => createNode({ @@ -97,7 +97,7 @@ exports.sourceNodes = async ({ content: JSON.stringify(category), contentDigest: createContentDigest(category), }, - }) + }), ); } }; diff --git a/plugins/gatsby-source-kodidonorwall/gatsby-node.js b/plugins/gatsby-source-kodidonorwall/gatsby-node.js index 7f335d3ca..39305a74e 100644 --- a/plugins/gatsby-source-kodidonorwall/gatsby-node.js +++ b/plugins/gatsby-source-kodidonorwall/gatsby-node.js @@ -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."); @@ -88,7 +88,7 @@ exports.sourceNodes = ({ actions, createNodeId, createContentDigest }, options) accessKeyId: options.accessKeyId, secretAccessKey: options.secretAccessKey, }, - }) + }), ); docClient.query(options.params, onQuery); } diff --git a/scripts/addon-parser/app.js b/scripts/addon-parser/app.js index 92a5d374c..88ba1fef6 100644 --- a/scripts/addon-parser/app.js +++ b/scripts/addon-parser/app.js @@ -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); @@ -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); @@ -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) { @@ -518,7 +518,7 @@ function queueImageType(imagetype) { localdir: localbase, local: rootpath + asset.localpath, }); - } + }, ); } @@ -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"); @@ -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"); @@ -609,8 +609,8 @@ 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( @@ -618,8 +618,8 @@ async function app() { JSON.stringify( authors.sort((a, b) => a.id.localeCompare(b.id)), null, - 2 - ) + 2, + ), ); console.log("writing categories.json to " + pixiememory); fs.writeFileSync( @@ -627,8 +627,8 @@ async function app() { JSON.stringify( categories.sort((a, b) => a.id.localeCompare(b.id)), null, - 2 - ) + 2, + ), ); if (args["getstats"]) { let stats = ""; @@ -644,7 +644,7 @@ async function app() { break; } } - } + }, ); } catch (error) { stats = ""; diff --git a/src/components/AddonLayout.tsx b/src/components/AddonLayout.tsx index 24e67846e..7e54472c1 100644 --- a/src/components/AddonLayout.tsx +++ b/src/components/AddonLayout.tsx @@ -130,7 +130,7 @@ export default function AddonLayout({ linkType="internal" /> ); - } + }, )} @@ -152,7 +152,7 @@ export default function AddonLayout({ linkType="internal" /> ); - } + }, )} diff --git a/src/components/Blog.tsx b/src/components/Blog.tsx index 911279540..f3244671b 100644 --- a/src/components/Blog.tsx +++ b/src/components/Blog.tsx @@ -128,7 +128,7 @@ function NavCard(_props: unknown) { ); - } + }, )}

Search

- ) + ), )} @@ -306,7 +306,7 @@ function Header(props: any) { ) ) : ( - ) + ), )} diff --git a/src/components/HeaderDropdownMenu.tsx b/src/components/HeaderDropdownMenu.tsx index 0da4cc095..ccde0cceb 100644 --- a/src/components/HeaderDropdownMenu.tsx +++ b/src/components/HeaderDropdownMenu.tsx @@ -76,7 +76,7 @@ function HeaderDropdownMenu(props: { menu: MenuEntry }) {

- ) + ), )} {props.menu.footer === null ? ( "" diff --git a/src/components/HeaderDropdownMenuMobile.tsx b/src/components/HeaderDropdownMenuMobile.tsx index 38a19142e..906774d96 100644 --- a/src/components/HeaderDropdownMenuMobile.tsx +++ b/src/components/HeaderDropdownMenuMobile.tsx @@ -53,7 +53,7 @@ function HeaderDropdownMenuMobile(props: { menu: MenuEntry }) { > {item.title} - ) + ), )} diff --git a/src/components/ReleasesLinks.tsx b/src/components/ReleasesLinks.tsx index 9b56deb66..64c3dc539 100644 --- a/src/components/ReleasesLinks.tsx +++ b/src/components/ReleasesLinks.tsx @@ -14,7 +14,7 @@ export function DownloadLinks(props: { {props.downloads.map( ( download: { url: string | undefined; name: React.ReactNode }, - index: any + index: any, ) => { return (
@@ -23,7 +23,7 @@ export function DownloadLinks(props: {
); - } + }, )} diff --git a/src/components/SearchAddons.tsx b/src/components/SearchAddons.tsx index 61e4b4e45..ed2f21204 100644 --- a/src/components/SearchAddons.tsx +++ b/src/components/SearchAddons.tsx @@ -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; diff --git a/src/components/Seo.tsx b/src/components/Seo.tsx index f02a7951d..e6465efc8 100644 --- a/src/components/Seo.tsx +++ b/src/components/Seo.tsx @@ -76,7 +76,7 @@ function SEO({ lang, meta, keywords, frontmatter }) { name: "keywords", content: keywords.join(", "), } - : [] + : [], ) .concat(meta)} >