Skip to content
Permalink
Browse files

Add support for British 'licence spelling' (#56)

  • Loading branch information
thammarith authored and sindresorhus committed Feb 27, 2019
1 parent 7d4176e commit 3d2885ef692aa9b168b4739e37cc86b67b9eb59a
Showing with 2 additions and 1 deletion.
  1. +1 −1 rules/license.js
  2. +1 −0 rules/toc.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) {
@@ -15,6 +15,7 @@ const maxListItemDepth = 1;
const sectionHeadingBlacklist = new Set([
'Contribute',
'Contributing',
'Licence',
'License'
]);

0 comments on commit 3d2885e

Please sign in to comment.
You can’t perform that action at this time.