File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1919 ],
2020 "quotes" : [
2121 " error" ,
22- " single"
22+ " single" ,
23+ {
24+ "allowTemplateLiterals" : true
25+ }
2326 ],
2427 "semi" : [
2528 " error" ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class Application extends events.EventEmitter {
5252 try {
5353 const code = await fsp . readFile ( fileName , 'utf8' ) ;
5454 if ( ! code ) return null ;
55- const src = '\' use strict\ ';\ncontext => ' + code ;
55+ const src = `' use strict';\ncontext => ${ code } ` ;
5656 const options = { filename : fileName , lineOffset : - 1 } ;
5757 const script = new vm . Script ( src , options ) ;
5858 return script . runInContext ( this . sandbox , SCRIPT_OPTIONS ) ;
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ const HEADERS = {
1919 'Strict-Transport-Security' : 'max-age=31536000; includeSubdomains; preload' ,
2020 'Access-Control-Allow-Origin' : '*' ,
2121 'Content-Security-Policy' : [
22- ' default-src \ 'self\'' ,
23- ' style-src \ 'self\ ' https://fonts.googleapis.com' ,
24- ' font-src \ 'self\ ' https://fonts.gstatic.com' ,
22+ ` default-src 'self'` ,
23+ ` style-src 'self' https://fonts.googleapis.com` ,
24+ ` font-src 'self' https://fonts.gstatic.com` ,
2525 ] . join ( '; ' ) ,
2626} ;
2727
You can’t perform that action at this time.
0 commit comments