mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-15 01:30:33 +08:00
style/chore(eslint): enforce new rules (#8040)
* style: prefer object shorthand syntax * refactor: prefer Array#map over Array#forEach * style: prefer arrow callback * chore(eslint): update rules * style: auto fix by eslint
This commit is contained in:
@@ -6,7 +6,7 @@ module.exports = async (ctx) => {
|
||||
const url = `https://m.vuevideo.net/share/user/${userid}`;
|
||||
const response = await got({
|
||||
method: 'get',
|
||||
url: url,
|
||||
url,
|
||||
});
|
||||
|
||||
const data = response.data;
|
||||
@@ -43,8 +43,8 @@ module.exports = async (ctx) => {
|
||||
const single = {
|
||||
title: $('.videoTitle').text(),
|
||||
description,
|
||||
link: link,
|
||||
author: author,
|
||||
link,
|
||||
author,
|
||||
};
|
||||
ctx.cache.set(link, JSON.stringify(single));
|
||||
return Promise.resolve(single);
|
||||
|
||||
Reference in New Issue
Block a user