Skip to content

Commit 22141cd

Browse files
committed
prettier
1 parent 0078b64 commit 22141cd

File tree

7 files changed

+38
-40
lines changed

7 files changed

+38
-40
lines changed

.devcontainer/devcontainer.json

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.222.0/containers/javascript-node
33
{
4-
"name": "Node.js",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
8-
// Append -bullseye or -buster to pin to an OS version.
9-
// Use -bullseye variants on local arm64/Apple Silicon.
10-
"args": { "VARIANT": "16" }
11-
},
4+
"name": "Node.js",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
8+
// Append -bullseye or -buster to pin to an OS version.
9+
// Use -bullseye variants on local arm64/Apple Silicon.
10+
"args": {"VARIANT": "16"}
11+
},
1212

13-
// Set *default* container specific settings.json values on container create.
14-
"settings": {},
13+
// Set *default* container specific settings.json values on container create.
14+
"settings": {},
1515

16-
// Add the IDs of extensions you want installed when the container is created.
17-
"extensions": [
18-
"dbaeumer.vscode-eslint"
19-
],
16+
// Add the IDs of extensions you want installed when the container is created.
17+
"extensions": ["dbaeumer.vscode-eslint"],
2018

21-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
22-
// "forwardPorts": [],
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
2321

24-
// Use 'postCreateCommand' to run commands after the container is created.
25-
// "postCreateCommand": "yarn install",
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "yarn install",
2624

27-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
28-
"remoteUser": "node",
29-
"features": {
30-
"git": "latest"
31-
}
25+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
26+
"remoteUser": "node",
27+
"features": {
28+
"git": "latest"
29+
}
3230
}

.github/workflows/nodejs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Use Node.js
15-
uses: actions/setup-node@v1
16-
with:
17-
node-version: '14.x'
18-
- run: npm install
19-
- run: npm run build --if-present
20-
- run: npm test
21-
env:
22-
CI: true
13+
- uses: actions/checkout@v2
14+
- name: Use Node.js
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: '14.x'
18+
- run: npm install
19+
- run: npm run build --if-present
20+
- run: npm test
21+
env:
22+
CI: true

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
- name: Publish to GHPR
4646
run: npm publish
4747
env:
48-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

examples/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {install as installImageLink, uninstall as uninstallImageLink} from './pa
33
import {install as installLink, uninstall as uninstallLink} from './paste-markdown-link'
44
import {
55
installAround as installSkipFormatting,
6-
uninstall as uninstallSkipFormatting
6+
uninstall as uninstallSkipFormatting,
77
} from './paste-keyboard-shortcut-helper'
88
import {install as installTable, uninstall as uninstallTable} from './paste-markdown-table'
99
import {install as installText, uninstall as uninstallText} from './paste-markdown-text'
@@ -23,7 +23,7 @@ function subscribe(el: HTMLElement, optionConfig?: OptionConfig): Subscription {
2323
uninstallImageLink(el)
2424
uninstallLink(el)
2525
uninstallText(el)
26-
}
26+
},
2727
}
2828
}
2929

@@ -38,5 +38,5 @@ export {
3838
uninstallImageLink,
3939
uninstallTable,
4040
uninstallLink,
41-
uninstallText
41+
uninstallText,
4242
}

src/paste-keyboard-shortcut-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function shouldSkipFormatting(el: HTMLElement): boolean {
2626
export function installAround(
2727
el: HTMLElement,
2828
installCallbacks: Array<(el: HTMLElement, optionConfig?: OptionConfig) => void>,
29-
optionConfig?: OptionConfig
29+
optionConfig?: OptionConfig,
3030
): void {
3131
el.addEventListener('keydown', setSkipFormattingFlag)
3232

src/paste-markdown-html.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function onPaste(event: ClipboardEvent) {
3838
const parser = new DOMParser()
3939
const doc = parser.parseFromString(textHTMLClean, 'text/html')
4040
const walker = doc.createTreeWalker(doc.body, NodeFilter.SHOW_ELEMENT, node =>
41-
node.parentNode && isLink(node.parentNode) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
41+
node.parentNode && isLink(node.parentNode) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT,
4242
)
4343

4444
const markdown = convertToMarkdown(plaintext, walker)

0 commit comments

Comments
 (0)