ember-eslint-parser 0.14.6 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/parser/transforms.js +7 -0
package/package.json
CHANGED
package/src/parser/transforms.js
CHANGED
|
@@ -61,6 +61,13 @@ function findVarInParentScopes(scopeManager, nodePath, name) {
|
|
|
61
61
|
|
|
62
62
|
function registerNodeInScope(node, scope, variable) {
|
|
63
63
|
const ref = new Reference(node, scope, Reference.READ);
|
|
64
|
+
// A template reference always reads a value. typescript-eslint's scope
|
|
65
|
+
// manager flags every reference as a value or type reference, and its rules
|
|
66
|
+
// rely on that (no-unused-vars treats a reference without
|
|
67
|
+
// isValueReference as type-only since 8.71.1), but eslint-scope's
|
|
68
|
+
// Reference has neither flag.
|
|
69
|
+
ref.isValueReference = true;
|
|
70
|
+
ref.isTypeReference = false;
|
|
64
71
|
if (variable) {
|
|
65
72
|
variable.references.push(ref);
|
|
66
73
|
ref.resolved = variable;
|