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 e3638ab commit a0d47cfCopy full SHA for a0d47cf
lib/util/Components.js
@@ -19,11 +19,6 @@ class Components {
19
this._list = {};
20
}
21
22
- static detect(rule) {
23
- return componentRule.bind(this, rule); // eslint-disable-line no-use-before-define
24
- }
25
-
26
27
_getId(node) {
28
return node && node.range.join(':');
29
@@ -662,4 +657,8 @@ function componentRule(rule, context) {
662
657
return updatedRuleInstructions;
663
658
664
659
665
-module.exports = Components;
660
+module.exports = {
661
+ detect(rule) {
+ return componentRule.bind(this, rule);
+ }
+};
0 commit comments