From d6c052739089a48462aad06c87b56e22bd743f64 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Mon, 1 Feb 2016 22:42:31 +0100 Subject: [PATCH] Improve HTML lint. --- grunt-config/htmllint.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/grunt-config/htmllint.js b/grunt-config/htmllint.js index afd4c00..a2f06e7 100644 --- a/grunt-config/htmllint.js +++ b/grunt-config/htmllint.js @@ -1,6 +1,15 @@ module.exports = { frontend: { - options: {}, + options: { + 'attr-name-style': 'dash', + 'attr-quote-style': 'double', + 'attr-req-value': false, + 'doctype-html5': true, + 'id-class-ignore-regex': '{{.*?}}', + 'id-class-style': 'dash', + 'indent-style': 'spaces', + 'indent-width': 2 + }, src: [ 'accountant/frontend/templates/**/*.html', 'accountant/frontend/static/templates/**/*.html'