Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow British spelling of 'Licence' #56

Merged
merged 1 commit into from Feb 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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