Skip to content

Commit

Permalink
Fix ESLint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoves committed Nov 23, 2024
1 parent 6e4ca18 commit 8f1f4e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/pages/RetrofitChicagoParticipants.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ export default class ChicagoRetrofitParticipants extends Vue {
filterBuildings(): void {
// Loop through BuildingsCustomInfo to get the IDs of buildings we are looking for
const retrofitBuildingSlugs: Array<string> = Object.entries(BuildingsCustomInfo)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.filter(([ buildingID, buildingInfo ]: [string, IBuildingCustomInfo]) => {
.filter(([ , buildingInfo ]: [string, IBuildingCustomInfo]) => {
return buildingInfo.tags?.includes(BuildingTags.hasRetrofitCaseStudy);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
}).map(([ buildingID, buildingInfo ]: [string, IBuildingCustomInfo]) => buildingID);
}).map(([ buildingID ]: [string, IBuildingCustomInfo]) => buildingID);
this.buildingsFiltered =
this.$static.allBuilding.edges.filter((buildingEdge: IBuildingEdge) => {
Expand Down
6 changes: 2 additions & 4 deletions src/templates/BuildingOwner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ export default class BiggestBuildings extends Vue {
filterBuildings(ownerId: string): void {
// Loop through BuildingsCustomInfo to get the IDs of buildings we are looking for
const ownerBuildingsSlugs: Array<string> = Object.entries(BuildingsCustomInfo)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.filter(([ buildingID, buildingInfo ]: [string, IBuildingCustomInfo]) => {
.filter(([ , buildingInfo ]: [string, IBuildingCustomInfo]) => {
return buildingInfo.owner === ownerId;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
}).map(([ buildingID, buildingInfo ]: [string, IBuildingCustomInfo]) => buildingID);
}).map(([ buildingID ]: [string, IBuildingCustomInfo]) => buildingID);
this.buildingsFiltered =
this.$static.allBuilding.edges.filter((buildingEdge: IBuildingEdge) => {
Expand Down

0 comments on commit 8f1f4e3

Please sign in to comment.