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' ]);