🚨 🎨 add new rules & fix linter warnings
This commit is contained in:
committed by
Kevin
parent
6a2e1a58d5
commit
0e12d978bb
@@ -17,7 +17,7 @@ if (!Array.prototype.flat) {
|
||||
return acc
|
||||
}, []) : Array.prototype.slice.call(this)
|
||||
},
|
||||
writable: true
|
||||
writable: true,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -39,14 +39,14 @@ export const state = () => ({
|
||||
cleanTitle,
|
||||
path: `${category.slug}?card=${cleanTitle}`,
|
||||
}
|
||||
})
|
||||
}),
|
||||
})),
|
||||
// List of all tags, duplicates removed
|
||||
tags: [...new Set(
|
||||
resources
|
||||
.map(resource => resource.resources).flat()
|
||||
.map(resource => resource.tags).flat()
|
||||
)]
|
||||
)],
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
@@ -64,9 +64,9 @@ export const getters = {
|
||||
const clone = [...category.resources]
|
||||
return {
|
||||
...category,
|
||||
resources: clone.sort(compareTitles)
|
||||
resources: clone.sort(compareTitles),
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
const compareTitles = (x, y) => {
|
||||
|
||||
Reference in New Issue
Block a user