Skip to content

Commit

Permalink
[browser] eslint more autofix (dotnet#100681)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara authored and matouskozak committed Apr 30, 2024
1 parent 96433fb commit 3e96baf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/mono/browser/runtime/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ module.exports = {
],
"brace-style": ["error"],
"eol-last": ["error"],
"space-before-blocks": ["error"],
"space-before-blocks": ["error", { "functions": "always", "keywords": "always", "classes": "always" }],
"semi-spacing": ["error", { "before": false, "after": true }],
"keyword-spacing": ["error", { "before": true, "after": true, "overrides": { "this": { "before": false } } }],
"no-trailing-spaces": ["error"],
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error"],
"space-infix-ops": ["error"],
"func-call-spacing": ["error", "never"],
"space-before-function-paren": ["error", "always"],
}
};
4 changes: 2 additions & 2 deletions src/mono/browser/runtime/hybrid-globalization/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function getDayNames (locale: string | undefined) : { long: string[], abbreviate
const dayNames = [];
const dayNamesAbb = [];
const dayNamesSS = [];
for(let i = 0; i < 7; i++) {
for (let i = 0; i < 7; i++) {
dayNames[i] = weekDay.toLocaleDateString(locale, { weekday: "long" });
dayNamesAbb[i] = weekDay.toLocaleDateString(locale, { weekday: "short" });
dayNamesSS[i] = weekDay.toLocaleDateString(locale, { weekday: "narrow" });
Expand All @@ -251,7 +251,7 @@ function getMonthNames (locale: string | undefined) : { long: string[], abbrevia
const monthsGen: string[] = [];
const monthsAbbGen: string[] = [];
let isChineeseStyle, isShortFormBroken;
for(let i = firstMonthShift; i < 12 + firstMonthShift; i++) {
for (let i = firstMonthShift; i < 12 + firstMonthShift; i++) {
const monthCnt = i % 12;
date.setMonth(monthCnt);

Expand Down

0 comments on commit 3e96baf

Please sign in to comment.