@putout/engine-loader 11.1.0 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,6 +58,7 @@ function splitRule(rule) {
|
|
|
58
58
|
async function loadPlugins({items, loadedRules}) {
|
|
59
59
|
const loadPlugin = createAsyncLoader('plugin');
|
|
60
60
|
const promises = [];
|
|
61
|
+
const enabledRules = [];
|
|
61
62
|
|
|
62
63
|
for (const [rule, itemPlugin] of items) {
|
|
63
64
|
if (!isEnabled(rule, loadedRules))
|
|
@@ -68,13 +69,14 @@ async function loadPlugins({items, loadedRules}) {
|
|
|
68
69
|
const [name] = splitRule(rule);
|
|
69
70
|
const plugin = itemPlugin || loadPlugin(name);
|
|
70
71
|
|
|
72
|
+
enabledRules.push(rule);
|
|
71
73
|
promises.push(plugin);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
const resolvedPlugins = await Promise.all(promises);
|
|
75
77
|
const plugins = [];
|
|
76
78
|
|
|
77
|
-
for (const [i,
|
|
79
|
+
for (const [i, rule] of enabledRules.entries()) {
|
|
78
80
|
const plugin = resolvedPlugins[i];
|
|
79
81
|
|
|
80
82
|
validatePlugin({
|
package/package.json
CHANGED