fix: sonar

This commit is contained in:
gaoxiaolin.gao 2018-11-09 20:03:43 +08:00
parent 399ae140bc
commit b8ece43143
2 changed files with 14 additions and 23 deletions

View File

@ -163,8 +163,7 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
background-color: #f7f7f7;
white-space: nowrap;
}
.CodeMirror-linenumbers {
}
.CodeMirror-linenumber {
padding: 0 3px 0 5px;
min-width: 20px;
@ -242,8 +241,8 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
}
/* Can style cursor different in overwrite (non-insert) mode */
.CodeMirror-overwrite .CodeMirror-cursor {
}
/* .CodeMirror-overwrite .CodeMirror-cursor {
} */
.cm-tab {
display: inline-block;
@ -305,11 +304,11 @@ github.com style (c) Vasily Polovnyov <vast@whiteants.net>
.cm-s-default .cm-def {
color: #00f;
}
.cm-s-default .cm-variable,
/* .cm-s-default .cm-variable,
.cm-s-default .cm-punctuation,
.cm-s-default .cm-property,
.cm-s-default .cm-operator {
}
} */
.cm-s-default .cm-variable-2 {
color: #05a;
}
@ -520,8 +519,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {
padding: 0.1px; /* Force widget margins to stay inside of the container */
}
.CodeMirror-widget {
}
/* .CodeMirror-widget {
} */
.CodeMirror-rtl pre {
direction: rtl;

View File

@ -102,15 +102,10 @@ module.exports = {
'react-dnd',
'reactabular-table',
'reactabular-dnd',
'table-resolver',
'table-resolver'
],
lib2: ['brace', 'json5', 'url', 'axios'],
lib3: [
'mockjs',
'moment',
'recharts'
]
lib3: ['mockjs', 'moment', 'recharts']
}
},
modifyWebpackConfig: function(baseConfig) {
@ -170,8 +165,8 @@ module.exports = {
limit: 8192,
name: ['[path][name].[ext]?[sha256#base64:8]']
}
})
});
baseConfig.module.loaders.push({
test: /\.(sass|scss)$/,
loader: ykit.ExtractTextPlugin.extract(
@ -203,12 +198,9 @@ module.exports = {
);
baseConfig.plugins.push(assetsPluginInstance);
baseConfig.plugins.push(compressPlugin);
baseConfig.plugins.push (
new this.webpack.ContextReplacementPlugin (
/moment[\\\/]locale$/,
/^\.\/(zh-cn|en-gb)$/
)
)
baseConfig.plugins.push(
new this.webpack.ContextReplacementPlugin(/moment[\\\/]locale$/, /^\.\/(zh-cn|en-gb)$/)
);
}
return baseConfig;
}