chore: prettier source code

This commit is contained in:
chenjiahan
2020-04-02 15:36:02 +08:00
parent 340c56b3b5
commit 2fb5cca49a
93 changed files with 272 additions and 283 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { mount, later, triggerDrag } from '../../../test';
function filter(type, options) {
const mod = type === 'year' ? 10 : 5;
return options.filter(option => option % mod === 0);
return options.filter((option) => option % mod === 0);
}
function formatter(type, value) {
@@ -128,7 +128,7 @@ test('use min-date with filter', async () => {
value: new Date(2020, 0, 0, 0, 0),
filter(type, values) {
if (type === 'minute') {
return values.filter(value => value % 30 === 0);
return values.filter((value) => value % 30 === 0);
}
return values;
+1 -1
View File
@@ -3,7 +3,7 @@ import { mount, later, triggerDrag } from '../../../test';
function filter(type, options) {
const mod = type === 'minute' ? 10 : 5;
return options.filter(option => option % mod === 0);
return options.filter((option) => option % mod === 0);
}
function formatter(type, value) {