@theholocron/prettier-config 5.1.0 → 5.1.2
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/package.json +1 -1
- package/prettier.config.js +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/prettier-config",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "A Prettier configuration for formatting libraries in the Galaxy.",
|
|
5
5
|
"homepage": "https://github.com/theholocron/configs/tree/main/packages/prettier-config#readme",
|
|
6
6
|
"bugs": "https://github.com/theholocron/configs/issues",
|
package/prettier.config.js
CHANGED
|
@@ -23,6 +23,17 @@ const config = {
|
|
|
23
23
|
useTabs: false,
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
// printWidth: 80 keeps tsconfig references arrays expanded one-per-line
|
|
28
|
+
// (the collapsed form fits within 120 chars and becomes hard to scan).
|
|
29
|
+
// String values never split regardless of printWidth, so this only
|
|
30
|
+
// affects arrays of objects that exceed 80 chars — in practice just
|
|
31
|
+
// the references array.
|
|
32
|
+
files: ["tsconfig*.json"],
|
|
33
|
+
options: {
|
|
34
|
+
printWidth: 80,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
26
37
|
],
|
|
27
38
|
};
|
|
28
39
|
|