Add linter and minor bug fixes (#107)

This commit is contained in:
Simon Lecoq authored and GitHub committed 2021-02-05 23:45:48 +01:00
1 parent 61e2f6e1a1
commit 882a93dea5
74 files changed
+1544 -712

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
//Setup
export default async function ({login, graphql, data, imports, q, queries, account}, {enabled = false} = {}) {
export default async function({login, graphql, data, imports, q, queries, account}, {enabled = false} = {}) {
//Plugin execution
try {
//Check if plugin is enabled and requirements are met
@@ -41,7 +41,7 @@
increments.max = Math.max(...Object.values(increments.dates))
//Compute total stargazers
let stargazers = data.computed.repositories.stargazers
let {stargazers} = data.computed.repositories
const total = {dates:{...increments.dates}, max:NaN, min:NaN}
{
const dates = Object.keys(total.dates)