We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d66521 commit c379156Copy full SHA for c379156
lib/util/Components.js
@@ -20,6 +20,11 @@ class Components {
20
this._list = {};
21
}
22
23
+ static detect(rule) {
24
+ return componentRule.bind(this, rule); // eslint-disable-line no-use-before-define
25
+ }
26
+
27
28
_getId(node) {
29
return node && node.range.join(':');
30
@@ -656,8 +661,4 @@ function componentRule(rule, context) {
656
661
return updatedRuleInstructions;
657
662
658
663
659
-Components.detect = function(rule) {
660
- return componentRule.bind(this, rule);
-};
-
664
module.exports = Components;
0 commit comments