mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-15 01:44:12 +03:00
Bump xo to v0.59.3 (#11781)
This commit is contained in:
parent
099de86f12
commit
55b5a43a03
@ -34,7 +34,7 @@
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["sdk.mjs", "sdk.d.ts"],
|
||||
"nodeVersion": ">=14",
|
||||
"nodeVersion": ">=14.13.1",
|
||||
"rules": {
|
||||
"eslint-comments/disable-enable-pair": "off",
|
||||
"unicorn/no-abusive-eslint-disable": "off"
|
||||
|
@ -107,7 +107,7 @@
|
||||
"svgo": "3.2.0",
|
||||
"svgpath": "2.6.0",
|
||||
"typescript": "5.4.5",
|
||||
"xo": "0.58.0"
|
||||
"xo": "0.59.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node scripts/build/package.js",
|
||||
|
@ -13,11 +13,14 @@ const __dirname = getDirnameFromImportMeta(import.meta.url);
|
||||
const rootDirectory = path.resolve(__dirname, '..', '..');
|
||||
const files = ['index.js', 'index.mjs', 'index.d.ts', 'sdk.js'];
|
||||
|
||||
const fileExists = (fpath) =>
|
||||
fs
|
||||
.access(fpath, fs.constants.F_OK)
|
||||
.then(() => true)
|
||||
.catch(() => false);
|
||||
const fileExists = async (fpath) => {
|
||||
try {
|
||||
await fs.access(fpath);
|
||||
return true;
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
Promise.all(
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
import {promises as fs} from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import util from 'node:util';
|
||||
import {format} from 'node:util';
|
||||
import {transform as esbuildTransform} from 'esbuild';
|
||||
import {
|
||||
collator,
|
||||
@ -78,7 +78,7 @@ const licenseToObject = (license) => {
|
||||
* @returns {string} The JavaScript object
|
||||
*/
|
||||
const iconToJsObject = (icon) => {
|
||||
return util.format(
|
||||
return format(
|
||||
iconObjectTemplate,
|
||||
escape(icon.title),
|
||||
escape(icon.slug),
|
||||
|
Loading…
Reference in New Issue
Block a user