Skip to content

Commit

Permalink
fix: fix Codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Sep 26, 2016
1 parent af75ebc commit deb50b6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions dev/main.js
@@ -1,3 +1,4 @@
/* global Vue */
$(function() {
let App = require("./App.vue");

Expand Down
4 changes: 2 additions & 2 deletions dev/utils.js
Expand Up @@ -3,7 +3,7 @@ module.exports = {
filters: {
prettyJSON: function(json) {
if (json) {
json = JSON.stringify(json, undefined, 4);
json = JSON.stringify(json, null, 4);
json = json.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
var cls = "number";
Expand All @@ -24,4 +24,4 @@ module.exports = {
}

}
}
};
24 changes: 12 additions & 12 deletions test/unit/webpack.test.config.js
@@ -1,15 +1,15 @@
var path = require("path");
var webpack = require('webpack');
var sourceDir = path.resolve(__dirname, '../../src');
var webpack = require("webpack");
var sourceDir = path.resolve(__dirname, "../../src");

module.exports = {
devtool: '#inline-source-map',
devtool: "#inline-source-map",

module: {
preLoaders: [
{
test: /\.js$/,
loader: 'isparta',
loader: "isparta",
include: sourceDir,
exclude: /node_modules/
}
Expand Down Expand Up @@ -40,12 +40,12 @@ module.exports = {
},
{
test: /\.(woff2?|svg)$/,
loader: 'url'
//loader: 'url?limit=10000'
loader: "url"
//loader: "url?limit=10000"
},
{
test: /\.(ttf|eot)$/,
loader: 'url'
loader: "url"
}
],
noParse: [
Expand All @@ -54,21 +54,21 @@ module.exports = {
},

resolve: {
packageAlias: 'browser',
packageAlias: "browser",
alias: {
'src': sourceDir,
'sinon': 'sinon/pkg/sinon'
"src": sourceDir,
"sinon": "sinon/pkg/sinon"
}
},
plugins: [
],

vue: {
autoprefixer: {
browsers: ['last 2 versions']
browsers: ["last 2 versions"]
},
loaders: {
js: 'isparta'
js: "isparta"
}
}

Expand Down
2 changes: 1 addition & 1 deletion webpack.build.config.js
Expand Up @@ -49,7 +49,7 @@ module.exports = [
],

module: {
loaders: loaders
loaders
},

vue: {
Expand Down
2 changes: 1 addition & 1 deletion webpack.dev.config.js
Expand Up @@ -51,7 +51,7 @@ module.exports = {
],

module: {
loaders: loaders
loaders
},

resolve: {
Expand Down

0 comments on commit deb50b6

Please sign in to comment.