diff --git a/package.json b/package.json index 5fea2853749..ce8e7802bc4 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tools/update-readme.js b/tools/update-readme.js index da7ea03a194..42c5415c11c 100644 --- a/tools/update-readme.js +++ b/tools/update-readme.js @@ -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 @@ -50,7 +50,7 @@ delete allSponsors.backers; */ function formatTeamMembers(members, label) { /* eslint-disable indent*/ - return stripIndents` + return unIndent` ${ members.map((member, index) => `
@@ -71,7 +71,7 @@ function formatSponsors(sponsors) { const nonEmptySponsors = Object.keys(sponsors).filter(tier => sponsors[tier].length > 0); /* eslint-disable indent*/ - return stripIndents` + return unIndent` ${ nonEmptySponsors.map(tier => `

${tier[0].toUpperCase()}${tier.slice(1)} Sponsors

${