Skip to content

Commit deb50b6

Browse files
committed
fix: fix Codacy issues
1 parent af75ebc commit deb50b6

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

dev/main.js

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

dev/utils.js

+2-2
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+
};

test/unit/webpack.test.config.js

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
var path = require("path");
2-
var webpack = require('webpack');
3-
var sourceDir = path.resolve(__dirname, '../../src');
2+
var webpack = require("webpack");
3+
var sourceDir = path.resolve(__dirname, "../../src");
44

55
module.exports = {
6-
devtool: '#inline-source-map',
6+
devtool: "#inline-source-map",
77

88
module: {
99
preLoaders: [
1010
{
1111
test: /\.js$/,
12-
loader: 'isparta',
12+
loader: "isparta",
1313
include: sourceDir,
1414
exclude: /node_modules/
1515
}
@@ -40,12 +40,12 @@ module.exports = {
4040
},
4141
{
4242
test: /\.(woff2?|svg)$/,
43-
loader: 'url'
44-
//loader: 'url?limit=10000'
43+
loader: "url"
44+
//loader: "url?limit=10000"
4545
},
4646
{
4747
test: /\.(ttf|eot)$/,
48-
loader: 'url'
48+
loader: "url"
4949
}
5050
],
5151
noParse: [
@@ -54,21 +54,21 @@ module.exports = {
5454
},
5555

5656
resolve: {
57-
packageAlias: 'browser',
57+
packageAlias: "browser",
5858
alias: {
59-
'src': sourceDir,
60-
'sinon': 'sinon/pkg/sinon'
59+
"src": sourceDir,
60+
"sinon": "sinon/pkg/sinon"
6161
}
6262
},
6363
plugins: [
6464
],
6565

6666
vue: {
6767
autoprefixer: {
68-
browsers: ['last 2 versions']
68+
browsers: ["last 2 versions"]
6969
},
7070
loaders: {
71-
js: 'isparta'
71+
js: "isparta"
7272
}
7373
}
7474

webpack.build.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = [
4949
],
5050

5151
module: {
52-
loaders: loaders
52+
loaders
5353
},
5454

5555
vue: {

webpack.dev.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
],
5252

5353
module: {
54-
loaders: loaders
54+
loaders
5555
},
5656

5757
resolve: {

0 commit comments

Comments
 (0)