File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Format Vue SFC.
4
4
5
- This plugin only parses root-level blocks, extract their content, and format
6
- them through ` dprint ` according to the ` lang ` attribute or a default:
5
+ This plugin format root-level blocks through ` dprint ` , meaning you will need to
6
+ install plugins for the languages contained in your Vue SFCs.
7
+
8
+ ## Language detection
9
+
10
+ Unless a ` lang ` attribute is present:
7
11
8
12
| Block | Default |
9
13
| ---------- | ------- |
10
14
| ` script ` | ` js ` |
11
15
| ` template ` | ` html ` |
12
16
| ` style ` | ` css ` |
13
17
14
- This means you also need to install plugins for languages contained in your Vue
15
- SFC, such as [ ` dprint-plugin-typescript ` ] for JavaScript / TypeScript.
16
-
17
- [ `dprint-plugin-typescript` ] : https://github.com/dprint/dprint-plugin-typescript
18
-
19
18
## Usage
20
19
21
20
[ Install] ( https://dprint.dev/install ) and [ setup] ( https://dprint.dev/setup )
You can’t perform that action at this time.
0 commit comments