Skip to content

Commit 982f473

Browse files
committed
fix(eslint): replace deprecated eslint API
1 parent fb0051c commit 982f473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-config/lib/rules/disallow-fec-relative-imports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = {
6565
* Determine correct variable for direct import
6666
*/
6767

68-
let variables = context.getDeclaredVariables(codePath);
68+
let variables = context.sourceCode.getDeclaredVariables();
6969
let varName = 'Unknown';
7070
if (variables.length > 0) {
7171
varName = variables[0].name;

0 commit comments

Comments
 (0)