Skip to content

Commit 6bb91a8

Browse files
authored
chore: format and update prettier ignore rules (#3450)
1 parent 2a46afc commit 6bb91a8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/pr-comment-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
}
3333
})
3434
35-
let next_action = ''
35+
let next_action = ''
3636
if (isReviewer) {
3737
const body = context.payload.comment.body
3838
core.info(`body: ${body}`)
@@ -41,7 +41,7 @@ jobs:
4141
}
4242
if (body.startsWith('/update-snapshot')) {
4343
next_action='update-snapshot'
44-
}
44+
}
4545
} else {
4646
core.warning('You are not collaborator');
4747
}

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
**/*.md
1+
**/*.md
2+
src/_common

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
}
117117
},
118118
"lint-staged": {
119-
"{src,example,script}/**/*.{js,ts,wxml,html,json,less}": [
119+
"{src,example,script}/**/*.{js,ts,wxml,wxss,html,json,less}": [
120120
"prettier --write"
121121
],
122122
"{src,example}/**/*.{js,ts}": [
@@ -127,4 +127,4 @@
127127
"dayjs": "^1.10.7",
128128
"tinycolor2": "^1.4.2"
129129
}
130-
}
130+
}

src/avatar/avatar.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ module.exports = {
1212
},
1313

1414
getSize: function (size = 'medium', systemInfo) {
15-
var res = getRegExp('^([0-9]+)(px|rpx)$').exec(size);;
15+
var res = getRegExp('^([0-9]+)(px|rpx)$').exec(size);
1616

1717
if (res && res.length >= 3) {
1818
var px = res[1];
1919
if (res[2] === 'rpx') {
20-
px = Math.floor((systemInfo.windowWidth * res[1]) / 750);
20+
px = Math.floor((systemInfo.windowWidth * res[1]) / 750);
2121
}
2222

2323
return 'width:' + size + ';height:' + size + ';font-size:' + ((px / 8) * 3 + 2) + 'px';

0 commit comments

Comments
 (0)