Skip to content

fix: add ESLint 10 compatibility by replacing deprecated context.getSourceCode() #4055

fix: add ESLint 10 compatibility by replacing deprecated context.getSourceCode()

fix: add ESLint 10 compatibility by replacing deprecated context.getSourceCode() #4055

Re-run triggered March 3, 2026 21:30
Status Failure
Total duration 2m 47s
Artifacts

ci.yml

on: pull_request
self-lint
20s
self-lint
Matrix: build
Matrix: eslint-versions
Fit to window
Zoom out
Zoom in

Annotations

11 errors
self-lint
Process completed with exit code 1.
tests/lib/rules/avoid-leaking-state-in-ember-objects.js > avoid-leaking-state-in-ember-objects > valid > export default Foo.extend({ someProp: "example", init() { this.set("anotherProp", new Ember.Object()) } });: tests/lib/rules/avoid-leaking-state-in-ember-objects.js#L16
TypeError: scopeManager.addGlobals is not a function ❯ RuleTester.run tests/lib/rules/avoid-leaking-state-in-ember-objects.js:16:14 ❯ addDeclaredGlobals node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:221:15 ❯ SourceCode.finalize node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:1090:3 ❯ SourceCode.<anonymous> node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:319:20 ❯ Linter.#flatVerifyWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1245:24 ❯ Linter._verifyWithFlatConfigArrayAndWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1333:43 ❯ Linter._verifyWithFlatConfigArray node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1400:15 ❯ Linter.verify node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:861:9 ❯ runRuleForItem node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1304:23 ❯ testValidTemplate node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1370:19 ❯ node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1918:10 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { scenarioType: 'valid', scenarioIndex: 5 }
tests/lib/rules/avoid-leaking-state-in-ember-objects.js > avoid-leaking-state-in-ember-objects > valid > export default Foo.extend({ someProp: "example", init() { this.set("anotherProp", new A()) } });: tests/lib/rules/avoid-leaking-state-in-ember-objects.js#L16
TypeError: scopeManager.addGlobals is not a function ❯ RuleTester.run tests/lib/rules/avoid-leaking-state-in-ember-objects.js:16:14 ❯ addDeclaredGlobals node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:221:15 ❯ SourceCode.finalize node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:1090:3 ❯ SourceCode.<anonymous> node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:319:20 ❯ Linter.#flatVerifyWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1245:24 ❯ Linter._verifyWithFlatConfigArrayAndWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1333:43 ❯ Linter._verifyWithFlatConfigArray node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1400:15 ❯ Linter.verify node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:861:9 ❯ runRuleForItem node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1304:23 ❯ testValidTemplate node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1370:19 ❯ node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1918:10 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { scenarioType: 'valid', scenarioIndex: 4 }
tests/lib/rules/avoid-leaking-state-in-ember-objects.js > avoid-leaking-state-in-ember-objects > valid > export default Foo.extend({ someProp: "example", init() { this.set("anotherProp", new Ember.A()) } });: tests/lib/rules/avoid-leaking-state-in-ember-objects.js#L16
TypeError: scopeManager.addGlobals is not a function ❯ RuleTester.run tests/lib/rules/avoid-leaking-state-in-ember-objects.js:16:14 ❯ addDeclaredGlobals node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:221:15 ❯ SourceCode.finalize node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:1090:3 ❯ SourceCode.<anonymous> node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:319:20 ❯ Linter.#flatVerifyWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1245:24 ❯ Linter._verifyWithFlatConfigArrayAndWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1333:43 ❯ Linter._verifyWithFlatConfigArray node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1400:15 ❯ Linter.verify node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:861:9 ❯ runRuleForItem node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1304:23 ❯ testValidTemplate node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1370:19 ❯ node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1918:10 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { scenarioType: 'valid', scenarioIndex: 3 }
tests/lib/rules/avoid-leaking-state-in-ember-objects.js > avoid-leaking-state-in-ember-objects > valid > export default Foo.extend({ someProp: "example", init() { this.set("anotherProp", {}) } });: tests/lib/rules/avoid-leaking-state-in-ember-objects.js#L16
TypeError: scopeManager.addGlobals is not a function ❯ RuleTester.run tests/lib/rules/avoid-leaking-state-in-ember-objects.js:16:14 ❯ addDeclaredGlobals node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:221:15 ❯ SourceCode.finalize node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:1090:3 ❯ SourceCode.<anonymous> node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:319:20 ❯ Linter.#flatVerifyWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1245:24 ❯ Linter._verifyWithFlatConfigArrayAndWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1333:43 ❯ Linter._verifyWithFlatConfigArray node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1400:15 ❯ Linter.verify node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:861:9 ❯ runRuleForItem node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1304:23 ❯ testValidTemplate node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1370:19 ❯ node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1918:10 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { scenarioType: 'valid', scenarioIndex: 2 }
tests/lib/rules/avoid-leaking-state-in-ember-objects.js > avoid-leaking-state-in-ember-objects > valid > export default Foo.extend({ someProp: "example", init() { this.set("anotherProp", []) } });: tests/lib/rules/avoid-leaking-state-in-ember-objects.js#L16
TypeError: scopeManager.addGlobals is not a function ❯ RuleTester.run tests/lib/rules/avoid-leaking-state-in-ember-objects.js:16:14 ❯ addDeclaredGlobals node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:221:15 ❯ SourceCode.finalize node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:1090:3 ❯ SourceCode.<anonymous> node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:319:20 ❯ Linter.#flatVerifyWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1245:24 ❯ Linter._verifyWithFlatConfigArrayAndWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1333:43 ❯ Linter._verifyWithFlatConfigArray node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1400:15 ❯ Linter.verify node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:861:9 ❯ runRuleForItem node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1304:23 ❯ testValidTemplate node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1370:19 ❯ node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1918:10 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { scenarioType: 'valid', scenarioIndex: 1 }
tests/lib/rules/avoid-leaking-state-in-ember-objects.js > avoid-leaking-state-in-ember-objects > valid > export default Foo.extend();: tests/lib/rules/avoid-leaking-state-in-ember-objects.js#L16
TypeError: scopeManager.addGlobals is not a function ❯ RuleTester.run tests/lib/rules/avoid-leaking-state-in-ember-objects.js:16:14 ❯ addDeclaredGlobals node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:221:15 ❯ SourceCode.finalize node_modules/.pnpm/[email protected]/node_modules/eslint/lib/languages/js/source-code/source-code.js:1090:3 ❯ SourceCode.<anonymous> node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:319:20 ❯ Linter.#flatVerifyWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1245:24 ❯ Linter._verifyWithFlatConfigArrayAndWithoutProcessors node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1333:43 ❯ Linter._verifyWithFlatConfigArray node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:1400:15 ❯ Linter.verify node_modules/.pnpm/[email protected]/node_modules/eslint/lib/linter/linter.js:861:9 ❯ runRuleForItem node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1304:23 ❯ testValidTemplate node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1370:19 ❯ node_modules/.pnpm/[email protected]/node_modules/eslint/lib/rule-tester/rule-tester.js:1918:10 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { scenarioType: 'valid', scenarioIndex: +0 }
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > multiple tokens in same file > handles duplicate template tokens: tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L776
AssertionError: expected { ruleId: 'no-unused-vars', …(8) } to match object { column: 13, endColumn: 17, …(7) } (1 matching property omitted from actual) - Expected + Received Object { "column": 13, "endColumn": 17, "endLine": 4, "line": 4, "message": "'tmpl' is assigned a value but never used.", "messageId": "unusedVar", - "nodeType": "Identifier", "ruleId": "no-unused-vars", "severity": 2, } ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:776:29
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > multiple tokens in same file > correctly maps duplicate tokens to the correct lines: tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L739
AssertionError: expected { ruleId: 'no-unused-vars', …(8) } to match object { column: 13, endColumn: 16, …(7) } (1 matching property omitted from actual) - Expected + Received Object { "column": 13, "endColumn": 16, "endLine": 5, "line": 5, "message": "'two' is assigned a value but never used.", "messageId": "unusedVar", - "nodeType": "Identifier", "ruleId": "no-unused-vars", "severity": 2, } ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:739:29
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > line/col numbers should be correct > line and col should be correct: tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L622
AssertionError: expected { …(8) } to match object { column: 28, endColumn: 64, …(7) } - Expected + Received Object { "column": 28, "endColumn": 64, "endLine": 13, "line": 13, "message": "Don't use Ember's array prototype extensions", "messageId": "main", - "nodeType": "Literal", "ruleId": "ember/no-array-prototype-extensions", "severity": 2, } ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:622:29
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > <template> {{#let 'x' as |noop usedEl notUsed|}} {{noop}} <usedEl /> <undef.x /> {{/let}} </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L585
AssertionError: expected 'nodeType: undefined' to match object 'nodeType: BlockParam' Expected: "nodeType: BlockParam" Received: "nodeType: undefined" ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:585:34