Skip to content

Commit 408cd5a

Browse files
committed
global: run prettier & eslint on all files
1 parent 42a76c6 commit 408cd5a

File tree

26 files changed

+83
-87
lines changed

26 files changed

+83
-87
lines changed

.github/actions/setup-node-with-cache/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: 'Setup node with cache action'
2-
description: 'Setups node with cache'
1+
name: "Setup node with cache action"
2+
description: "Setups node with cache"
33

44
runs:
55
using: "composite"
@@ -24,4 +24,4 @@ runs:
2424
packages/editor/package-lock.json
2525
packages/logger/package-lock.json
2626
packages/streamable-fs/package-lock.json
27-
packages/theme/package-lock.json
27+
packages/theme/package-lock.json

.github/dco.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/android.publish.internal.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Use specific Java version for the builds
1818
uses: joschi/setup-jdk@v2
1919
with:
20-
java-version: '11'
21-
architecture: 'x64'
20+
java-version: "11"
21+
architecture: "x64"
2222

2323
- name: Install node modules
2424
run: |
@@ -37,7 +37,7 @@ jobs:
3737
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
3838
alias: ${{ secrets.ALIAS }}
3939
keyStorePassword: ${{ secrets.KEY_PASSWORD }}
40-
keyPassword: ${{ secrets.KEY_PASSWORD }}
40+
keyPassword: ${{ secrets.KEY_PASSWORD }}
4141

4242
- name: Publish to Playstore
4343
id: deploy
@@ -48,4 +48,4 @@ jobs:
4848
releaseFile: ${{steps.sign_app.outputs.signedReleaseFile}}
4949
track: internal
5050
status: completed
51-
whatsNewDirectory: apps/mobile/native/android/releasenotes/
51+
whatsNewDirectory: apps/mobile/native/android/releasenotes/

.github/workflows/android.publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Use specific Java version for the builds
1818
uses: joschi/setup-jdk@v2
1919
with:
20-
java-version: '11'
21-
architecture: 'x64'
20+
java-version: "11"
21+
architecture: "x64"
2222

2323
- name: Install node modules
2424
run: |
@@ -37,7 +37,7 @@ jobs:
3737
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
3838
alias: ${{ secrets.ALIAS }}
3939
keyStorePassword: ${{ secrets.KEY_PASSWORD }}
40-
keyPassword: ${{ secrets.KEY_PASSWORD }}
40+
keyPassword: ${{ secrets.KEY_PASSWORD }}
4141

4242
- name: Publish to Playstore
4343
id: deploy
@@ -48,7 +48,7 @@ jobs:
4848
releaseFiles: ${{steps.sign_app.outputs.signedReleaseFile}}
4949
track: production
5050
status: completed
51-
whatsNewDirectory: apps/mobile/native/android/releasenotes/
51+
whatsNewDirectory: apps/mobile/native/android/releasenotes/
5252

5353
- name: Build apks for Github release
5454
run: yarn release:android
@@ -61,7 +61,7 @@ jobs:
6161
signingKeyBase64: ${{ secrets.PUBLIC_SIGNING_KEY }}
6262
alias: ${{ secrets.PUBLIC_ALIAS }}
6363
keyStorePassword: ${{ secrets.PUBLIC_KEY_PASSWORD }}
64-
keyPassword: ${{ secrets.PUBLIC_KEY_PASSWORD }}
64+
keyPassword: ${{ secrets.PUBLIC_KEY_PASSWORD }}
6565

6666
- name: Rename apk files
6767
run: |
@@ -89,4 +89,4 @@ jobs:
8989
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-arm64-v8a.apk
9090
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-armeabi-v7a.apk
9191
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-x86.apk
92-
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-x86_64.apk
92+
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-x86_64.apk

.github/workflows/core.tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
paths:
99
- "packages/core/**"
1010
# re-run workflow if workflow file changes
11-
- ".github/workflows/core.tests.yml"
11+
- ".github/workflows/core.tests.yml"
1212
pull_request:
1313
types:
1414
- "ready_for_review"

.github/workflows/desktop.publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
echo ::set-output name=app_bundle_id::$(cat package.json | jq -r .build.appId)
9494
echo ::set-output name=app_version::$(cat package.json | jq -r .version)
9595
echo ::set-output name=bundle_version::$(cat package.json | jq -r .build.mac.bundleVersion)
96-
96+
9797
- name: Get App Store Version
9898
id: appstore
9999
uses: streetwriters/appstore-connect-app-version@develop
@@ -114,7 +114,7 @@ jobs:
114114
run: |
115115
npm i --ignore-scripts --prefer-offline --no-audit
116116
npx lerna bootstrap --scope=@notesnook/desktop --scope=@notesnook/crypto --scope=@notesnook/sodium -- --prefer-offline --no-audit
117-
117+
118118
- name: Install provisioning profile
119119
run: echo "${{ secrets.MAC_PROVISIONING_PROFILE }}" | base64 --decode > embedded.provisionprofile
120120
working-directory: ./apps/desktop
@@ -151,7 +151,7 @@ jobs:
151151
env:
152152
API_KEY_ID: ${{ secrets.api_key_id }}
153153
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}
154-
run: |
154+
run: |
155155
package=$(find ./output/mas-universal/notesnook*.pkg)
156156
157157
echo "Uploading ${package} using altool..."
@@ -252,4 +252,4 @@ jobs:
252252
} else {
253253
yarn electron-builder --win --publish never
254254
}
255-
working-directory: ./apps/desktop
255+
working-directory: ./apps/desktop

.github/workflows/nscurl.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111

1212
steps:
1313
- name: Run ats-diagnostics
14-
run: nscurl --ats-diagnostics https://payments.streetwriters.co
14+
run: nscurl --ats-diagnostics https://payments.streetwriters.co

apps/mobile/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"request": "attach"
2626
}
2727
]
28-
}
28+
}

apps/mobile/app/common/filesystem/attach-file.ts

Whitespace-only changes.

apps/mobile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
"@notesnook/logger": "*",
3737
"@notesnook/common": "*"
3838
}
39-
}
39+
}

apps/mobile/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"types": ["node", "jest", "detox"],
1111
"paths": {
1212
"@notesnook/*": ["../../packages"],
13-
"@notifee/react-native": ["./node_modules/@ammarahmed/notifee-react-native"]
13+
"@notifee/react-native": [
14+
"./node_modules/@ammarahmed/notifee-react-native"
15+
]
1416
},
1517
"incremental": true
1618
},

apps/web/src/components/icons/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ import {
208208
mdiInformationOutline,
209209
mdiHeadCogOutline,
210210
mdiFormTextarea,
211-
mdiDatabaseExportOutline,
212211
mdiGavel,
213212
mdiDesktopClassic,
214213
mdiBellBadgeOutline

apps/web/src/hooks/use-database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

2020
import { useEffect, useState } from "react";
21-
import { initializeDatabase, db } from "../common/db";
21+
import { initializeDatabase } from "../common/db";
2222
import "allotment/dist/style.css";
2323
import "../utils/analytics";
2424
import "../app.css";

docs/help/contents/importing-notes/import-notes-from-evernote.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ The following steps will help you import your notes from EverNote easily.
2626
<img style="margin-bottom:15px;" src="/static/evernote-importer/6.png" alt="Download importer .zip file"/>
2727

2828
7. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
29-
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
29+
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
3030

3131
8. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).

docs/help/contents/importing-notes/import-notes-from-html-files.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ To import html files to notesnook go to Notesnook Importer on your PC/Laptop.
1212
2. Drop your html files or click anywhere inside the box to browse and select your html files. Once selected, click on "Start processing".
1313
<img style="margin-bottom:15px;" src="/static/html/2.png" alt="From the list of formats to import, select Plain Text."/>
1414

15-
5. Once importer completes processing, download the .zip file.
15+
3. Once importer completes processing, download the .zip file.
1616
<img style="margin-bottom:15px;" src="/static/html/3.png" alt="Download importer .zip file"/>
1717

18-
6. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
19-
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
18+
4. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
19+
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
2020

21-
7. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).
21+
5. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).

docs/help/contents/importing-notes/import-notes-from-joplin.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Joplin
55
# How do I import notes from Joplin notes app?
66

77
The following steps will help you import your notes from Joplin easily.
8-
8+
99
1. Open Joplin app on Desktop and click on `File` and select `Export All -> JEX - Joplin Export File` and save it in desired location.
1010
<img style="margin-bottom:15px;" src="/static/joplin-importer/1.png" alt="Click on `File` and select `Export All -> JEX - Joplin Export File`"/>
1111

@@ -15,10 +15,10 @@ The following steps will help you import your notes from Joplin easily.
1515
3. Drop the .jex backup file you exported earlier from Joplin in the box or click anywhere to open system file picker to select the backup.
1616
<img style="margin-bottom:15px;" src="/static/joplin-importer/3.png" alt="Drop the .zip backup file you exported earlier from Standard Notes in the box or click anywhere to open system file picker to select the backup."/>
1717

18-
5. Once importer completes processing, download the .zip file.
18+
4. Once importer completes processing, download the .zip file.
1919
<img style="margin-bottom:15px;" src="/static/joplin-importer/4.png" alt="Download importer .zip file"/>
2020

21-
6. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
22-
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
21+
5. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
22+
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
2323

24-
7. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).
24+
6. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).

docs/help/contents/importing-notes/import-notes-from-mardown-files.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ To import markdown files to notesnook go to Notesnook Importer on your PC/Laptop
1212
2. Drop your markdown files or click anywhere inside the box to browse and select your markdown files and then click "Start processing".
1313
<img style="margin-bottom:15px;" src="/static/markdown-importer/2.png" alt="Drop your markdown files or click anywhere inside the box to browse and select your markdown files."/>
1414

15-
5. Once importer completes processing, download the .zip file.
15+
3. Once importer completes processing, download the .zip file.
1616
<img style="margin-bottom:15px;" src="/static/markdown-importer/6.png" alt="Download importer .zip file"/>
1717

18-
6. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
19-
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
18+
4. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
19+
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
2020

21-
7. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).
21+
5. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).

docs/help/contents/importing-notes/import-notes-from-simplenote.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ The following steps will help you import your notes from Simplenote easily.
2121
6. Drop the .zip backup file you exported earlier from Simplenote in the box or click anywhere to open system file picker to select the backup and click "Start processing".
2222
<img style="margin-bottom:15px;" src="/static/simplenote-importer/4.png" alt="Drop the .zip backup file you exported earlier from Standard Notes in the box or click anywhere to open system file picker to select the backup."/>
2323

24-
5. Once importer completes processing, download the .zip file.
24+
7. Once importer completes processing, download the .zip file.
2525
<img style="margin-bottom:15px;" src="/static/simplenote-importer/5.png" alt="Download importer .zip file"/>
2626

27-
6. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
28-
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
27+
8. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
28+
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
2929

30-
7. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).
30+
9. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).

docs/help/contents/importing-notes/import-notes-from-standardnotes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ The following steps will help you import your notes from Standard notes easily.
2121
6. Drop the .zip backup file you exported earlier from Standard Notes in the box or click anywhere to open system file picker to select the backup.
2222
<img style="margin-bottom:15px;" src="/static/standard-notes-importer/4.png" alt="Drop the .zip backup file you exported earlier from Standard Notes in the box or click anywhere to open system file picker to select the backup."/>
2323

24-
5. Once importer completes processing, download the .zip file.
24+
7. Once importer completes processing, download the .zip file.
2525
<img style="margin-bottom:15px;" src="/static/standard-notes-importer/5.png" alt="Download importer .zip file"/>
2626

27-
6. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
28-
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
27+
8. After you have downloaded the `.zip` file, go to Notesnook app > Settings > Notesnook Importer and click on "Import from ZIP file" & select the .zip you downloaded earlier.
28+
<img style="margin-bottom:15px;" src="/static/import-zip-app.png" alt="Import .zip in Notesnook app"/>
2929

30-
7. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).
30+
9. Once importing completes you should see all your notes in Notesnook. If you face any issues during importing, [report it on github](https://github.com/streetwriters/notesnook).
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Mobile integration
1+
# Mobile integration
Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
4-
<head>
5-
<meta charset="UTF-8" />
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<meta name="viewport" content="width=device-width, initial-scale=1" />
8-
9-
<title></title>
10-
</head>
11-
12-
<body>
13-
<div id="root"></div>
14-
</body>
15-
16-
</html>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
8+
<title></title>
9+
</head>
10+
11+
<body>
12+
<div id="root"></div>
13+
</body>
14+
</html>

packages/clipper/src/images.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async function inlineImage(element: HTMLImageElement, options?: FetchOptions) {
5454
return element;
5555
}
5656

57-
return new Promise<HTMLImageElement | null>(function(resolve, reject) {
57+
return new Promise<HTMLImageElement | null>(function (resolve, reject) {
5858
if (element.parentElement?.tagName === "PICTURE") {
5959
element.parentElement?.replaceWith(element);
6060
}

packages/editor/src/components/resizer/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export function Resizer(props: PropsWithChildren<ResizerProps>) {
4545
style
4646
} = props;
4747

48-
if (!editor.isEditable) return <Flex sx={{position:"relative"}}>{children}</Flex>;
48+
if (!editor.isEditable)
49+
return <Flex sx={{ position: "relative" }}>{children}</Flex>;
4950

5051
return (
5152
<Resizable

packages/editor/src/extensions/attachment/component.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function AttachmentComponent(
3232
const { editor, node, selected } = props;
3333
const { filename, size, progress } = node.attrs;
3434
const elementRef = useRef<HTMLSpanElement>();
35-
35+
3636
return (
3737
<>
3838
<Box
@@ -87,15 +87,15 @@ export function AttachmentComponent(
8787
{selected && (
8888
<ToolbarGroup
8989
editor={editor}
90-
tools={ editor.isEditable ? [
91-
"removeAttachment",
92-
"downloadAttachment",
93-
"previewAttachment"
94-
] : [
95-
"downloadAttachment",
96-
"previewAttachment"
97-
]
98-
}
90+
tools={
91+
editor.isEditable
92+
? [
93+
"removeAttachment",
94+
"downloadAttachment",
95+
"previewAttachment"
96+
]
97+
: ["downloadAttachment", "previewAttachment"]
98+
}
9999
sx={{
100100
boxShadow: "menu",
101101
borderRadius: "default",

packages/editor/src/extensions/key-map/key-map.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export const KeyMap = Extension.create({
4444
},
4545
Backspace: ({ editor }) => {
4646
return joinUpWithLastListItem(editor);
47-
},
47+
}
4848
};
49-
},
49+
}
5050
});
5151

5252
/**

0 commit comments

Comments
 (0)