Skip to content

Commit 8f2010d

Browse files
committed
fix: automatically fix some lint warnings
1 parent f04740e commit 8f2010d

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/core/event/scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import Tweezer from 'tweezer.js';
12
import { isMobile } from '../util/env';
23
import * as dom from '../util/dom';
34
import config from '../config';
4-
import Tweezer from 'tweezer.js';
55

66
const nav = {};
77
let hoverOver = false;

src/core/global-api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import prism from 'prismjs';
2+
import marked from 'marked';
13
import * as util from './util';
24
import * as dom from './util/dom';
35
import { Compiler } from './render/compiler';
46
import { slugify } from './render/slugify';
57
import { get } from './fetch/ajax';
6-
import prism from 'prismjs';
7-
import marked from 'marked';
88

99
export default function() {
1010
window.Docsify = {

src/core/render/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import marked from 'marked';
12
import { isAbsolutePath, getPath, getParentPath } from '../router/util';
23
import { isFn, merge, cached, isPrimitive } from '../util/core';
34
import { tree as treeTpl } from './tpl';
@@ -11,7 +12,6 @@ import { paragraphCompiler } from './compiler/paragraph';
1112
import { taskListCompiler } from './compiler/taskList';
1213
import { taskListItemCompiler } from './compiler/taskListItem';
1314
import { linkCompiler } from './compiler/link';
14-
import marked from 'marked';
1515

1616
const cachedLinks = {};
1717

src/core/render/embed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import stripIndent from 'strip-indent';
12
import { get } from '../fetch/ajax';
23
import { merge } from '../util/core';
3-
import stripIndent from 'strip-indent';
44

55
const cached = {};
66

src/core/render/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/* eslint-disable no-unused-vars */
2+
import DOMPurify from 'dompurify';
3+
import tinydate from 'tinydate';
24
import * as dom from '../util/dom';
35
import cssVars from '../util/polyfill/css-vars';
46
import { callHook } from '../init/lifecycle';
@@ -10,8 +12,6 @@ import { scrollActiveSidebar } from '../event/scroll';
1012
import { Compiler } from './compiler';
1113
import * as tpl from './tpl';
1214
import { prerenderEmbed } from './embed';
13-
import DOMPurify from 'dompurify';
14-
import tinydate from 'tinydate';
1515

1616
function executeScript() {
1717
const script = dom

test/unit/base.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
require = require('esm')(
33
module /* , options */
44
); /* eslint-disable-line no-global-assign */
5-
const { History } = require('../../src/core/router/history/base');
65
const { expect } = require('chai');
6+
const { History } = require('../../src/core/router/history/base');
77

88
class MockHistory extends History {
99
parse(path) {

test/unit/render.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const { init, expectSameDom } = require('../_helper');
21
const { expect } = require('chai');
2+
const { init, expectSameDom } = require('../_helper');
33

44
describe('render', function() {
55
it('important content (tips)', async function() {

test/unit/util.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
require = require('esm')(
33
module /* , options */
44
); /* eslint-disable-line no-global-assign */
5-
const { resolvePath } = require('../../src/core/router/util');
65
const { expect } = require('chai');
6+
const { resolvePath } = require('../../src/core/router/util');
77

88
describe('router/util', function() {
99
it('resolvePath', async function() {

0 commit comments

Comments
 (0)