Skip to content

Commit 5ca5f43

Browse files
committed
Comment loadPackage override
Fixes: /usr/src/app/node_modules/meld/meld.js:67 if (typeof target[pointcut] === 'function') { ^ TypeError: Cannot read property 'loadPackage' of undefined at meld (/usr/src/app/node_modules/meld/meld.js:67:23) at Function.around (/usr/src/app/node_modules/meld/meld.js:436:12) at patcher (/usr/src/app/lib/eslint-patch.js:21:8) at Object.<anonymous> (/usr/src/app/bin/eslint.js:11:44) at Module._compile (module.js:397:26) at Object.Module._extensions..js (module.js:404:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:429:10) at startup (node.js:139:18)
1 parent 1f111fc commit 5ca5f43

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/eslint-patch.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ module.exports = function patcher(eslint) {
1818
return;
1919
});
2020

21-
meld.around(eslint.CLIEngine.Config, 'loadPackage', function(joinPoint) {
22-
var filePath = joinPoint.args[0];
23-
if (filePath.match(/^eslint-config-airbnb.*/)) {
24-
return joinPoint.proceed();
25-
} else {
26-
return {};
27-
}
28-
});
21+
// meld.around(eslint.CLIEngine.Config, 'loadPackage', function(joinPoint) {
22+
// var filePath = joinPoint.args[0];
23+
// if (filePath.match(/^eslint-config-airbnb.*/)) {
24+
// return joinPoint.proceed();
25+
// } else {
26+
// return {};
27+
// }
28+
// });
2929

3030
eslint.docs = docs;
3131

0 commit comments

Comments
 (0)