Skip to content

Commit 3e24762

Browse files
Update dependency prettier-plugin-astro to ^0.6.0 (#112)
* Update dependency prettier-plugin-astro to ^0.6.0 * format * revert Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Yosuke Ota <[email protected]>
1 parent 9cb82a8 commit 3e24762

File tree

6 files changed

+38
-32
lines changed

6 files changed

+38
-32
lines changed

.devcontainer/devcontainer.json

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,36 @@
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.238.1/containers/typescript-node
33
{
4-
"name": "Node.js & TypeScript",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
8-
// Append -bullseye or -buster to pin to an OS version.
9-
// Use -bullseye variants on local on arm64/Apple Silicon.
10-
"args": {
11-
"VARIANT": "18-bullseye"
12-
}
13-
},
4+
"name": "Node.js & TypeScript",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
8+
// Append -bullseye or -buster to pin to an OS version.
9+
// Use -bullseye variants on local on arm64/Apple Silicon.
10+
"args": {
11+
"VARIANT": "18-bullseye"
12+
}
13+
},
1414

15-
// Configure tool-specific properties.
16-
"customizations": {
17-
// Configure properties specific to VS Code.
18-
"vscode": {
19-
// Add the IDs of extensions you want installed when the container is created.
20-
"extensions": [
21-
"dbaeumer.vscode-eslint",
22-
"astro-build.astro-vscode"
23-
]
24-
}
25-
},
15+
// Configure tool-specific properties.
16+
"customizations": {
17+
// Configure properties specific to VS Code.
18+
"vscode": {
19+
// Add the IDs of extensions you want installed when the container is created.
20+
"extensions": [
21+
"dbaeumer.vscode-eslint",
22+
"astro-build.astro-vscode",
23+
"svelte.svelte-vscode"
24+
]
25+
}
26+
},
2627

27-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
28-
// "forwardPorts": [],
28+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
29+
// "forwardPorts": [],
2930

30-
// Use 'postCreateCommand' to run commands after the container is created.
31-
"postCreateCommand": "npm install",
31+
// Use 'postCreateCommand' to run commands after the container is created.
32+
"postCreateCommand": "npm install",
3233

33-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
34-
"remoteUser": "node"
34+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
35+
"remoteUser": "node"
3536
}

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"javascript.validate.enable": false,
1313
"typescript.tsdk": "node_modules/typescript/lib",
1414
"editor.codeActionsOnSave": {
15-
"source.fixAll.eslint": true,
15+
"source.fixAll.eslint": true
1616
},
1717
"vetur.validation.template": false
18-
}
18+
}

explorer-v3/src/components/AstroAstExplorer.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ let b = 2;
216216
<div class="ast-tools">
217217
<span class="ast-tools-message">
218218
This AST generated by <a
219+
rel="noopener noreferrer"
219220
target="_blank"
220221
href="https://github.com/withastro/compiler">@astrojs/compiler</a
221222
>.

explorer-v3/src/components/ESLintPlayground.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,11 @@ let b = 2;
159159
{#each messages as msg, i (`${msg.line}:${msg.column}:${msg.ruleId}@${i}`)}
160160
<li class="message">
161161
[{msg.line}:{msg.column}]:
162-
{msg.message} (<a href={getURL(msg.ruleId)} target="_blank">
162+
{msg.message} (<a
163+
href={getURL(msg.ruleId)}
164+
target="_blank"
165+
rel="noopener noreferrer"
166+
>
163167
{msg.ruleId}
164168
</a>)
165169
</li>

explorer-v3/src/components/RulesSettings.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
/>
100100
{rule.ruleId}
101101
</label>
102-
<a href={rule.url} target="_blank"
102+
<a href={rule.url} target="_blank" rel="noopener noreferrer"
103103
><svg
104104
xmlns="http://www.w3.org/2000/svg"
105105
aria-hidden="true"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"mocha-chai-jest-snapshot": "^1.1.3",
9999
"nyc": "^15.1.0",
100100
"prettier": "^2.0.5",
101-
"prettier-plugin-astro": "^0.5.0",
101+
"prettier-plugin-astro": "^0.6.0",
102102
"prettier-plugin-svelte": "^2.7.0",
103103
"semver": "^7.3.5",
104104
"string-replace-loader": "^3.0.3",

0 commit comments

Comments
 (0)