Skip to content

Commit

Permalink
Fix bug found implementing sindresorhus#887
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 21, 2020
1 parent ee16c4d commit 3605e2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/create-rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function updateReadmeUsage({id}) {
throw new Error('Unexpected content in “readme.md”.');
}

const unicornRuleLines = lines.filter(line => line.startsWith(`${RULE_INDENT}unicorn/`));
const unicornRuleLines = lines.filter(line => line.startsWith(`${RULE_INDENT}"unicorn/`));
let insertIndex;
if (ruleContent.localeCompare(unicornRuleLines[0]) === -1) {
insertIndex = 0;
Expand Down
1 change: 0 additions & 1 deletion scripts/template/rule.js.jst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';

const getDocumentationUrl = require('./utils/get-documentation-url');

const MESSAGE_ID = '<%= id %>';
Expand Down

0 comments on commit 3605e2d

Please sign in to comment.