We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4050cd commit cd80550Copy full SHA for cd80550
tests/helpers/ruleTester.js
@@ -77,7 +77,9 @@ if (semver.major(eslintPkg.version) >= 9) {
77
this[PLUGINS] = {};
78
}
79
80
- const [pluginName, ruleName] = ruleId.split('/');
+ const ruleIdSplit = ruleId.split('/');
81
+ const pluginName = ruleIdSplit[0];
82
+ const ruleName = ruleIdSplit[1];
83
84
if (!this[PLUGINS][pluginName]) {
85
this[PLUGINS][pluginName] = { rules: {} };
0 commit comments