From c6914a8a7a9b698fe49ba792e2d2243faba5a53d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Sep 2026 13:21:45 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump eslint-plugin-unicorn from 75.0.0 to 76.0.0 Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 75.0.0 to 76.0.0. - [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases) - [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v75.0.0...v76.0.0) --- updated-dependencies: - dependency-name: eslint-plugin-unicorn dependency-version: 76.0.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- pnpm-lock.yaml | 66 +++++++++++++++++++++++++------------------------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 701321c..4bb9bda 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "eslint-config-prettier": "^10.1.8", "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import-x": "^4.16.2", - "eslint-plugin-unicorn": "^75.0.0", + "eslint-plugin-unicorn": "^76.0.0", "husky": "^9.1.7", "lint-staged": "^17.0.5", "prettier": "^3.8.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87d7c0e..c140d8d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,8 +40,8 @@ importers: specifier: ^4.16.2 version: 4.17.1(@typescript-eslint/utils@8.70.0(@typescript/typescript6@6.0.2)(eslint@10.11.0))(eslint@10.11.0) eslint-plugin-unicorn: - specifier: ^75.0.0 - version: 75.0.0(eslint@10.11.0) + specifier: ^76.0.0 + version: 76.0.0(eslint@10.11.0) husky: specifier: ^9.1.7 version: 9.1.7 @@ -131,8 +131,8 @@ packages: resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} - '@eslint/css-tree@4.1.0': - resolution: {integrity: sha512-cg0ohyrAG3swyGqt8t1K/OK97DqBw/ftDvlvyY1fmEst5B40UOmsimwLENq74z2dyw5CDM+3zJIW+CV2nFNDdA==} + '@eslint/css-tree@4.1.1': + resolution: {integrity: sha512-A+s89eP+yDAPkKjnIOfjlkGifg5J7GPn01nWx14UjBVWktfkxOU4975F9ZZ13xNxkGiblNcBaAqgKhnQrW6SWA==} engines: {node: ^20.19.0 || ^22.13.0 || >=24} '@eslint/js@10.0.1': @@ -968,8 +968,8 @@ packages: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} - baseline-browser-mapping@2.11.24: - resolution: {integrity: sha512-hYrgxie335U08WqICoGqKRzV1HFXv6zdxwJE4ekCb80CM9a0SVVsN4QPwT67RraRo+9h8IATk6uxHJw7QSkdOg==} + baseline-browser-mapping@2.11.25: + resolution: {integrity: sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==} engines: {node: '>=6.0.0'} hasBin: true @@ -982,8 +982,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true - builtin-modules@5.3.0: - resolution: {integrity: sha512-hMQUl2bUFG339QygPM97E+mc8OY1IAchORZxm4a/frcYwKzozMzRVDBwHW0NjOqGElLm2O37AVQE8ikxlZHrMQ==} + builtin-modules@5.4.0: + resolution: {integrity: sha512-JCWSCdun+4Ovd9BhM/Vtlmwb7oD6Wl4YiPRXXwhAuwlPhW1un/MKgXn7GZoFm53ginnoNzus69V8JWx0K393jg==} engines: {node: '>=18.20'} cac@7.0.0: @@ -1051,8 +1051,8 @@ packages: oxc-resolver: optional: true - electron-to-chromium@1.5.430: - resolution: {integrity: sha512-e1QEj72Y4zd8RlNZVmoTg+iCOSVwpk05IOiiQwdrkwCSVlZfPthevErhE+nckGd2YbsXfp1SkisznhGVIXP2NQ==} + electron-to-chromium@1.5.433: + resolution: {integrity: sha512-5lCAbyZBjtmUt/RAGHRqrL2q0oEFRThDAsZHHDn9XHa89Qw7gMYOeSicBTy+AHfvo0r6vwsZvqNJTQIQy1BLzA==} empathic@2.0.1: resolution: {integrity: sha512-YGRs8knHhKHVShLkFET/rWAU8kmHbOV5LwN938RHI0pljAJ1Gf6SzXsSmRaEzcXTtOOmVqJ5+WtQPL5uigY50Q==} @@ -1118,8 +1118,8 @@ packages: eslint-import-resolver-node: optional: true - eslint-plugin-unicorn@75.0.0: - resolution: {integrity: sha512-72I7eSn+/z5CpgValFBl9mp2JE5UPD+nUUyB/VIGUMF1rCP1i37mA05zfIAVIU312A+qCZ38T8tSZr3oaMv4Mw==} + eslint-plugin-unicorn@76.0.0: + resolution: {integrity: sha512-3ywJrCMHKYhcBP5yFzGaOOX3dY7+iR3hvpuoS/0EnhRFgVWLejly+t4fOdJvWQxJdHZl1C+QBW7hybXPDld4Pw==} engines: {node: '>=22'} peerDependencies: eslint: '>=10.4' @@ -1408,8 +1408,8 @@ packages: resolution: {integrity: sha512-RCEsPjR+sr0x+AuYp601tKTkgFG4YEPLCzHST3cQ/fhlJkqAkz1L2/Qbp1j9qw5SBwQHFBoW8+hoN5xssOF0Tw==} hasBin: true - mdn-data@2.34.0: - resolution: {integrity: sha512-OgIlLv0NxJKVW4GTSAoEgpRGd4F2XCqGinK0MsMlBCCS/Zcm2/LsbercNWNA7PeMMcjl75NnI97eqyo7zkdxWA==} + mdn-data@2.35.0: + resolution: {integrity: sha512-k+1+dEIm2z/BEfdvYzT/fIyAGeDBo/1AJNJI4ilFXJRYoxP/3Ds+GP8shAOIq8jYXY9N5nGB3Ag104NsagmLAA==} mdurl@2.0.0: resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} @@ -1438,8 +1438,8 @@ packages: natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - node-releases@2.0.55: - resolution: {integrity: sha512-mIrE/Cw9y+9Au6dS5vDKDhQza9YvG6w+ZrS6X+ZzA7yFW/soAeaups4Qzn1bL6g5FVy8WtP79+0j82oPIbqRjQ==} + node-releases@2.0.56: + resolution: {integrity: sha512-x0InOIyzgdk+eyaWaRJFH5snEtiImgBgblZ2CyPrLmqqcuMQkEvcDPHbzqbD8eDsSeJbVOjn+crzyzHaM4D+/A==} engines: {node: '>=18'} obug@2.2.1: @@ -1509,8 +1509,8 @@ packages: resolution: {integrity: sha512-Y3NoRtprEEZQD8RfxMCfS0ZTqc4e+i18OrXEXAvpM6TfC/3y+0L5rNbZiSnbBBEkDfFzbpd8o+cE8q3/anjMGA==} engines: {node: '>=22'} - regjsparser@0.13.2: - resolution: {integrity: sha512-NgRBy2Nx/bE+9F27nVHnqcN5HjyLmecqsqx2PJHu3/IEtADD4WuxuXIVExD5PoSDFVrl78dOonfcOe5O+5nbzQ==} + regjsparser@0.13.3: + resolution: {integrity: sha512-ycwFAS14Jw4mppvmK4GR/J6u3WpWpjkEApehuHtLc/8VpPNpDMbQ4WjqwplXifGeyKOzHSFLmSPqzksDQE2Sfg==} hasBin: true reserved-identifiers@1.2.0: @@ -1895,9 +1895,9 @@ snapshots: dependencies: '@types/json-schema': 7.0.15 - '@eslint/css-tree@4.1.0': + '@eslint/css-tree@4.1.1': dependencies: - mdn-data: 2.34.0 + mdn-data: 2.35.0 source-map-js: 1.2.1 '@eslint/js@10.0.1(eslint@10.11.0)': @@ -2486,7 +2486,7 @@ snapshots: balanced-match@4.0.4: {} - baseline-browser-mapping@2.11.24: {} + baseline-browser-mapping@2.11.25: {} brace-expansion@5.0.12: dependencies: @@ -2494,13 +2494,13 @@ snapshots: browserslist@4.29.0: dependencies: - baseline-browser-mapping: 2.11.24 + baseline-browser-mapping: 2.11.25 caniuse-lite: 1.0.30001810 - electron-to-chromium: 1.5.430 - node-releases: 2.0.55 + electron-to-chromium: 1.5.433 + node-releases: 2.0.56 update-browserslist-db: 1.3.3(browserslist@4.29.0) - builtin-modules@5.3.0: {} + builtin-modules@5.4.0: {} cac@7.0.0: {} @@ -2546,7 +2546,7 @@ snapshots: dts-resolver@3.0.0: {} - electron-to-chromium@1.5.430: {} + electron-to-chromium@1.5.433: {} empathic@2.0.1: {} @@ -2603,10 +2603,10 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-unicorn@75.0.0(eslint@10.11.0): + eslint-plugin-unicorn@76.0.0(eslint@10.11.0): dependencies: '@eslint-community/eslint-utils': 4.10.1(eslint@10.11.0) - '@eslint/css-tree': 4.1.0 + '@eslint/css-tree': 4.1.1 browserslist: 4.29.0 change-case: 5.4.4 ci-info: 4.4.0 @@ -2621,7 +2621,7 @@ snapshots: is-builtin-module: 5.0.0 pluralize: 8.0.0 quote-js-string: 0.1.0 - regjsparser: 0.13.2 + regjsparser: 0.13.3 reserved-identifiers: 1.2.0 semver: 7.8.5 strip-indent: 4.1.1 @@ -2771,7 +2771,7 @@ snapshots: is-builtin-module@5.0.0: dependencies: - builtin-modules: 5.3.0 + builtin-modules: 5.4.0 is-bun-module@2.0.0: dependencies: @@ -2888,7 +2888,7 @@ snapshots: punycode.js: 2.3.1 uc.micro: 2.1.0 - mdn-data@2.34.0: {} + mdn-data@2.35.0: {} mdurl@2.0.0: {} @@ -2908,7 +2908,7 @@ snapshots: natural-compare@1.4.0: {} - node-releases@2.0.55: {} + node-releases@2.0.56: {} obug@2.2.1: {} @@ -2961,7 +2961,7 @@ snapshots: quote-js-string@0.1.0: {} - regjsparser@0.13.2: + regjsparser@0.13.3: dependencies: jsesc: 3.1.0 From e10b831f4f7b7ed8cee30ae4d6094bc106c5bc99 Mon Sep 17 00:00:00 2001 From: Adrian de la Rosa Date: Thu, 24 Sep 2026 19:06:32 +0200 Subject: [PATCH 2/2] chore: resolve eslint-plugin-unicorn 76 lint errors --- src/position.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/position.ts b/src/position.ts index ca2a7da..fc84c50 100644 --- a/src/position.ts +++ b/src/position.ts @@ -325,9 +325,9 @@ export class Position { if (nonKingPieces.length === 1) { const first = nonKingPieces[0]; - return first === undefined - ? false - : first.type === BISHOP || first.type === KNIGHT; + return ( + first !== undefined && (first.type === BISHOP || first.type === KNIGHT) + ); } const isAllBishops = nonKingPieces.every((p) => p.type === BISHOP); @@ -403,9 +403,10 @@ export class Position { } } - return opponentKingSquare === undefined - ? false - : !this.#isSquareAttackedBy(opponentKingSquare, opponentColor, this.turn); + return ( + opponentKingSquare !== undefined && + !this.#isSquareAttackedBy(opponentKingSquare, opponentColor, this.turn) + ); } /**