diff --git a/.github/workflows/pr-comment-ci.yml b/.github/workflows/pr-comment-ci.yml index 817425330..c78c55dcd 100644 --- a/.github/workflows/pr-comment-ci.yml +++ b/.github/workflows/pr-comment-ci.yml @@ -32,7 +32,7 @@ jobs: } }) - let next_action = '' + let next_action = '' if (isReviewer) { const body = context.payload.comment.body core.info(`body: ${body}`) @@ -41,7 +41,7 @@ jobs: } if (body.startsWith('/update-snapshot')) { next_action='update-snapshot' - } + } } else { core.warning('You are not collaborator'); } diff --git a/.prettierignore b/.prettierignore index 0a353edc8..22b68aff7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ -**/*.md \ No newline at end of file +**/*.md +src/_common diff --git a/package.json b/package.json index 77fdf39d3..ab5bf1efd 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ } }, "lint-staged": { - "{src,example,script}/**/*.{js,ts,wxml,html,json,less}": [ + "{src,example,script}/**/*.{js,ts,wxml,wxss,html,json,less}": [ "prettier --write" ], "{src,example}/**/*.{js,ts}": [ @@ -127,4 +127,4 @@ "dayjs": "^1.10.7", "tinycolor2": "^1.4.2" } -} +} \ No newline at end of file diff --git a/src/avatar/avatar.wxs b/src/avatar/avatar.wxs index fe59f0835..240a95645 100644 --- a/src/avatar/avatar.wxs +++ b/src/avatar/avatar.wxs @@ -12,12 +12,12 @@ module.exports = { }, getSize: function (size = 'medium', systemInfo) { - var res = getRegExp('^([0-9]+)(px|rpx)$').exec(size);; + var res = getRegExp('^([0-9]+)(px|rpx)$').exec(size); if (res && res.length >= 3) { var px = res[1]; if (res[2] === 'rpx') { - px = Math.floor((systemInfo.windowWidth * res[1]) / 750); + px = Math.floor((systemInfo.windowWidth * res[1]) / 750); } return 'width:' + size + ';height:' + size + ';font-size:' + ((px / 8) * 3 + 2) + 'px';