Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6afb9ba

Browse files
committed
fix: fix Codacy issues
1 parent f5fea1c commit 6afb9ba

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* global Vue */
12
$(function() {
23
let App = require("./App.vue");
34

‎utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
filters: {
44
prettyJSON: function(json) {
55
if (json) {
6-
json = JSON.stringify(json, undefined, 4);
6+
json = JSON.stringify(json, null, 4);
77
json = json.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
88
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
99
var cls = "number";
@@ -24,4 +24,4 @@ module.exports = {
2424
}
2525

2626
}
27-
}
27+
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /