From ea35d7cf34c16983f354ee4400e6e31a752b57c6 Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Mon, 12 Aug 2024 10:13:25 +0200 Subject: [PATCH] chore: deps --- package.json | 1 - scripts/filterBench.script.ts | 2 -- src/array/range.ts | 2 +- src/error/assert.test.ts | 2 -- src/object/object.util.ts | 4 ++-- src/promise/pTimeout.ts | 2 +- yarn.lock | 26 +++++++------------------- 7 files changed, 11 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 99f2d214..7a8e605b 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "zod": "^3.20.2" }, "devDependencies": { - "@biomejs/biome": "^1.8.3", "@naturalcycles/bench-lib": "^3.0.0", "@naturalcycles/dev-lib": "^15.0.3", "@naturalcycles/nodejs-lib": "^13.0.1", diff --git a/scripts/filterBench.script.ts b/scripts/filterBench.script.ts index c58332d3..f419e97f 100644 --- a/scripts/filterBench.script.ts +++ b/scripts/filterBench.script.ts @@ -4,8 +4,6 @@ yarn tsn filterBench */ -/* eslint-disable unused-imports/no-unused-vars */ - import { runBenchScript } from '@naturalcycles/bench-lib' import type { AnyObject } from '../src' import { _filterNullishValues, _range } from '../src' diff --git a/src/array/range.ts b/src/array/range.ts index 172858ae..9d1538c3 100644 --- a/src/array/range.ts +++ b/src/array/range.ts @@ -1,7 +1,7 @@ import { AsyncIterable2 } from '../iter/asyncIterable2' import { Iterable2 } from '../iter/iterable2' -/* eslint-disable no-redeclare, unicorn/no-new-array */ +/* eslint-disable unicorn/no-new-array */ /** * Returns an array with ranges from `from` up to (but not including) `to`. diff --git a/src/error/assert.test.ts b/src/error/assert.test.ts index 0338bf61..f6b98138 100644 --- a/src/error/assert.test.ts +++ b/src/error/assert.test.ts @@ -11,8 +11,6 @@ import { import { AssertionError } from './error.util' import { _try } from './try' -/* eslint-disable no-self-compare */ - test('_assert', () => { // biome-ignore lint/suspicious/noSelfCompare: ok _assert(1 === 1) // should not throw diff --git a/src/object/object.util.ts b/src/object/object.util.ts index 73879890..ce1c589d 100644 --- a/src/object/object.util.ts +++ b/src/object/object.util.ts @@ -332,7 +332,7 @@ export function _unset(obj: T, prop: string): void { if (!_isObject(obj)) { return } - // eslint-disable-next-line no-prototype-builtins + if (obj.hasOwnProperty(prop)) { delete obj[prop] return @@ -470,7 +470,7 @@ export function _deepFreeze(o: any): void { Object.getOwnPropertyNames(o).forEach(prop => { if ( - o.hasOwnProperty(prop) && // eslint-disable-line no-prototype-builtins + o.hasOwnProperty(prop) && o[prop] !== null && (typeof o[prop] === 'object' || typeof o[prop] === 'function') && !Object.isFrozen(o[prop]) diff --git a/src/promise/pTimeout.ts b/src/promise/pTimeout.ts index a9473647..4791c241 100644 --- a/src/promise/pTimeout.ts +++ b/src/promise/pTimeout.ts @@ -72,7 +72,7 @@ export async function pTimeout(fn: AnyAsyncFunction, opt: PTimeoutOptions) const { timeout, name = fn.name || 'pTimeout function', onTimeout } = opt const fakeError = opt.fakeError || new Error('TimeoutError') - // eslint-disable-next-line no-async-promise-executor + // biome-ignore lint/suspicious/noAsyncPromiseExecutor: ok return await new Promise(async (resolve, reject) => { // Prepare the timeout timer const timer = setTimeout(() => { diff --git a/yarn.lock b/yarn.lock index f429aa08..164cc297 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1269,10 +1269,11 @@ typescript "^5.0.2" "@naturalcycles/dev-lib@^15.0.3": - version "15.6.0" - resolved "https://registry.yarnpkg.com/@naturalcycles/dev-lib/-/dev-lib-15.6.0.tgz#50e9128ea72204a26af49156cd2924fd12d8296c" - integrity sha512-slsYobCeIqO9O5bX0EkTJ7BEW8tJWIT3HoQhGoVifTskU1gJM/hnphxOVD4UMMs6aFmvB5stXd0YpOmynWFb4Q== + version "15.9.0" + resolved "https://registry.yarnpkg.com/@naturalcycles/dev-lib/-/dev-lib-15.9.0.tgz#0fdc225b6423c4f1766bc31c0cc5b2c2479e9eca" + integrity sha512-FKDK22KYtKP594AUQIxtnTR56a1nrF2I3Tfho8r8luecH/9uWH6EhczMak3+7e6PdUZlTtkpDYIqXAAiDTcIrA== dependencies: + "@biomejs/biome" "^1.8.3" "@commitlint/cli" "^19.0.0" "@commitlint/config-conventional" "^19.0.0" "@eslint/js" "^9.7.0" @@ -1290,7 +1291,6 @@ eslint-plugin-jsdoc "^50.0.0" eslint-plugin-simple-import-sort "^12.1.1" eslint-plugin-unicorn "^55.0.0" - eslint-plugin-unused-imports "4.0.1" eslint-plugin-vue "^9.0.0" expect-type "^0.19.0" globals "^15.8.0" @@ -2895,9 +2895,9 @@ eslint-plugin-jest@^28.0.0: "@typescript-eslint/utils" "^6.0.0 || ^7.0.0 || ^8.0.0" eslint-plugin-jsdoc@^50.0.0: - version "50.0.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-50.0.0.tgz#0d064e14e1a8a3624c0474359fc51325b38b0fc9" - integrity sha512-czyJ5F7/qY2LIhUD5Bl6q1CCZ8mjvfEA9HQN5nvIp/Pb8VLIlUNd+DMZdA2OKN74QQMS3pobC06hFqAOJyOv5Q== + version "50.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-50.0.1.tgz#4d8484d2268d9b69476f781906422a6d2bfc598a" + integrity sha512-UayhAysIk1Du8InV27WMbV4AMSJSu60+bekmeuGK2OUy4QJSFPr1srYT6AInykGkmMdRuHfDX6Q0tJEr8BtDtg== dependencies: "@es-joy/jsdoccomment" "~0.46.0" are-docs-informative "^0.0.2" @@ -2938,13 +2938,6 @@ eslint-plugin-unicorn@^55.0.0: semver "^7.6.1" strip-indent "^3.0.0" -eslint-plugin-unused-imports@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-unused-imports/-/eslint-plugin-unused-imports-4.0.1.tgz#b78916ecb82ae6d0f54efb33879c6c7ecb52f080" - integrity sha512-rax76s05z64uQgG9YXsWFmXrgjkaK79AvfeAWiSxhPP6RVGxeRaj4+2u+wxxu/mDy2pmJoOy1QTOEALMia2xGQ== - dependencies: - eslint-rule-composer "^0.3.0" - eslint-plugin-vue@^9.0.0: version "9.27.0" resolved "https://registry.yarnpkg.com/eslint-plugin-vue/-/eslint-plugin-vue-9.27.0.tgz#c22dae704a03d9ecefa81364ff89f60ce0481f94" @@ -2959,11 +2952,6 @@ eslint-plugin-vue@^9.0.0: vue-eslint-parser "^9.4.3" xml-name-validator "^4.0.0" -eslint-rule-composer@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/eslint-rule-composer/-/eslint-rule-composer-0.3.0.tgz#79320c927b0c5c0d3d3d2b76c8b4a488f25bbaf9" - integrity sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg== - eslint-scope@^7.1.1: version "7.2.2" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f"