Skip to content

Commit

Permalink
Merge pull request #579 from hogashi/renovate/biomejs-biome-1.x
Browse files Browse the repository at this point in the history
Update dependency @biomejs/biome to v1.4.0
  • Loading branch information
hogashi authored Nov 28, 2023
2 parents ff96910 + 02af445 commit c46e689
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 44 deletions.
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
},
"style": {
"noNonNullAssertion": "off"
},
"complexity": {
"noForEach": "off"
}
},
"ignore": ["__tests__/**/*.snap"]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"dependencies": {
"@babel/polyfill": "7.12.1",
"@babel/runtime": "7.23.4",
"@biomejs/biome": "1.2.2",
"@biomejs/biome": "1.4.0",
"@material-ui/core": "4.12.4",
"react": "17.0.2",
"react-dom": "17.0.2"
Expand Down
15 changes: 7 additions & 8 deletions src/ButtonSetterTweetDeck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,14 @@ export class ButtonSetterTweetDeck implements ButtonSetterType {
const getImgSrcs = (): string[] => {
if (tweet.getElementsByClassName('media-img').length !== 0) {
return [(tweet.getElementsByClassName('media-img')[0] as HTMLImageElement).src];
} else {
return Array.from(tweet.getElementsByClassName('media-image'))
.map((element) => {
const urlstr = this.getBackgroundImageUrl(element as HTMLElement);
// filter で string[] にするためにここで string[] にする……
return urlstr ? urlstr : '';
})
.filter((urlstr) => urlstr !== '');
}
return Array.from(tweet.getElementsByClassName('media-image'))
.map((element) => {
const urlstr = this.getBackgroundImageUrl(element as HTMLElement);
// filter で string[] にするためにここで string[] にする……
return urlstr ? urlstr : '';
})
.filter((urlstr) => urlstr !== '');
};

this.setButton({
Expand Down
70 changes: 35 additions & 35 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1058,47 +1058,47 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@biomejs/biome@1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.2.2.tgz#cfcceae7f4e55ef057a9b9576ef89563ca0c6d07"
integrity sha512-fXwXi56ZdaKO/N3rTmhWw41UxstoviODk+wia4WWNSlm23r8xJ/NxjaZ88scV2IsmsFHqc8rmwb2dkrStAdIEw==
"@biomejs/biome@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@biomejs/biome/-/biome-1.4.0.tgz#b512e1e7a4f3ec0bc0aceaa99fab8eded2bd95c9"
integrity sha512-/rDlao6ra38nhxo4IYCqWCzfTJcpMk4YHjSVBI9yN/ifdhnzSwirL25xDVH7G9hZdNhpF9g78FaPJhFa9DX0Cw==
optionalDependencies:
"@biomejs/cli-darwin-arm64" "1.2.2"
"@biomejs/cli-darwin-x64" "1.2.2"
"@biomejs/cli-linux-arm64" "1.2.2"
"@biomejs/cli-linux-x64" "1.2.2"
"@biomejs/cli-win32-arm64" "1.2.2"
"@biomejs/cli-win32-x64" "1.2.2"

"@biomejs/cli-darwin-arm64@1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.2.2.tgz#459a337f574d1a78d9d6a443fc00724d82804ffe"
integrity sha512-Fx1IURKhoqH6wPawtKLT6wcfMSjRRcNK8+VWau0iDOjXvNtjJpSmICbU89B7Vt/gZRwPqkfDMBkFwm6V5vFTSQ==
"@biomejs/cli-darwin-arm64" "1.4.0"
"@biomejs/cli-darwin-x64" "1.4.0"
"@biomejs/cli-linux-arm64" "1.4.0"
"@biomejs/cli-linux-x64" "1.4.0"
"@biomejs/cli-win32-arm64" "1.4.0"
"@biomejs/cli-win32-x64" "1.4.0"

"@biomejs/cli-darwin-arm64@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.4.0.tgz#08e9e19ae72fd980be65307844a71cd7ba96f4f2"
integrity sha512-nBrtVRwr4IlTtxLOHwBwLv1sWvggf9/DnT5/ALIANJZOpoING6u8jHWipods69wK8kGa8Ld7iwHm3W5BrJJFFQ==

"@biomejs/cli-darwin-x64@1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.2.2.tgz#892ea688b5d5ddbca9d0bc33c24aa2840a62b284"
integrity sha512-JNaAFOI/ZisnmzvcFNd73geJxaFaN2L4YsWM6cgBeKyLY/ycl9C/PBTFfEmeB1c7f5XIIal8P2cj47kLJpN5Ig==
"@biomejs/cli-darwin-x64@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.4.0.tgz#ae04f06a4446fa718dfeba863af6250a0b4185e6"
integrity sha512-nny0VgOj3ksUGzU5GblgtQEvrAZFgFe1IJBoYOP978OQdDrg7BpS+GX5udfof87Dl4ZlHPRBU951ceHOxF7BTg==

"@biomejs/cli-linux-arm64@1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.2.2.tgz#b7a00f9d9e999daa36ee4581a37a0b13326ec899"
integrity sha512-JHXRnfhOLx8UO/Fcyn2c5pFRri0XKqRZm2wf5oH5GSfLVpckDw2X15dYGbu3nmfM/3pcAaTV46pUpjrCnaAieg==
"@biomejs/cli-linux-arm64@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.4.0.tgz#40fbd94cff2c8437d18136d25801ead441ac6739"
integrity sha512-gyLkT/Yh9xfW1T9yjQs/2txkCeG0e+LRs0adLugMwN0ptcNTRyusBvUoiHnpB+9rS6hWu9ZCedGMNmKQ8v2GSw==

"@biomejs/cli-linux-x64@1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.2.2.tgz#4c55181f8231e7aa05b2841944a48dd81af443b8"
integrity sha512-5Zr+iM7lUKsw81p9PkXRESuH2/AhRZ6RCWkgE+FSLcxMhXy/4RDR+o2YQDsJM6cWKIzOJM05vDHTGrDq7vXE4A==
"@biomejs/cli-linux-x64@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@biomejs/cli-linux-x64/-/cli-linux-x64-1.4.0.tgz#813d191b020a90aa829a5fc37dfeea393696a0f1"
integrity sha512-LIxTuU2zSbIHM9XDYjQphJ5UU8h2eS7yR8uIvGYSba7Qt9AKqfbenyVJTsVnoj1CXxxgKNVSc/wVmlOlGz5DBQ==

"@biomejs/cli-win32-arm64@1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.2.2.tgz#6fa05d52903c3fff55bd693c5b1ca778504cd4cc"
integrity sha512-HvUcG2p++RvYP0zfOqh+DgiUUH+JI/uETr0kzWlOJ9F3lsG525pkywg4RSd4OvJd7Wpd3wt3UpN/A4IEJaVmbA==
"@biomejs/cli-win32-arm64@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.4.0.tgz#a6edb984d48d9a9db5971e13c3047ab19fd592c2"
integrity sha512-U2jT1/0wZLJIRqnU8qHAfi/A/+yUwlL3sYJgqs+wO0BbR22WGQZlj03u5FdpEoyLXdsLv1pbeIcjNp+V0NYXWA==

"@biomejs/cli-win32-x64@1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.2.2.tgz#583e50d8a1a1cc81381200d3cb2f34669c6afd35"
integrity sha512-bfaFJwqJ9ApFga2o88OaROSd3pasYRzRGXHJWAE9VUUKdSNSTYxHOqVrNvV54yYPtL6Kt9xkuZa4HNu9it3TaA==
"@biomejs/cli-win32-x64@1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@biomejs/cli-win32-x64/-/cli-win32-x64-1.4.0.tgz#0bb1292c5e279198912b6ec35649124ba8349b72"
integrity sha512-gN6DgyyBxIwoCovAUFJHFWVallb0cLosayDRtNyxU3MDv/atZxSXOWQezfVKBIbgmFPxYWJObd+awvbPYXwwww==

"@discoveryjs/json-ext@^0.5.0":
version "0.5.3"
Expand Down

0 comments on commit c46e689

Please sign in to comment.