Open CSSLint rule in a new tab

This commit is contained in:
Rob Garrison 2017-08-23 07:56:25 -05:00
parent 2ae5cde274
commit b178d3d8ee

View File

@ -205,7 +205,7 @@ function showLintHelp() {
if (prefs.get('editor.linter') === 'csslint') { if (prefs.get('editor.linter') === 'csslint') {
header = t('issuesHelp', '<a href="https://github.com/CSSLint/csslint" target="_blank">CSSLint</a>'); header = t('issuesHelp', '<a href="https://github.com/CSSLint/csslint" target="_blank">CSSLint</a>');
list += CSSLint.getRules().map(rule => list += CSSLint.getRules().map(rule =>
`<li><b><a href="${rule.url}">${rule.name}</a></b><br>${rule.desc}</li>` `<li><b><a target="_blank" href="${rule.url}">${rule.name}</a></b><br>${rule.desc}</li>`
).join(''); ).join('');
} else { } else {
const rules = []; const rules = [];