diff --git a/.prettierignore b/.prettierignore
index 9e0713f6..acc095fa 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,2 +1,3 @@
_site
package-lock.json
+coverage
\ No newline at end of file
diff --git a/components/clear-button.ts b/components/clear-button.ts
index 35518acc..28605951 100644
--- a/components/clear-button.ts
+++ b/components/clear-button.ts
@@ -11,7 +11,7 @@ class ClearButton extends HTMLButtonElement {
this.dispatchEvent(
customEvent("clear-filter", {
value: this.value,
- }),
+ })
);
}
}
diff --git a/components/custom-event.ts b/components/custom-event.ts
index 62a47b1e..ed68dbde 100644
--- a/components/custom-event.ts
+++ b/components/custom-event.ts
@@ -3,7 +3,7 @@ export default function customEvent(
detail?: {
value?: string | boolean | number;
id?: string;
- },
+ }
): CustomEvent {
return new CustomEvent(eventName, {
bubbles: true,
diff --git a/components/filter-checkbox.ts b/components/filter-checkbox.ts
index 42d724be..6cdb31d7 100644
--- a/components/filter-checkbox.ts
+++ b/components/filter-checkbox.ts
@@ -18,7 +18,7 @@ class FilterCheckbox extends HTMLInputElement {
customEvent("handle-filter", {
value: this.checked,
id: this.id,
- }),
+ })
);
this.setUrlParam();
}
@@ -34,7 +34,7 @@ class FilterCheckbox extends HTMLInputElement {
window.history.replaceState(
{},
"",
- `${window.location.pathname}?${urlParameters.toString()}`,
+ `${window.location.pathname}?${urlParameters.toString()}`
);
}
diff --git a/components/filter-select.ts b/components/filter-select.ts
index f110d998..911215cf 100644
--- a/components/filter-select.ts
+++ b/components/filter-select.ts
@@ -30,8 +30,8 @@ class FilterSelect extends HTMLSelectElement {
{
value,
id,
- },
- ),
+ }
+ )
);
this.setUrlParam();
@@ -48,7 +48,7 @@ class FilterSelect extends HTMLSelectElement {
window.history.replaceState(
{},
"",
- `${window.location.pathname}?${urlParameters.toString()}`,
+ `${window.location.pathname}?${urlParameters.toString()}`
);
}
diff --git a/components/filter.ts b/components/filter.ts
index e25d4f53..a0f83b36 100644
--- a/components/filter.ts
+++ b/components/filter.ts
@@ -12,7 +12,7 @@ export default function filter(
currentPage: number;
pageSize: number;
},
- generatedData: GeneratedData,
+ generatedData: GeneratedData
): [number, GeneratedData] {
const {
selectedSearch,
@@ -29,7 +29,7 @@ export default function filter(
if (selectedSearch) {
filteredData = filteredData.filter((row) =>
- row.family.toLowerCase().includes(selectedSearch.toLowerCase()),
+ row.family.toLowerCase().includes(selectedSearch.toLowerCase())
);
}
@@ -41,17 +41,17 @@ export default function filter(
}
if (selectedCategory) {
filteredData = filteredData.filter(
- (row) => row.category === selectedCategory,
+ (row) => row.category === selectedCategory
);
}
if (selectedSubset) {
filteredData = filteredData.filter((row) =>
- row.subsets.includes(selectedSubset),
+ row.subsets.includes(selectedSubset)
);
}
if (selectedVariant) {
filteredData = filteredData.filter((row) =>
- row.variants.includes(selectedVariant),
+ row.variants.includes(selectedVariant)
);
}
@@ -62,13 +62,13 @@ export default function filter(
if (sortBy === "date") {
filteredData = filteredData.sort(
(a, b) =>
- new Date(b.lastModified).getTime() - new Date(a.lastModified).getTime(),
+ new Date(b.lastModified).getTime() - new Date(a.lastModified).getTime()
);
}
if (sortBy === "family") {
filteredData = filteredData.sort((a, b) =>
- a.family.localeCompare(b.family),
+ a.family.localeCompare(b.family)
);
}
diff --git a/components/font-item.ts b/components/font-item.ts
index 1cf285e3..23a14a38 100644
--- a/components/font-item.ts
+++ b/components/font-item.ts
@@ -73,7 +73,7 @@ class FontItem extends HTMLLIElement {
const tagButtons = tags
.map(
(tag: string) =>
- ``,
+ ``
)
.join("");
@@ -89,11 +89,11 @@ class FontItem extends HTMLLIElement {
- ${category}
- ${
- variants.length
- } variants${variable ? " (variable)" : ""}
+ variants.length
+ } variants${variable ? " (variable)" : ""}
- ${
- subsets.length
- } subsets
+ subsets.length
+ } subsets
@@ -135,7 +135,7 @@ class FontItem extends HTMLLIElement {
disconnectedCallback() {
const linkElement = document.querySelector(
- `link[data-family="${this.font.family}"]`,
+ `link[data-family="${this.font.family}"]`
);
if (linkElement) linkElement.remove();
}
diff --git a/components/main-app.ts b/components/main-app.ts
index 7e68c86a..b9c4ce43 100644
--- a/components/main-app.ts
+++ b/components/main-app.ts
@@ -186,7 +186,7 @@ class MainApp extends HTMLElement {
window.dispatchEvent(
customEvent("remove-select", {
value,
- }),
+ })
);
}
@@ -207,7 +207,7 @@ class MainApp extends HTMLElement {
handleSearch(event: Event) {
this.selectedSearch = (event.target as HTMLInputElement).value.replaceAll(
/[^\d A-Za-z-]/g,
- "",
+ ""
);
this.scrollToContent();
}
@@ -229,7 +229,7 @@ class MainApp extends HTMLElement {
attributeChangedCallback(
name: string,
previousValue: string,
- nextValue: string,
+ nextValue: string
) {
if (previousValue === nextValue) return;
if (name !== "current-page" && this.currentPage !== 1) {
diff --git a/components/pagination-buttons.ts b/components/pagination-buttons.ts
index 361698f3..bab83ef6 100644
--- a/components/pagination-buttons.ts
+++ b/components/pagination-buttons.ts
@@ -93,7 +93,7 @@ class PaginationButtons extends HTMLElement {
window.history.replaceState(
{},
"",
- `${window.location.pathname}?${urlParameters.toString()}`,
+ `${window.location.pathname}?${urlParameters.toString()}`
);
}
diff --git a/components/search-status.ts b/components/search-status.ts
index aa6ba6be..4bbaeb65 100644
--- a/components/search-status.ts
+++ b/components/search-status.ts
@@ -58,7 +58,7 @@ class SearchStatus extends HTMLElement {
this.selectedFilters
.map((filter) => this.renderFilter(filter))
.join(""),
- ``,
+ ``
);
}
diff --git a/components/set-attributes.ts b/components/set-attributes.ts
index 0ddb800c..bb1e523b 100644
--- a/components/set-attributes.ts
+++ b/components/set-attributes.ts
@@ -2,7 +2,7 @@ export function setAttributes(
element: HTMLElement,
attributes: {
[x: string]: string;
- },
+ }
) {
for (const key in attributes) {
if (attributes[key] !== undefined && attributes[key] !== null) {
diff --git a/components/tag-button.ts b/components/tag-button.ts
index fa03cd8d..fbfadfb2 100644
--- a/components/tag-button.ts
+++ b/components/tag-button.ts
@@ -33,7 +33,7 @@ class TagButton extends HTMLButtonElement {
customEvent("tag-button-selected", {
id: "selectedTag",
value: this.value,
- }),
+ })
);
this.setUrlParam();
@@ -45,7 +45,7 @@ class TagButton extends HTMLButtonElement {
window.history.replaceState(
{},
"",
- `${window.location.pathname}?${urlParameters.toString()}`,
+ `${window.location.pathname}?${urlParameters.toString()}`
);
}
diff --git a/data/data.json b/data/data.json
index 98d089e9..952b0f25 100644
--- a/data/data.json
+++ b/data/data.json
@@ -9700,7 +9700,7 @@
"tags": ["outline", "icons"],
"lineNumber": 777,
"variable": false,
- "lastModified": "2023-07-13"
+ "lastModified": "2023-07-20"
},
{
"family": "Material Symbols Rounded",
@@ -9710,7 +9710,7 @@
"tags": ["round", "icons"],
"lineNumber": 778,
"variable": false,
- "lastModified": "2023-07-13"
+ "lastModified": "2023-07-20"
},
{
"family": "Material Symbols Sharp",
@@ -9720,7 +9720,7 @@
"tags": ["icons"],
"lineNumber": 779,
"variable": false,
- "lastModified": "2023-07-13"
+ "lastModified": "2023-07-20"
},
{
"family": "Maven Pro",
diff --git a/package-lock.json b/package-lock.json
index f0c58582..d86d0aa3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27,7 +27,7 @@
"jest-environment-jsdom": "^29.6.1",
"lint-staged": "^13.2.3",
"node-fetch": "^3.3.1",
- "prettier": "^3.0.0",
+ "prettier": "^2.8.8",
"stylelint": "^15.10.1",
"stylelint-config-standard": "^34.0.0",
"ts-jest": "^29.1.1",
@@ -8924,15 +8924,15 @@
}
},
"node_modules/prettier": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.0.tgz",
- "integrity": "sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==",
+ "version": "2.8.8",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
+ "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
"dev": true,
"bin": {
- "prettier": "bin/prettier.cjs"
+ "prettier": "bin-prettier.js"
},
"engines": {
- "node": ">=14"
+ "node": ">=10.13.0"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
diff --git a/package.json b/package.json
index 5968c5a0..ddd60904 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
"jest-environment-jsdom": "^29.6.1",
"lint-staged": "^13.2.3",
"node-fetch": "^3.3.1",
- "prettier": "^3.0.0",
+ "prettier": "^2.8.8",
"stylelint": "^15.10.1",
"stylelint-config-standard": "^34.0.0",
"ts-jest": "^29.1.1",
diff --git a/test/__snapshots__/main-app.test.ts.snap b/test/__snapshots__/main-app.test.ts.snap
index c439e290..52935a3b 100644
--- a/test/__snapshots__/main-app.test.ts.snap
+++ b/test/__snapshots__/main-app.test.ts.snap
@@ -3,7 +3,7 @@
exports[`MainApp renders correctly 1`] = `
@@ -2413,7 +2413,7 @@ exports[`MainApp renders correctly 1`] = `