Skip to content

Commit eac71fb

Browse files
authored
test: remove use of nodejsScope option of eslint-scope from tests (#20206)
1 parent 462675a commit eac71fb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/fixtures/parsers/enhanced-parser3.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ function analyzeScope(ast) {
2929
const options = {
3030
optimistic: false,
3131
directive: false,
32-
nodejsScope: false,
3332
impliedStrict: false,
3433
sourceType: "script",
3534
ecmaVersion: 6,

tests/lib/languages/js/source-code/source-code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3749,8 +3749,8 @@ describe("SourceCode", () => {
37493749
const ast = espree.parse(code, DEFAULT_CONFIG);
37503750
const scopeManager = eslintScope.analyze(ast, {
37513751
ignoreEval: true,
3752-
nodejsScope: true,
37533752
ecmaVersion: 6,
3753+
sourceType: "commonjs",
37543754
});
37553755
const sourceCode = new SourceCode({
37563756
text: code,
@@ -4012,8 +4012,8 @@ describe("SourceCode", () => {
40124012
const ast = espree.parse(code, DEFAULT_CONFIG);
40134013
const scopeManager = eslintScope.analyze(ast, {
40144014
ignoreEval: true,
4015-
nodejsScope: true,
40164015
ecmaVersion: 6,
4016+
sourceType: "commonjs",
40174017
});
40184018
const sourceCode = new SourceCode({
40194019
text: code,

0 commit comments

Comments
 (0)