Files
filteredandGitHub 88746f6234 Lint & refactor codebase (#539)
* Ignore shims script (hard forked)

* Format scripts

* Remove redundant code

* [Refactor] Remove ternary statement

* Add ESM top-level await

* Add TS types, clean up

* Ignore ESLint warnings in scripts

* Remove redundant code

* Lint tests

* Remove stylistic ESLint rule

!array.length is acceptable here.

* Ignore ESLint errors on yaml parsing

No easy solution here; this is already in the wild.
Needs proper reimplementation at some point.

* nit

* [Refactor] if-else => switch

* [Refactor] Remove redundant code

* Remove unnecessary use of static class

* Annotate remaining low-priority ESLint items

* Lint configs

* Lint playwright config

* nit
2024-12-19 13:30:19 -08:00

9 lines
285 B
JavaScript

// Read the main package.json
import { createRequire } from 'node:module';
/** @type {import('../package.json')} */
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const packageJson = createRequire(import.meta.url)('../package.json');
export default packageJson;