-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"use strict" | ||
|
||
const getDeclaredVariables = (context, node) => | ||
Check failure on line 3 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@7)
Check failure on line 3 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@8)
|
||
getSourceCode(context).getDeclaredVariables?.(node) ?? | ||
Check failure on line 4 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@7)
Check failure on line 4 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@8)
|
||
context.getDeclaredVariables(node) | ||
|
||
const getSourceCode = (context) => context.sourceCode ?? context.getSourceCode() | ||
Check failure on line 7 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@7)
Check failure on line 7 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@8)
|
||
|
||
const getScope = (context, node) => | ||
Check failure on line 9 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@7)
Check failure on line 9 in lib/eslint-compat.js GitHub Actions / ⬣ Lint (ESLint@8)
|
||
getSourceCode(context).getScope?.(node) ?? context.getScope() | ||
|
||
module.exports = { | ||
getDeclaredVariables, | ||
getSourceCode, | ||
getScope, | ||
} |