mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files * Update eslint plugin * updated files
This commit is contained in:
@@ -52,7 +52,7 @@ module.exports.pitch = function pitch(remainingRequest) {
|
||||
|
||||
const subCache = `subcache ${__dirname} ${remainingRequest}`;
|
||||
|
||||
childCompiler.plugin('compilation', compilation => {
|
||||
childCompiler.plugin('compilation', (compilation) => {
|
||||
if (!compilation.cache) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
|
||||
module.exports = function(options) {
|
||||
module.exports = function (options) {
|
||||
return {
|
||||
test: /\.scss$/,
|
||||
use: [
|
||||
|
||||
@@ -117,8 +117,8 @@ module.exports = merge(common, {
|
||||
excludeChunks: ['manifest', 'dark', 'light'],
|
||||
chunksSortMode: 'none',
|
||||
}),
|
||||
function() {
|
||||
this.hooks.done.tap('Done', function(stats) {
|
||||
function () {
|
||||
this.hooks.done.tap('Done', function (stats) {
|
||||
if (stats.compilation.errors && stats.compilation.errors.length) {
|
||||
console.log(stats.compilation.errors);
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user