@putout/engine-runner 28.0.2 → 28.1.0
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.
- package/lib/merge-visitors.js +4 -1
- package/lib/validate.js +1 -1
- package/package.json +1 -1
package/lib/merge-visitors.js
CHANGED
|
@@ -97,7 +97,10 @@ function getStore(plugin, {fix, rule, msg, options}) {
|
|
|
97
97
|
|
|
98
98
|
const push = (path, pathOptions) => {
|
|
99
99
|
const position = getPosition(path);
|
|
100
|
-
const message = msg || plugin.report(path,
|
|
100
|
+
const message = msg || plugin.report(path, {
|
|
101
|
+
...options,
|
|
102
|
+
...pathOptions,
|
|
103
|
+
});
|
|
101
104
|
|
|
102
105
|
placesStore({
|
|
103
106
|
message,
|
package/lib/validate.js
CHANGED
|
@@ -5,7 +5,7 @@ const {isArray} = Array;
|
|
|
5
5
|
export const validate = (name, fn) => {
|
|
6
6
|
if (name === 'include-items') {
|
|
7
7
|
if (!isArray(fn))
|
|
8
|
-
throw Error(`☝️ Looks like 'include'
|
|
8
|
+
throw Error(`☝️ Looks like 'include' does not return an 'array'. More on using Includer: https://git.io/JqcMn`);
|
|
9
9
|
|
|
10
10
|
return;
|
|
11
11
|
}
|