Skip to content

Commit 8973f61

Browse files
committed
fix eslint
1 parent 971a68f commit 8973f61

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

public/js/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web_src/js/draw.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/* globals gitGraph */
22

3-
$(document).ready(function () {
4-
const graphList = [];
3+
$(() => {
4+
const graphList = [];
55

6-
if (!document.getElementById('graph-canvas')) {
7-
return;
8-
}
6+
if (!document.getElementById('graph-canvas')) {
7+
return;
8+
}
99

10-
$("#graph-raw-list li span.node-relation").each(function () {
11-
graphList.push($(this).text());
12-
})
10+
$('#graph-raw-list li span.node-relation').each(function () {
11+
graphList.push($(this).text());
12+
});
1313

14-
gitGraph(document.getElementById('graph-canvas'), graphList);
15-
})
14+
gitGraph(document.getElementById('graph-canvas'), graphList);
15+
});

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
devtool: 'source-map',
1010
output: {
1111
path: path.resolve(__dirname, 'public/js'),
12-
filename: "index.js"
12+
filename: 'index.js'
1313
},
1414
optimization: {
1515
minimize: true,

0 commit comments

Comments
 (0)