Skip to content

Commit 7f9e924

Browse files
renovate[bot]renovate-botota-meshi
authored
Update dependency @types/estree to ^0.0.48 (#223)
* Update dependency @types/estree to ^0.0.48 * Fix type Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: yosuke ota <[email protected]>
1 parent 7ba8490 commit 7f9e924

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/utils/type-tracker/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export function createTypeTracker(context: Rule.RuleContext): TypeTracker {
434434
}
435435
} else {
436436
// computed
437-
const propertyType = getType(mem.property)
437+
const propertyType = getType(mem.property as never)
438438
if (hasType(propertyType, "Number")) {
439439
propertyName = "0"
440440
}
@@ -473,7 +473,7 @@ export function createTypeTracker(context: Rule.RuleContext): TypeTracker {
473473
}
474474
} else {
475475
// computed
476-
const propertyType = getType(node.property)
476+
const propertyType = getType(node.property as never)
477477
if (hasType(propertyType, "Number")) {
478478
propertyName = "0"
479479
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@ota-meshi/eslint-plugin": "^0.7.0",
5353
"@types/eslint": "^7.2.0",
5454
"@types/eslint-scope": "^3.7.0",
55-
"@types/estree": "^0.0.47",
55+
"@types/estree": "^0.0.48",
5656
"@types/mocha": "^8.0.0",
5757
"@types/node": "^14.14.39",
5858
"@typescript-eslint/eslint-plugin": "^4.14.0",

0 commit comments

Comments
 (0)