Skip to content

Commit e1f5378

Browse files
authored
[browser] eslint more autofix (#100681)
1 parent afbebfe commit e1f5378

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/mono/browser/runtime/.eslintrc.cjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ module.exports = {
5353
],
5454
"brace-style": ["error"],
5555
"eol-last": ["error"],
56-
"space-before-blocks": ["error"],
56+
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }],
5757
"semi-spacing": ["error", { "before": false, "after": true }],
58+
"keyword-spacing": ["error", { "before": true, "after": true, "overrides": { "this": { "before": false } } }],
5859
"no-trailing-spaces": ["error"],
5960
"object-curly-spacing": ["error", "always"],
6061
"array-bracket-spacing": ["error"],
6162
"space-infix-ops": ["error"],
63+
"func-call-spacing": ["error", "never"],
6264
"space-before-function-paren": ["error", "always"],
6365
}
6466
};

src/mono/browser/runtime/hybrid-globalization/calendar.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function getDayNames (locale: string | undefined) : { long: string[], abbreviate
231231
const dayNames = [];
232232
const dayNamesAbb = [];
233233
const dayNamesSS = [];
234-
for(let i = 0; i < 7; i++) {
234+
for (let i = 0; i < 7; i++) {
235235
dayNames[i] = weekDay.toLocaleDateString(locale, { weekday: "long" });
236236
dayNamesAbb[i] = weekDay.toLocaleDateString(locale, { weekday: "short" });
237237
dayNamesSS[i] = weekDay.toLocaleDateString(locale, { weekday: "narrow" });
@@ -251,7 +251,7 @@ function getMonthNames (locale: string | undefined) : { long: string[], abbrevia
251251
const monthsGen: string[] = [];
252252
const monthsAbbGen: string[] = [];
253253
let isChineeseStyle, isShortFormBroken;
254-
for(let i = firstMonthShift; i < 12 + firstMonthShift; i++) {
254+
for (let i = firstMonthShift; i < 12 + firstMonthShift; i++) {
255255
const monthCnt = i % 12;
256256
date.setMonth(monthCnt);
257257

0 commit comments

Comments
 (0)