@lumiose/prettier-plugin 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# @lumiose/prettier-plugin
|
|
2
|
+
|
|
3
|
+
Prettier support for [Lumiose](https://itsjavi.com/lumiose/) `.stsx` files: the TSX with Prettier's
|
|
4
|
+
TypeScript printer and each `<style>` block with its CSS printer, re-indented at its placement, like
|
|
5
|
+
`lumiose fmt`. A file with scanner or syntax errors is reported, not changed.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
pnpm add -D @lumiose/prettier-plugin
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
// .prettierrc.json
|
|
13
|
+
{ "plugins": ["@lumiose/prettier-plugin"] }
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
With oxfmt, which has no plugin API, format `.stsx` with `lumiose fmt`. More:
|
|
17
|
+
[oxlint, ESLint and Prettier](https://itsjavi.com/lumiose/docs/reference/cli/#oxlint-eslint-and-prettier).
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
[MIT](https://github.com/itsjavi/lumiose/blob/main/LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumiose/prettier-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Prettier support for Lumiose .stsx files: the TSX with Prettier's TypeScript printer, each <style> block with its CSS printer, re-indented at its placement (like lumiose fmt).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"./package.json": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@lumiose/cli": "0.
|
|
24
|
-
"lumiose": "0.
|
|
23
|
+
"@lumiose/cli": "0.5.0",
|
|
24
|
+
"lumiose": "0.5.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@lumiose/compiler": "0.
|
|
27
|
+
"@lumiose/compiler": "0.5.0",
|
|
28
28
|
"prettier": "^3.9.9"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|