forked from kofal.net/zmk
chore: Add typescript support to eslint, fix errors (#2923)
This commit is contained in:
@@ -133,7 +133,9 @@ export function findDevicetreeProperty(
|
||||
`(property name: (identifier) @name (#eq? @name "${name}")) @prop`
|
||||
);
|
||||
const matches = query.matches(node);
|
||||
const props = matches.map(({ captures }) => findCapture("prop", captures)!);
|
||||
const props = matches
|
||||
.map(({ captures }) => findCapture("prop", captures))
|
||||
.filter((node) => node !== null);
|
||||
|
||||
if (options?.recursive) {
|
||||
return props;
|
||||
|
||||
Reference in New Issue
Block a user