@vyriy/prettier-config 0.7.1 → 0.7.3
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 +1 -0
- package/index.js +4 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ Shared Prettier config for Vyriy projects.
|
|
|
6
6
|
|
|
7
7
|
This package provides the base Prettier setup used in Vyriy repositories, including the multiline arrays plugin and common formatting defaults.
|
|
8
8
|
Arrays with more than three elements are formatted across multiple lines.
|
|
9
|
+
The multiline arrays plugin is resolved from this shared config package, so consumer projects only need the config package and their local Prettier CLI.
|
|
9
10
|
|
|
10
11
|
Prettier is responsible for formatting syntactically valid code. It does not replace TypeScript, ESLint, Stylelint, or tests; it is one small validation and formatting step in the shared Vyriy workflow.
|
|
11
12
|
|
package/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
2
|
+
const requireFromPackage = createRequire(import.meta.url);
|
|
3
|
+
const resolveDependency = (request) => requireFromPackage.resolve(request);
|
|
1
4
|
const config = {
|
|
2
5
|
semi: true,
|
|
3
6
|
singleQuote: true,
|
|
@@ -17,7 +20,7 @@ const config = {
|
|
|
17
20
|
},
|
|
18
21
|
],
|
|
19
22
|
plugins: [
|
|
20
|
-
'prettier-plugin-multiline-arrays',
|
|
23
|
+
resolveDependency('prettier-plugin-multiline-arrays'),
|
|
21
24
|
],
|
|
22
25
|
multilineArraysWrapThreshold: 3,
|
|
23
26
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vyriy/prettier-config",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Shared Prettier config for Vyriy projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"prettier": "^3.8.
|
|
7
|
+
"prettier": "^3.8.4",
|
|
8
8
|
"prettier-plugin-multiline-arrays": "^4.1.9"
|
|
9
9
|
},
|
|
10
10
|
"agents": "./AGENTS.md",
|