From 3d2885ef692aa9b168b4739e37cc86b67b9eb59a Mon Sep 17 00:00:00 2001 From: Thammarith Date: Wed, 27 Feb 2019 14:08:14 +0700 Subject: [PATCH] Add support for British 'licence spelling' (#56) --- rules/license.js | 2 +- rules/toc.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rules/license.js b/rules/license.js index 80ce30c..999aa2f 100644 --- a/rules/license.js +++ b/rules/license.js @@ -8,7 +8,7 @@ const visit = require('unist-util-visit'); module.exports = rule('remark-lint:awesome/license', (ast, file) => { const license = find(ast, node => ( node.type === 'heading' && - toString(node) === 'License' + (toString(node) === 'Licence' || toString(node) === 'License') )); if (!license) { diff --git a/rules/toc.js b/rules/toc.js index bab1bb1..6890916 100644 --- a/rules/toc.js +++ b/rules/toc.js @@ -15,6 +15,7 @@ const maxListItemDepth = 1; const sectionHeadingBlacklist = new Set([ 'Contribute', 'Contributing', + 'Licence', 'License' ]);