Skip to content
This repository has been archived by the owner on Jul 17, 2021. It is now read-only.

Commit

Permalink
Use import type { default as } to avoid eslint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcain committed Jan 30, 2021
1 parent 9ff851b commit a9bb991
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/* eslint-disable */
import type moment from 'moment';
import type { WeekSpec } from 'moment';
/* eslint-enable */

import {
buyMeACoffee,
checkboxIcon,
Expand All @@ -22,7 +17,7 @@ import { TaskView, TaskViewType } from './task-view';
import TaskMove from './ui/TaskMove.svelte';
import TaskRepeat from './ui/TaskRepeat.svelte';
import { VaultIntermediate } from './vault';

import type { default as MomentType, WeekSpec } from 'moment';
import {
addIcon,
App,
Expand All @@ -45,7 +40,7 @@ import type { IWeekStartOption } from 'obsidian-calendar-ui';

declare global {
interface Window {
moment: typeof moment;
moment: typeof MomentType;
_bundledLocaleWeekSpec: WeekSpec;
}
}
Expand Down

0 comments on commit a9bb991

Please sign in to comment.