File tree 4 files changed +15
-12
lines changed 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "rules": {
3
+ "prefer-template": ["off"]
4
+ }
5
+ }
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ function sendMsg(type, data) {
65
65
! ( self instanceof WorkerGlobalScope ) )
66
66
) {
67
67
self . postMessage ( {
68
- type : ` webpack${ type } ` ,
68
+ type : ' webpack' + type ,
69
69
data
70
70
} , '*' ) ;
71
71
}
@@ -109,7 +109,7 @@ const onSocketMsg = {
109
109
log . disableAll ( ) ;
110
110
break ;
111
111
default :
112
- log . error ( ` [WDS] Unknown clientLogLevel ' ${ level } '` ) ;
112
+ log . error ( ' [WDS] Unknown clientLogLevel \'' + level + '\'' ) ;
113
113
}
114
114
} ,
115
115
overlay ( value ) {
@@ -129,7 +129,7 @@ const onSocketMsg = {
129
129
}
130
130
} ,
131
131
'progress-update' : function progressUpdate ( data ) {
132
- if ( useProgress ) log . info ( ` [WDS] ${ data . percent } % - ${ data . msg } .` ) ;
132
+ if ( useProgress ) log . info ( ' [WDS] ' + data . percent + ' % - ' + data . msg + '.' ) ;
133
133
} ,
134
134
ok ( ) {
135
135
sendMsg ( 'Ok' ) ;
@@ -216,7 +216,7 @@ function reloadApp() {
216
216
hotEmitter . emit ( 'webpackHotUpdate' , currentHash ) ;
217
217
if ( typeof self !== 'undefined' && self . window ) {
218
218
// broadcast update to window
219
- self . postMessage ( ` webpackHotUpdate${ currentHash } ` , '*' ) ;
219
+ self . postMessage ( ' webpackHotUpdate' + currentHash , '*' ) ;
220
220
}
221
221
} else {
222
222
log . info ( '[WDS] App updated. Reloading...' ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ $(() => {
66
66
errors ( errors ) {
67
67
status . text ( 'App updated with errors. No reload!' ) ;
68
68
okness . text ( 'Errors while compiling.' ) ;
69
- $errors . text ( `\n ${ stripAnsi ( errors . join ( '\n\n\n' ) ) } \n\n` ) ;
69
+ $errors . text ( '\n' + stripAnsi ( errors . join ( '\n\n\n' ) ) + ' \n\n' ) ;
70
70
header . css ( {
71
71
borderColor : '#ebcb8b'
72
72
} ) ;
@@ -99,7 +99,7 @@ $(() => {
99
99
if ( hot ) {
100
100
status . text ( 'App hot update.' ) ;
101
101
try {
102
- iframe [ 0 ] . contentWindow . postMessage ( ` webpackHotUpdate${ currentHash } ` , '*' ) ;
102
+ iframe [ 0 ] . contentWindow . postMessage ( ' webpackHotUpdate' + currentHash , '*' ) ;
103
103
} catch ( e ) {
104
104
console . warn ( e ) ; // eslint-disable-line
105
105
}
@@ -110,7 +110,7 @@ $(() => {
110
110
borderColor : '#96b5b4'
111
111
} ) ;
112
112
try {
113
- let old = ` ${ iframe [ 0 ] . contentWindow . location } ` ;
113
+ let old = iframe [ 0 ] . contentWindow . location + '' ;
114
114
if ( old . indexOf ( 'about' ) === 0 ) old = null ;
115
115
iframe . attr ( 'src' , old || ( contentPage + window . location . hash ) ) ;
116
116
if ( old ) {
Original file line number Diff line number Diff line change @@ -98,11 +98,9 @@ function ensureOverlayDivExists(onOverlayDivReady) {
98
98
function showMessageOverlay ( message ) {
99
99
ensureOverlayDivExists ( ( div ) => {
100
100
// Make it look similar to our terminal.
101
- div . innerHTML =
102
- `<span style="color: #${
103
- colors . red
104
- } ">Failed to compile.</span><br><br>${
105
- ansiHTML ( entities . encode ( message ) ) } `;
101
+ div . innerHTML = '<span style="color: #' + colors . red +
102
+ '">Failed to compile.</span><br><br>' +
103
+ ansiHTML ( entities . encode ( message ) ) ;
106
104
} ) ;
107
105
}
108
106
You can’t perform that action at this time.
0 commit comments