Skip to content

Commit 2f921af

Browse files
committed
Use old source code getter
1 parent df9b111 commit 2f921af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/forward-ref-uses-ref.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
},
3535

3636
create(context) {
37-
const sourceCode = context.sourceCode;
37+
const sourceCode = context.getSourceCode();
3838
/**
3939
* @param {ASTNode} node
4040
* @returns {boolean} If the node represents the identifier `forwardRef`.

0 commit comments

Comments
 (0)