Fixed Codacy issues

Also added specification link in JSON files
This commit is contained in:
Angelos Chalaris
2018-05-30 19:51:47 +03:00
parent 34fa03ec33
commit 5040461a9f
4 changed files with 22 additions and 10 deletions

View File

@ -38,8 +38,11 @@ let snippetData = {
archived: false,
hash: util.hashData(snippets[key])
}
}
})
};
}),
meta: {
specification: 'http://jsonapi.org/format/'
}
};
// Extract archived snippet data
let snippetArchiveData = {
@ -57,8 +60,11 @@ let snippetArchiveData = {
archived: true,
hash: util.hashData(archivedSnippets[key])
}
}
})
};
}),
meta: {
specification: 'http://jsonapi.org/format/'
}
};
// Write files
fs.writeFileSync(path.join(OUTPUT_PATH, 'snippets.json'), JSON.stringify(snippetData, null, 2));