chore(deps-dev): bump prettier from 1.19.1 to 2.0.2

This commit is contained in:
DIYgod
2020-04-02 21:21:46 +08:00
parent 27e4a7c151
commit 0e7b14e718
471 changed files with 1237 additions and 4457 deletions

View File

@@ -21,7 +21,7 @@ module.exports = async (ctx) => {
const $ = cheerio.load(response.data);
const items = $('a.storylink')
.map(function() {
.map(function () {
return {
title: $(this).text(),
link: $(this).attr('href'),
@@ -31,11 +31,11 @@ module.exports = async (ctx) => {
})
.get();
$('a.hnuser').each(function(i) {
$('a.hnuser').each(function (i) {
items[i].author = $(this).text();
});
$('tr.athing').each(function(i) {
$('tr.athing').each(function (i) {
const commURL = `${host}/item?id=` + $(this).attr('id');
const item = items[i];