From d6fa86a79fe45db5114ada7bcd2c3eba800dfdfc Mon Sep 17 00:00:00 2001 From: Jakub Szymczak Date: Wed, 6 Nov 2024 16:40:18 +0100 Subject: [PATCH] fix prettier --- .github/workflows/build-web.yml | 2 +- .nvmrc | 2 +- package.json | 3 ++- src/web/utils/parserUtils.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index 54598021..0b22605b 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@v4 - name: Install node_modules - run: npm ci + run: npm ci --ignore-scripts - name: Build app working-directory: WebExample diff --git a/.nvmrc b/.nvmrc index 3f430af8..67e145bf 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v18 +v20.18.0 diff --git a/package.json b/package.json index 7de0ed9d..3d5f40cb 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,8 @@ "./WebExample" ], "engines": { - "node": ">= 18.0.0" + "node": "20.18.0", + "npm": "10.8.2" }, "jest": { "preset": "react-native", diff --git a/src/web/utils/parserUtils.ts b/src/web/utils/parserUtils.ts index 4f0c5793..0f7535a5 100644 --- a/src/web/utils/parserUtils.ts +++ b/src/web/utils/parserUtils.ts @@ -117,7 +117,7 @@ function addTextToElement(node: TreeNode, text: string) { }); } -function addParagraph(node: TreeNode, text: string | null = null, length: number, disableInlineStyles = false) { +function addParagraph(node: TreeNode, text: string | null, length: number, disableInlineStyles = false) { const p = document.createElement('p'); p.setAttribute('data-type', 'line'); if (!disableInlineStyles) {