mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: apply eslint edits
This commit is contained in:
63 files changed
+47
-96
No files matched your search
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-lone-blocks */
|
||||
import $ from 'jquery';
|
||||
import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
@@ -208,7 +209,7 @@ export default class Calendar {
|
||||
|
||||
const now = moment();
|
||||
days.forEach((day) => {
|
||||
day.current = day.date.isSame(now, 'day'); // eslint-disable-line no-param-reassign
|
||||
day.current = day.date.isSame(now, 'day');
|
||||
});
|
||||
|
||||
const daysByWeek = _.chunk(days, 7);
|
||||
|
||||
Reference in new issue
Block a user