Skip to content

Commit

Permalink
🆙 update: generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 8, 2019
1 parent a9f07e8 commit 3dee7c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/lib/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-docs-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/<wbr>${rule.name}](./${rule.name}.html)`
const description = rule.description || '(no description)'
return `| ${link} | ${description} | ${mark} |`
Expand Down

0 comments on commit 3dee7c4

Please sign in to comment.