diff --git a/CHANGELOG.md b/CHANGELOG.md index ec20e1941b..e33ba852b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Fixes: Internal: +- [#663 update Standard to 12.0.1](https://github.com/alphagov/govuk-prototype-kit/pull/663) - [#640 Replace Mocha with Jest](https://github.com/alphagov/govuk-prototype-kit/pull/640) - [#659 Upgrade kit to use Gulp 4](https://github.com/alphagov/govuk-prototype-kit/pull/659) diff --git a/docs/documentation_routes.js b/docs/documentation_routes.js index 9b7439a4d5..4163499008 100644 --- a/docs/documentation_routes.js +++ b/docs/documentation_routes.js @@ -31,7 +31,7 @@ router.get('/install/:page', function (req, res) { redirectMarkdown(req.params.page, res) var doc = fs.readFileSync(path.join(__dirname, '/documentation/install/', req.params.page + '.md'), 'utf8') var html = marked(doc) - res.render('install_template', {'document': html}) + res.render('install_template', { 'document': html }) }) // Redirect to the zip of the latest release of the Prototype Kit on GitHub diff --git a/gulp/sass.js b/gulp/sass.js index 022e9e59fb..463e417707 100644 --- a/gulp/sass.js +++ b/gulp/sass.js @@ -14,7 +14,7 @@ const config = require('./config.json') gulp.task('sass', function () { return gulp.src(config.paths.assets + '/sass/*.scss') .pipe(sourcemaps.init()) - .pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError)) + .pipe(sass({ outputStyle: 'expanded' }).on('error', sass.logError)) .pipe(sourcemaps.write()) .pipe(gulp.dest(config.paths.public + '/stylesheets/')) }) @@ -22,7 +22,7 @@ gulp.task('sass', function () { gulp.task('sass-documentation', function () { return gulp.src(config.paths.docsAssets + '/sass/*.scss') .pipe(sourcemaps.init()) - .pipe(sass({outputStyle: 'expanded'}).on('error', sass.logError)) + .pipe(sass({ outputStyle: 'expanded' }).on('error', sass.logError)) .pipe(sourcemaps.write()) .pipe(gulp.dest(config.paths.public + '/stylesheets/')) }) diff --git a/lib/utils.js b/lib/utils.js index 0f6b4be7c4..b3adf58100 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -148,7 +148,7 @@ exports.getLatestRelease = function () { 'GET', 'https://api.github.com/repos/alphagov/govuk-prototype-kit/releases/latest', { - headers: {'user-agent': 'node.js'} + headers: { 'user-agent': 'node.js' } } ) var data = JSON.parse(res.getBody('utf8')) @@ -213,7 +213,7 @@ exports.matchMdRoutes = function (req, res) { if (fs.existsSync(path.join(__dirname, docsPath, req.params[0] + '.md'), 'utf8')) { var doc = fs.readFileSync(path.join(__dirname, docsPath, req.params[0] + '.md'), 'utf8') var html = marked(doc) - res.render('documentation_template', {'document': html}) + res.render('documentation_template', { 'document': html }) return true } return false diff --git a/package.json b/package.json index c15ad2838a..c2f443c8b3 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ }, "devDependencies": { "jest": "^23.6.0", - "standard": "^11.0.1", + "standard": "^12.0.1", "supertest": "^3.0.0" } }