chore(deps-dev): bump eslint-plugin-unicorn from 55.0.0 to 56.0.0 (#17000)
* chore(deps-dev): bump eslint-plugin-unicorn from 55.0.0 to 56.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 55.0.0 to 56.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v55.0.0...v56.0.0) --- updated-dependencies: - dependency-name: eslint-plugin-unicorn dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: fix pnpm install * style(eslint): ignore `prefer-global-this` for puppeteer --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
63f1f837b7
commit
54bd7e7705
|
|
@ -179,6 +179,7 @@ export default [{
|
|||
}],
|
||||
|
||||
'unicorn/prefer-code-point': 'warn',
|
||||
'unicorn/prefer-global-this': 'off',
|
||||
'unicorn/prefer-logical-operator-over-ternary': 'warn',
|
||||
'unicorn/prefer-module': 'off',
|
||||
'unicorn/prefer-node-protocol': 'off',
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ async function handler(ctx) {
|
|||
title: $(item).text(),
|
||||
}))
|
||||
.get()
|
||||
.slice(0, ctx.req.query('limit') ? (Number.parseInt(ctx.req.query('limit')) > 125 ? 125 : Number.parseInt(ctx.req.query('limit'))) : 50);
|
||||
.slice(0, ctx.req.query('limit') ? Math.min(Number.parseInt(ctx.req.query('limit')), 125) : 50);
|
||||
|
||||
const items = await Promise.all(
|
||||
list.map((item) =>
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ async function handler(ctx) {
|
|||
link: rootUrl + $(item).attr('href'),
|
||||
}))
|
||||
.get()
|
||||
.slice(0, ctx.req.query('limit') ? (Number.parseInt(ctx.req.query('limit')) > 20 ? 20 : Number.parseInt(ctx.req.query('limit'))) : 20);
|
||||
.slice(0, ctx.req.query('limit') ? Math.min(Number.parseInt(ctx.req.query('limit')), 20) : 20);
|
||||
|
||||
const items = await Promise.all(
|
||||
list.map((item) =>
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ async function handler(ctx) {
|
|||
const repo = ctx.req.param('repo');
|
||||
const state = ctx.req.param('state');
|
||||
const labels = ctx.req.param('labels');
|
||||
const limit = ctx.req.query('limit') ? (Number.parseInt(ctx.req.query('limit')) > 100 ? 100 : Number.parseInt(ctx.req.query('limit'))) : 100;
|
||||
const limit = ctx.req.query('limit') ? Math.min(Number.parseInt(ctx.req.query('limit')), 100) : 100;
|
||||
|
||||
const host = `https://github.com/${user}/${repo}/issues`;
|
||||
const url = `https://api.github.com/repos/${user}/${repo}/issues`;
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ async function handler(ctx) {
|
|||
labels,
|
||||
sort: 'created',
|
||||
direction: 'desc',
|
||||
per_page: ctx.req.query('limit') ? (Number.parseInt(ctx.req.query('limit')) <= 100 ? Number.parseInt(ctx.req.query('limit')) : 100) : 100,
|
||||
per_page: ctx.req.query('limit') ? Math.min(Number.parseInt(ctx.req.query('limit')), 100) : 100,
|
||||
},
|
||||
headers,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ async function handler(ctx) {
|
|||
|
||||
for (const i of item.items) {
|
||||
const newPubDate = new Date(i.publish_time);
|
||||
pubDate = pubDate > newPubDate ? pubDate : newPubDate;
|
||||
pubDate = Math.max(pubDate, newPubDate);
|
||||
description += `<a href="${rootUrl}/zaixianke/content.html?id=${i.id}">${i.title}</a><br>`;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ async function handler(ctx) {
|
|||
const items = chapters.map((element) => genResult(element));
|
||||
let itemsLen = items.length;
|
||||
if (chapterCnt > 0) {
|
||||
itemsLen = chapterCnt < $.newChapterCnt ? $.newChapterCnt : chapterCnt;
|
||||
itemsLen = Math.max(chapterCnt, $.newChapterCnt);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@
|
|||
"eslint-nibble": "8.1.0",
|
||||
"eslint-plugin-n": "17.10.3",
|
||||
"eslint-plugin-prettier": "5.2.1",
|
||||
"eslint-plugin-unicorn": "55.0.0",
|
||||
"eslint-plugin-unicorn": "56.0.0",
|
||||
"eslint-plugin-yml": "1.14.0",
|
||||
"fs-extra": "11.2.0",
|
||||
"globals": "15.10.0",
|
||||
|
|
@ -192,7 +192,7 @@
|
|||
"vitest": "2.0.5",
|
||||
"yaml-eslint-parser": "1.2.3"
|
||||
},
|
||||
"packageManager": "pnpm@9.11.0",
|
||||
"packageManager": "pnpm@9.12.0",
|
||||
"engines": {
|
||||
"node": ">=22"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -373,8 +373,8 @@ importers:
|
|||
specifier: 5.2.1
|
||||
version: 5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.11.1))(eslint@9.11.1)(prettier@3.3.3)
|
||||
eslint-plugin-unicorn:
|
||||
specifier: 55.0.0
|
||||
version: 55.0.0(eslint@9.11.1)
|
||||
specifier: 56.0.0
|
||||
version: 56.0.0(eslint@9.11.1)
|
||||
eslint-plugin-yml:
|
||||
specifier: 1.14.0
|
||||
version: 1.14.0(eslint@9.11.1)
|
||||
|
|
@ -2997,8 +2997,8 @@ packages:
|
|||
eslint-config-prettier:
|
||||
optional: true
|
||||
|
||||
eslint-plugin-unicorn@55.0.0:
|
||||
resolution: {integrity: sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==}
|
||||
eslint-plugin-unicorn@56.0.0:
|
||||
resolution: {integrity: sha512-aXpddVz/PQMmd69uxO98PA4iidiVNvA0xOtbpUoz1WhBd4RxOQQYqN618v68drY0hmy5uU2jy1bheKEVWBjlPw==}
|
||||
engines: {node: '>=18.18'}
|
||||
peerDependencies:
|
||||
eslint: '>=8.56.0'
|
||||
|
|
@ -8678,7 +8678,7 @@ snapshots:
|
|||
'@types/eslint': 9.6.1
|
||||
eslint-config-prettier: 9.1.0(eslint@9.11.1)
|
||||
|
||||
eslint-plugin-unicorn@55.0.0(eslint@9.11.1):
|
||||
eslint-plugin-unicorn@56.0.0(eslint@9.11.1):
|
||||
dependencies:
|
||||
'@babel/helper-validator-identifier': 7.25.7
|
||||
'@eslint-community/eslint-utils': 4.4.0(eslint@9.11.1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue