fix: fix lint errors and update headers

This commit is contained in:
2026-01-08 02:04:15 +03:00
parent 0247a5238e
commit 513dc8e57f
30 changed files with 43 additions and 44 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2026 @polkadot/apps authors & contributors
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
const fs = require('node:fs');
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2026 @polkadot/apps authors & contributors
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
const fs = require('node:fs');
+1 -1
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2026 @polkadot/apps authors & contributors
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
const fs = require('node:fs');
+3 -4
View File
@@ -1,15 +1,14 @@
// Copyright 2017-2026 @polkadot/apps authors & contributors
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { formatNumber, stringCamelCase } from '@pezkuwi/util';
import fs from 'node:fs';
import path from 'node:path';
import { formatNumber, stringCamelCase } from '@polkadot/util';
const MAX_SIZE = 48 * 1024;
// FIXME The sorting here and the sorting from linting seems like a mismatch...
const HEADER = '// Copyright 2017-2026 @polkadot/apps authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// Do not edit. Auto-generated via node scripts/imgConvert.mjs\n\n';
const HEADER = '// Copyright 2017-2026 @pezkuwi/apps authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// Do not edit. Auto-generated via node scripts/imgConvert.mjs\n\n';
/** @type {Record<string, string>} */
const MIME = {
+3 -4
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2026 @polkadot/apps authors & contributors
// Copyright 2017-2026 @pezkuwi/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -7,12 +7,11 @@
import CrustPinner from '@crustio/crust-pin';
import PinataSDK from '@pinata/sdk';
// @ts-expect-error No definition file
import { execSync } from '@pezkuwi/dev/scripts/util.mjs';
// @ts-expect-error No definition file
import cloudflare from 'dnslink-cloudflare';
import fs from 'node:fs';
// @ts-expect-error No definition file
import { execSync } from '@polkadot/dev/scripts/util.mjs';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore Using ignore since the file won't be there in dev
import { createWsEndpoints } from '../packages/apps-config/build/endpoints/index.js';
+2 -2
View File
@@ -1,10 +1,10 @@
// Copyright 2017-2026 @polkadot/react-components authors & contributors
// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
const fs = require('node:fs');
const path = require('node:path');
const HEADER = `// Copyright 2017-2026 @polkadot/react-components authors & contributors
const HEADER = `// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Automatically generated, do not edit