mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-10-20 18:56:29 +00:00
Move to @pezkuwi/dev 0.86 (eslint 10 toolchain)
- @pezkuwi/dev, dev-test, dev-ts ^0.86.2 - addrcheck.spec: optional call instead of a guard expression (@typescript-eslint/prefer-optional-chain) - checkRepoMeta: drop the initial value every path overwrites (no-useless-assignment) - ipfsUpload: drop a disable directive for a rule the toolchain no longer reports
This commit is contained in:
1 parent
3484813cde
commit
d05316750e
5 files changed
+2529
-3279
No files matched your search
+1
-1
@@ -41,7 +41,7 @@
|
|||||||
"dnslink-cloudflare": "^3.0.0"
|
"dnslink-cloudflare": "^3.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@pezkuwi/dev": "^0.85.2",
|
"@pezkuwi/dev": "^0.86.2",
|
||||||
"@types/node": "^22.10.5"
|
"@types/node": "^22.10.5"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ async function loopSome (site: string, matcher: () => Promise<string[] | null>):
|
|||||||
try {
|
try {
|
||||||
const addresses = await matcher();
|
const addresses = await matcher();
|
||||||
|
|
||||||
addresses && addresses.forEach((address): void => {
|
addresses?.forEach((address): void => {
|
||||||
if (address && !found.includes(address)) {
|
if (address && !found.includes(address)) {
|
||||||
found.push(address);
|
found.push(address);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ check('the whole repository agrees on one host', hosts.size === 1, [...hosts]);
|
|||||||
|
|
||||||
// And that host is where the code actually is. Without this the metadata can be
|
// And that host is where the code actually is. Without this the metadata can be
|
||||||
// internally consistent and still point somewhere the code has never been.
|
// internally consistent and still point somewhere the code has never been.
|
||||||
let origin = '';
|
let origin;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
origin = execFileSync('git', ['remote', 'get-url', 'origin'], { encoding: 'utf8' }).trim();
|
origin = execFileSync('git', ['remote', 'get-url', 'origin'], { encoding: 'utf8' }).trim();
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ async function main () {
|
|||||||
await unpin(hash);
|
await unpin(hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line promise/catch-or-return
|
|
||||||
main()
|
main()
|
||||||
.catch(console.error)
|
.catch(console.error)
|
||||||
.finally(() => process.exit());
|
.finally(() => process.exit());
|
||||||
Reference in new issue
Block a user