diff --git a/.pug-lintrc b/.pug-lintrc index bf89f8f45..e51276d4f 100644 --- a/.pug-lintrc +++ b/.pug-lintrc @@ -1,4 +1,6 @@ { "preset": "clock", - "validateIndentation": null + "validateIndentation": null, + "disallowIdLiterals": null, + "disallowAttributeInterpolation": null } diff --git a/lib/plugins/html/templates/layout.jade b/lib/plugins/html/templates/layout.jade index 767184183..bc4b54add 100644 --- a/lib/plugins/html/templates/layout.jade +++ b/lib/plugins/html/templates/layout.jade @@ -1,8 +1,8 @@ doctype html -html(lang="en") +html(lang='en') head title= pageTitle - link(rel="stylesheet", href=cssLink) + link(rel='stylesheet', href=cssLink) block inlineStyles body diff --git a/lib/plugins/html/templates/pages.jade b/lib/plugins/html/templates/pages.jade index 463007aa7..fae875e48 100644 --- a/lib/plugins/html/templates/pages.jade +++ b/lib/plugins/html/templates/pages.jade @@ -8,4 +8,4 @@ block content each pageInfo, url in pages tr td - a(href="#{pageInfo.path}/index.html")= url + a(href='#{pageInfo.path}/index.html')= url diff --git a/lib/plugins/html/templates/url/index.jade b/lib/plugins/html/templates/url/index.jade index dac9fb102..63913752a 100644 --- a/lib/plugins/html/templates/url/index.jade +++ b/lib/plugins/html/templates/url/index.jade @@ -37,4 +37,3 @@ block content if pageInfo.data.webpagetest include ./webpagetest/index.jade - diff --git a/package.json b/package.json index c876888b1..9f5e11691 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "url": "https://github.com/soulgalore/sitespeed.io/issues" }, "scripts": { - "lint": "npm run eslint", + "lint": "npm run eslint && npm run pug-lint", "eslint": "eslint .", "eclint": "eclint check * lib/**/* bin/**/* tools/**/* !*.iml", "eclint:fix": "eclint fix * lib/**/* bin/**/* tools/**/* !*.iml",