chore: Add typescript support to eslint, fix errors (#2923)
This commit is contained in:
parent
e3030bfcc8
commit
4235c8b491
16 changed files with 309 additions and 31 deletions
|
|
@ -22,9 +22,9 @@ const METADATA_GLOB = path.posix.join(BASE_DIR, "app/boards/**/*.zmk.yml");
|
|||
* @param {string} file
|
||||
*/
|
||||
async function readMetadata(file) {
|
||||
/** @type HardwareMetadata[] */
|
||||
// @ts-ignore
|
||||
const documents = yaml.loadAll(await fs.readFile(file, "utf-8"));
|
||||
const documents = /** @type HardwareMetadata[] */ (
|
||||
yaml.loadAll(await fs.readFile(file, "utf-8"))
|
||||
);
|
||||
|
||||
return documents.map(
|
||||
(metadata) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue