Skip to content

Commit

Permalink
Chore: remove devDependency common-tags (#11455)
Browse files Browse the repository at this point in the history
this is following #11453.
  • Loading branch information
aladdin-add authored and not-an-aardvark committed Mar 1, 2019
1 parent ee88475 commit aaba636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -81,7 +81,6 @@
"brfs": "^2.0.0",
"chai": "^4.0.1",
"cheerio": "^0.22.0",
"common-tags": "^1.8.0",
"coveralls": "^3.0.1",
"dateformat": "^3.0.3",
"ejs": "^2.6.1",
Expand Down
6 changes: 3 additions & 3 deletions tools/update-readme.js
Expand Up @@ -15,7 +15,7 @@

const path = require("path");
const fs = require("fs");
const { stripIndents } = require("common-tags");
const { unIndent } = require("../tests/lib/rules/_utils");

//-----------------------------------------------------------------------------
// Data
Expand Down Expand Up @@ -50,7 +50,7 @@ delete allSponsors.backers;
*/
function formatTeamMembers(members, label) {
/* eslint-disable indent*/
return stripIndents`<!--${label}start-->
return unIndent`<!--${label}start-->
<table><tbody><tr>${
members.map((member, index) => `<td align="center" valign="top" width="11%">
<a href="https://github.com/${member.username}">
Expand All @@ -71,7 +71,7 @@ function formatSponsors(sponsors) {
const nonEmptySponsors = Object.keys(sponsors).filter(tier => sponsors[tier].length > 0);

/* eslint-disable indent*/
return stripIndents`<!--sponsorsstart-->
return unIndent`<!--sponsorsstart-->
${
nonEmptySponsors.map(tier => `<h3>${tier[0].toUpperCase()}${tier.slice(1)} Sponsors</h3>
<p>${
Expand Down

0 comments on commit aaba636

Please sign in to comment.