Skip to content

Commit

Permalink
Add support for British 'licence spelling' (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
thammarith authored and sindresorhus committed Feb 27, 2019
1 parent 7d4176e commit 3d2885e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rules/license.js
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions rules/toc.js
Expand Up @@ -15,6 +15,7 @@ const maxListItemDepth = 1;
const sectionHeadingBlacklist = new Set([
'Contribute',
'Contributing',
'Licence',
'License'
]);

Expand Down

0 comments on commit 3d2885e

Please sign in to comment.