mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 10:15:17 -04:00
Fix various ESLint errors in unit tests
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
208ff1d039
commit
21403ba606
7 changed files with 53 additions and 21 deletions
|
@ -22,6 +22,8 @@ async function getServerVersionFromPackageJson() {
|
|||
joinPath(__dirname, '../../package.json'),
|
||||
{ encoding: 'utf8' },
|
||||
);
|
||||
// TODO: Should this be validated in more detail?
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const packageInfo: { version: string } = JSON.parse(rawFileContent);
|
||||
const versionParts: number[] = packageInfo.version
|
||||
.split('.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue