loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'Update dependency eslint-plugin-unicorn to v55 (forgejo)' (#5098) from renovate/forgejo-eslint-plugin-unicorn-55.x into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5098
Reviewed-by: Gusted <gusted@noreply.codeberg.org>

Gusted 1cab8788 a611ad35

+32 -14
+7
.eslintrc.yaml
··· 705 705 unicorn/better-regex: [0] 706 706 unicorn/catch-error-name: [0] 707 707 unicorn/consistent-destructuring: [2] 708 + unicorn/consistent-empty-array-spread: [2] 708 709 unicorn/consistent-function-scoping: [2] 709 710 unicorn/custom-error-definition: [0] 710 711 unicorn/empty-brace-spaces: [2] ··· 731 732 unicorn/no-for-loop: [0] 732 733 unicorn/no-hex-escape: [0] 733 734 unicorn/no-instanceof-array: [0] 735 + unicorn/no-invalid-fetch-options: [2] 734 736 unicorn/no-invalid-remove-event-listener: [2] 735 737 unicorn/no-keyword-prefix: [0] 738 + unicorn/no-length-as-slice-end: [2] 736 739 unicorn/no-lonely-if: [2] 740 + unicorn/no-magic-array-flat-depth: [0] 737 741 unicorn/no-negated-condition: [0] 742 + unicorn/no-negation-in-equality-check: [2] 738 743 unicorn/no-nested-ternary: [0] 739 744 unicorn/no-new-array: [0] 740 745 unicorn/no-new-buffer: [0] ··· 799 804 unicorn/prefer-set-has: [0] 800 805 unicorn/prefer-set-size: [2] 801 806 unicorn/prefer-spread: [0] 807 + unicorn/prefer-string-raw: [0] 802 808 unicorn/prefer-string-replace-all: [0] 803 809 unicorn/prefer-string-slice: [0] 804 810 unicorn/prefer-string-starts-ends-with: [2] 805 811 unicorn/prefer-string-trim-start-end: [2] 812 + unicorn/prefer-structured-clone: [2] 806 813 unicorn/prefer-switch: [0] 807 814 unicorn/prefer-ternary: [0] 808 815 unicorn/prefer-text-content: [2]
+22 -9
package-lock.json
··· 79 79 "eslint-plugin-playwright": "1.6.2", 80 80 "eslint-plugin-regexp": "2.6.0", 81 81 "eslint-plugin-sonarjs": "2.0.1", 82 - "eslint-plugin-unicorn": "52.0.0", 82 + "eslint-plugin-unicorn": "55.0.0", 83 83 "eslint-plugin-vitest": "0.5.4", 84 84 "eslint-plugin-vitest-globals": "1.5.0", 85 85 "eslint-plugin-vue": "9.27.0", ··· 8944 8944 "license": "ISC" 8945 8945 }, 8946 8946 "node_modules/eslint-plugin-unicorn": { 8947 - "version": "52.0.0", 8948 - "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-52.0.0.tgz", 8949 - "integrity": "sha512-1Yzm7/m+0R4djH0tjDjfVei/ju2w3AzUGjG6q8JnuNIL5xIwsflyCooW5sfBvQp2pMYQFSWWCFONsjCax1EHng==", 8947 + "version": "55.0.0", 8948 + "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-55.0.0.tgz", 8949 + "integrity": "sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==", 8950 8950 "dev": true, 8951 8951 "license": "MIT", 8952 8952 "dependencies": { 8953 - "@babel/helper-validator-identifier": "^7.22.20", 8953 + "@babel/helper-validator-identifier": "^7.24.5", 8954 8954 "@eslint-community/eslint-utils": "^4.4.0", 8955 - "@eslint/eslintrc": "^2.1.4", 8956 8955 "ci-info": "^4.0.0", 8957 8956 "clean-regexp": "^1.0.0", 8958 - "core-js-compat": "^3.34.0", 8957 + "core-js-compat": "^3.37.0", 8959 8958 "esquery": "^1.5.0", 8959 + "globals": "^15.7.0", 8960 8960 "indent-string": "^4.0.0", 8961 8961 "is-builtin-module": "^3.2.1", 8962 8962 "jsesc": "^3.0.2", ··· 8964 8964 "read-pkg-up": "^7.0.1", 8965 8965 "regexp-tree": "^0.1.27", 8966 8966 "regjsparser": "^0.10.0", 8967 - "semver": "^7.5.4", 8967 + "semver": "^7.6.1", 8968 8968 "strip-indent": "^3.0.0" 8969 8969 }, 8970 8970 "engines": { 8971 - "node": ">=16" 8971 + "node": ">=18.18" 8972 8972 }, 8973 8973 "funding": { 8974 8974 "url": "https://github.com/sindresorhus/eslint-plugin-unicorn?sponsor=1" 8975 8975 }, 8976 8976 "peerDependencies": { 8977 8977 "eslint": ">=8.56.0" 8978 + } 8979 + }, 8980 + "node_modules/eslint-plugin-unicorn/node_modules/globals": { 8981 + "version": "15.9.0", 8982 + "resolved": "https://registry.npmjs.org/globals/-/globals-15.9.0.tgz", 8983 + "integrity": "sha512-SmSKyLLKFbSr6rptvP8izbyxJL4ILwqO9Jg23UA0sDlGlu58V59D1//I3vlc0KJphVdUR7vMjHIplYnzBxorQA==", 8984 + "dev": true, 8985 + "license": "MIT", 8986 + "engines": { 8987 + "node": ">=18" 8988 + }, 8989 + "funding": { 8990 + "url": "https://github.com/sponsors/sindresorhus" 8978 8991 } 8979 8992 }, 8980 8993 "node_modules/eslint-plugin-vitest": {
+2 -4
package.json
··· 78 78 "eslint-plugin-playwright": "1.6.2", 79 79 "eslint-plugin-regexp": "2.6.0", 80 80 "eslint-plugin-sonarjs": "2.0.1", 81 - "eslint-plugin-unicorn": "52.0.0", 81 + "eslint-plugin-unicorn": "55.0.0", 82 82 "eslint-plugin-vitest": "0.5.4", 83 83 "eslint-plugin-vitest-globals": "1.5.0", 84 84 "eslint-plugin-vue": "9.27.0", ··· 96 96 "vite-string-plugin": "1.3.4", 97 97 "vitest": "2.0.5" 98 98 }, 99 - "browserslist": [ 100 - "defaults" 101 - ] 99 + "browserslist": ["defaults"] 102 100 }
+1 -1
web_src/js/components/DiffCommitSelector.vue
··· 132 132 })); 133 133 this.commits.reverse(); 134 134 this.lastReviewCommitSha = results.last_review_commit_sha || null; 135 - if (this.lastReviewCommitSha && this.commits.findIndex((x) => x.id === this.lastReviewCommitSha) === -1) { 135 + if (this.lastReviewCommitSha && !this.commits.some((x) => x.id === this.lastReviewCommitSha)) { 136 136 // the lastReviewCommit is not available (probably due to a force push) 137 137 // reset the last review commit sha 138 138 this.lastReviewCommitSha = null;