From 3dee7c49092f724e84803f2a046764d4a15f55ea Mon Sep 17 00:00:00 2001 From: kazuya kawaguchi Date: Fri, 8 Mar 2019 15:53:35 +0900 Subject: [PATCH] :up: update: generation scripts --- scripts/lib/rules.js | 3 +++ scripts/update-docs-index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/lib/rules.js b/scripts/lib/rules.js index 027a2df2..97700f8b 100644 --- a/scripts/lib/rules.js +++ b/scripts/lib/rules.js @@ -26,8 +26,11 @@ const rules = readdirSync(resolve(__dirname, '../../lib/rules')) module.exports = rules module.exports.withCategories = [ + 'Possible Errors' + /* 'Best Practices', 'Stylistic Issues' + */ ].map( category => ({ category, diff --git a/scripts/update-docs-index.js b/scripts/update-docs-index.js index 9d1ad330..8ef359a1 100644 --- a/scripts/update-docs-index.js +++ b/scripts/update-docs-index.js @@ -10,7 +10,7 @@ const { resolve } = require('path') const { withCategories } = require('./lib/rules') function toTableRow (rule) { - const mark = `${rule.recommended ? '🌟' : ''}${rule.fixable ? '✒️' : ''}` + const mark = `${rule.recommended ? ':star:' : ''}${rule.fixable ? ':black_nib:' : ''}` const link = `[vue-i18n/${rule.name}](./${rule.name}.html)` const description = rule.description || '(no description)' return `| ${link} | ${description} | ${mark} |`