Skip to content

Commit 62071ae

Browse files
sangmmwpastore
authored andcommitted
[BUG FIX] Cannot read property getFilename of undefined
TypeError: Cannot read property 'getFilename' of undefined at isLintableFile (/node_modules/eslint-plugin-ember-best-practices/lib/rules/require-ember-lifeline.js:33:53) at MemberExpression (/node_modules/eslint-plugin-ember-best-practices/lib/rules/require-ember-lifeline.js:69:14) at listeners.(anonymous function).forEach.listener (/node_modules/eslint/lib/util/safe-emitter.js:47:58) at Array.forEach ()
1 parent cb794cc commit 62071ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/require-ember-lifeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function mergeDisallowedCalls(objects) {
3030
}
3131

3232
function isLintableFile(context) {
33-
return LINTABLE_FILE_PATTERNS.test(context.eslint.getFilename());
33+
return LINTABLE_FILE_PATTERNS.test(context.getFilename());
3434
}
3535

3636
module.exports = {

0 commit comments

Comments
 (0)