Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 6a7f380

Browse files
authored
Merge pull request #564 from EnterTheNameHere/patch-1
Update helpers.js
2 parents 9d746aa + 1c5b8ad commit 6a7f380

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

lib/helpers.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,25 @@ const parseResults = (editor, results, filePath, showIgnored) => {
8484
} else {
8585
// Plugin rule
8686
const pluginName = ruleParts[0];
87-
// const ruleName = ruleParts[1];
87+
const ruleName = ruleParts[1];
8888

8989
const linterStylelintURL = 'https://github.com/AtomLinter/linter-stylelint/tree/master/docs';
9090
switch (pluginName) {
9191
case 'plugin':
9292
message.url = `${linterStylelintURL}/noRuleNamespace.md`;
9393
break;
94+
case 'scss':
95+
message.url = `https://github.com/kristerkari/stylelint-scss/blob/master/src/rules/${ruleName}/README.md`;
96+
break;
97+
case 'csstools':
98+
message.url = `https://github.com/csstools/stylelint-${ruleName}/blob/master/README.md`;
99+
break;
100+
case 'color-format':
101+
message.url = 'https://github.com/filipekiss/stylelint-color-format/blob/master/README.md';
102+
break;
103+
case 'scale-unlimited':
104+
message.url = 'https://github.com/AndyOGo/stylelint-declaration-strict-value/blob/master/README.md';
105+
break;
94106
default:
95107
message.url = `${linterStylelintURL}/linkingNewRule.md`;
96108
}

0 commit comments

Comments
 (0)