mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
lint: Re-run eslint --fix
This commit is contained in:
parent
30eadad79d
commit
59c03bde20
6 changed files with 6 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
|||
const superagent = require('superagent');
|
||||
const currentTime = new Date();
|
||||
|
||||
(async() => {
|
||||
(async () => {
|
||||
const res = await superagent.get('https://static.etherpad.org/plugins.full.json');
|
||||
const plugins = JSON.parse(res.text);
|
||||
for (const plugin of Object.keys(plugins)) {
|
||||
|
@ -13,8 +13,8 @@ const currentTime = new Date();
|
|||
const date = new Date(plugins[plugin].time);
|
||||
const diffTime = Math.abs(currentTime - date);
|
||||
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
||||
if (diffDays > (365*2)) {
|
||||
console.log(`${name}, ${plugins[plugin].data.maintainers[0].email}`)
|
||||
if (diffDays > (365 * 2)) {
|
||||
console.log(`${name}, ${plugins[plugin].data.maintainers[0].email}`);
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue