@vyriy/prettier-config 0.1.9

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vyriy contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @vyriy/prettier-config
2
+
3
+ Shared Prettier config for Vyriy projects.
4
+
5
+ ## Purpose
6
+
7
+ This package provides the base Prettier setup used in Vyriy repositories, including the multiline arrays plugin and common formatting defaults.
8
+ Arrays with more than three elements are formatted across multiple lines.
9
+
10
+ ## Install
11
+
12
+ With npm:
13
+
14
+ ```bash
15
+ npm install -D @vyriy/prettier-config prettier
16
+ ```
17
+
18
+ With Yarn:
19
+
20
+ ```bash
21
+ yarn add -D @vyriy/prettier-config prettier
22
+ ```
23
+
24
+ Install `prettier` in the consumer project so CLI binaries are available.
25
+
26
+ ## Usage
27
+
28
+ Create `prettier.config.mjs` in your project:
29
+
30
+ ```js
31
+ export { default } from '@vyriy/prettier-config';
32
+ ```
33
+
34
+ If you need local overrides:
35
+
36
+ ```js
37
+ import baseConfig from '@vyriy/prettier-config';
38
+
39
+ export default {
40
+ ...baseConfig,
41
+ printWidth: 100,
42
+ };
43
+ ```
44
+
45
+ ## Formatting Scope
46
+
47
+ Prettier controls multiline arrays through `prettier-plugin-multiline-arrays`.
48
+ Object multiline checks are handled by `@vyriy/eslint-config`.
49
+
50
+ Prettier does not support a stable count-based rule for import or export specifiers. If import or export specifiers fit within `printWidth`, Prettier may keep them on one line.
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Config } from 'prettier';
2
+ declare const config: Config;
3
+ export default config;
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ const config = {
2
+ semi: true,
3
+ singleQuote: true,
4
+ tabWidth: 2,
5
+ trailingComma: 'all',
6
+ printWidth: 120,
7
+ endOfLine: 'lf',
8
+ arrowParens: 'always',
9
+ bracketSpacing: true,
10
+ jsxSingleQuote: false,
11
+ overrides: [
12
+ {
13
+ files: ['*.ts', '*.tsx'],
14
+ options: {
15
+ parser: 'typescript',
16
+ },
17
+ },
18
+ ],
19
+ plugins: [
20
+ 'prettier-plugin-multiline-arrays',
21
+ ],
22
+ multilineArraysWrapThreshold: 3,
23
+ };
24
+ export default config;
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@vyriy/prettier-config",
3
+ "version": "0.1.9",
4
+ "description": "Shared Prettier config for Vyriy projects",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "dependencies": {
8
+ "prettier": "^3.8.3",
9
+ "prettier-plugin-multiline-arrays": "^4.1.8"
10
+ },
11
+ "license": "MIT",
12
+ "types": "./index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./index.d.ts",
16
+ "import": "./index.js",
17
+ "default": "./index.js"
18
+ },
19
+ "./index": {
20
+ "types": "./index.d.ts",
21
+ "import": "./index.js",
22
+ "default": "./index.js"
23
+ },
24
+ "./index.js": {
25
+ "types": "./index.d.ts",
26
+ "import": "./index.js",
27
+ "default": "./index.js"
28
+ }
29
+ }
30
+ }