From 46b68191d879d899921819c8183cf514203ccaa4 Mon Sep 17 00:00:00 2001 From: Matthew Ma Date: Fri, 22 Sep 2017 16:27:55 -0400 Subject: [PATCH] fixes linting errors --- tutorials/build-website.js | 4 ++-- webpack-website-examples.config.js | 2 +- webpack-website-tutorials.config.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tutorials/build-website.js b/tutorials/build-website.js index 50f5c7249a..45e5045767 100644 --- a/tutorials/build-website.js +++ b/tutorials/build-website.js @@ -31,7 +31,7 @@ glob('tutorials/*/tutorial.json') var pugTemplate = fs.readFileSync(path.relative('.', path.resolve(dir, 'index.pug')), 'utf8'); pugTemplate = pugTemplate.replace('extends ../common/index.pug', 'extends ../common/index-website.pug'); - + var fn = pug.compile(pugTemplate, { pretty: false, filename: path.relative('.', path.resolve(dir, 'index.pug')) @@ -45,7 +45,7 @@ tutorialCss: ${JSON.stringify(json.tutorialCss)} tutorialJs: ${JSON.stringify(json.tutorialJs)} --- ` + html; - fs.writeFileSync(path.resolve(output, 'index.html'),html); + fs.writeFileSync(path.resolve(output, 'index.html'), html); return json; }); diff --git a/webpack-website-examples.config.js b/webpack-website-examples.config.js index ee1bdd7357..efed3c3abe 100644 --- a/webpack-website-examples.config.js +++ b/webpack-website-examples.config.js @@ -5,4 +5,4 @@ var config = require('./webpack-examples.config.js'); config.entry.bundle = './examples/index-website.js'; config.output.path = path.join(__dirname, 'website', 'source', 'examples'); -module.exports = config; \ No newline at end of file +module.exports = config; diff --git a/webpack-website-tutorials.config.js b/webpack-website-tutorials.config.js index ead4fde37d..c7e1f2c878 100644 --- a/webpack-website-tutorials.config.js +++ b/webpack-website-tutorials.config.js @@ -5,4 +5,4 @@ var config = require('./webpack-tutorials.config.js'); config.entry.bundle = './tutorials/index-website.js'; config.output.path = path.join(__dirname, 'website', 'source', 'tutorials'); - module.exports = config; \ No newline at end of file +module.exports = config;