prettier-plugin-multiline-arrays-2 1.0.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.
Files changed (69) hide show
  1. package/LICENSE +3 -0
  2. package/LICENSE-CC0 +121 -0
  3. package/LICENSE-MIT +21 -0
  4. package/README.md +91 -0
  5. package/dist/augments/array.d.ts +3 -0
  6. package/dist/augments/array.js +21 -0
  7. package/dist/augments/array.test.d.ts +1 -0
  8. package/dist/augments/array.test.js +34 -0
  9. package/dist/augments/doc.d.ts +5 -0
  10. package/dist/augments/doc.js +30 -0
  11. package/dist/augments/string.d.ts +1 -0
  12. package/dist/augments/string.js +6 -0
  13. package/dist/index.d.ts +11 -0
  14. package/dist/index.js +46 -0
  15. package/dist/options.d.ts +32 -0
  16. package/dist/options.js +71 -0
  17. package/dist/options.test.d.ts +1 -0
  18. package/dist/options.test.js +48 -0
  19. package/dist/plugin-marker.d.ts +1 -0
  20. package/dist/plugin-marker.js +2 -0
  21. package/dist/preprocessing.d.ts +2 -0
  22. package/dist/preprocessing.js +94 -0
  23. package/dist/printer/child-docs.d.ts +18 -0
  24. package/dist/printer/child-docs.js +89 -0
  25. package/dist/printer/comment-triggers.d.ts +25 -0
  26. package/dist/printer/comment-triggers.js +327 -0
  27. package/dist/printer/comments.d.ts +2 -0
  28. package/dist/printer/comments.js +34 -0
  29. package/dist/printer/insert-new-lines.d.ts +15 -0
  30. package/dist/printer/insert-new-lines.js +580 -0
  31. package/dist/printer/insert-new-lines.test.d.ts +1 -0
  32. package/dist/printer/insert-new-lines.test.js +36 -0
  33. package/dist/printer/leading-new-line.d.ts +7 -0
  34. package/dist/printer/leading-new-line.js +31 -0
  35. package/dist/printer/multiline-array-printer.d.ts +4 -0
  36. package/dist/printer/multiline-array-printer.js +42 -0
  37. package/dist/printer/original-printer.d.ts +3 -0
  38. package/dist/printer/original-printer.js +10 -0
  39. package/dist/printer/supported-node-types.d.ts +9 -0
  40. package/dist/printer/supported-node-types.js +16 -0
  41. package/dist/printer/trailing-comma.d.ts +6 -0
  42. package/dist/printer/trailing-comma.js +28 -0
  43. package/dist/readme-examples/formatted-with-comments.example.d.ts +3 -0
  44. package/dist/readme-examples/formatted-with-comments.example.js +16 -0
  45. package/dist/readme-examples/formatted.example.d.ts +2 -0
  46. package/dist/readme-examples/formatted.example.js +12 -0
  47. package/dist/readme-examples/not-formatted.example.d.ts +2 -0
  48. package/dist/readme-examples/not-formatted.example.js +6 -0
  49. package/dist/readme-examples/prettier-options.example.d.ts +4 -0
  50. package/dist/readme-examples/prettier-options.example.js +5 -0
  51. package/dist/test/babel-ts.test.d.ts +1 -0
  52. package/dist/test/babel-ts.test.js +10 -0
  53. package/dist/test/javascript.test.d.ts +1 -0
  54. package/dist/test/javascript.test.js +702 -0
  55. package/dist/test/json.test.d.ts +1 -0
  56. package/dist/test/json.test.js +403 -0
  57. package/dist/test/json5.test.d.ts +1 -0
  58. package/dist/test/json5.test.js +210 -0
  59. package/dist/test/prettier-config.d.ts +2 -0
  60. package/dist/test/prettier-config.js +12 -0
  61. package/dist/test/prettier-versions.mock.script.d.ts +1 -0
  62. package/dist/test/prettier-versions.mock.script.js +123 -0
  63. package/dist/test/run-tests.mock.d.ts +17 -0
  64. package/dist/test/run-tests.mock.js +95 -0
  65. package/dist/test/typescript-tests.mock.d.ts +2 -0
  66. package/dist/test/typescript-tests.mock.js +1575 -0
  67. package/dist/test/typescript.test.d.ts +1 -0
  68. package/dist/test/typescript.test.js +10 -0
  69. package/package.json +117 -0
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { describe } from '@augment-vir/test';
2
+ import { runTests } from './run-tests.mock.js';
3
+ import { typescriptTests } from './typescript-tests.mock.js';
4
+ describe('typescript multiline array formatting', () => {
5
+ runTests({
6
+ extension: '.ts',
7
+ tests: typescriptTests,
8
+ parser: 'typescript',
9
+ });
10
+ });
package/package.json ADDED
@@ -0,0 +1,117 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/package.json",
3
+ "name": "prettier-plugin-multiline-arrays-2",
4
+ "version": "1.0.0",
5
+ "description": "Prettier plugin to force array elements to wrap onto new lines.",
6
+ "keywords": [
7
+ "array",
8
+ "format",
9
+ "multiline",
10
+ "prettier",
11
+ "prettier-plugin",
12
+ "printer"
13
+ ],
14
+ "homepage": "https://github.com/Nick2bad4u/prettier-plugin-multiline-arrays-2#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/Nick2bad4u/prettier-plugin-multiline-arrays-2/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/Nick2bad4u/prettier-plugin-multiline-arrays-2.git"
21
+ },
22
+ "license": "(MIT OR CC0-1.0)",
23
+ "author": "Nick2bad4u <20943337+Nick2bad4u@users.noreply.github.com> (https://github.com/Nick2bad4u)",
24
+ "contributors": [
25
+ {
26
+ "name": "electrovir",
27
+ "url": "https://github.com/electrovir"
28
+ }
29
+ ],
30
+ "sideEffects": false,
31
+ "type": "module",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/index.d.ts",
35
+ "default": "./dist/index.js"
36
+ }
37
+ },
38
+ "main": "./dist/index.js",
39
+ "module": "./dist/index.js",
40
+ "types": "./dist/index.d.ts",
41
+ "files": [
42
+ "dist",
43
+ "LICENSE-CC0",
44
+ "LICENSE-MIT",
45
+ "README.md"
46
+ ],
47
+ "scripts": {
48
+ "build": "tsc -p tsconfig.build.json",
49
+ "changelog:generate": "git-cliff --config cliff.toml --output CHANGELOG.md",
50
+ "changelog:preview": "git-cliff --config cliff.toml --unreleased",
51
+ "changelog:release-notes": "git-cliff --config cliff.toml --current --strip all",
52
+ "clean": "node -e \"const fs = require('node:fs'); fs.rmSync('dist', {recursive: true, force: true}); fs.rmSync('coverage', {recursive: true, force: true});\"",
53
+ "format": "prettier . --write",
54
+ "format:check": "prettier . --check",
55
+ "lint": "eslint . --cache --cache-strategy content --cache-location .cache/.eslintcache",
56
+ "lint:fix": "eslint . --cache --cache-strategy content --cache-location .cache/.eslintcache --fix",
57
+ "lint:package": "publint",
58
+ "lint:prettier": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --check",
59
+ "lint:prettier:fix": "prettier . --log-level warn --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --write",
60
+ "prepack": "npm run build",
61
+ "release:check": "npm run release:verify && npm pack --dry-run",
62
+ "release:verify": "npm run build && npm run typecheck && npm run lint && npm run lint:prettier && npm run lint:package && npm run test:prettier-latest && npm test",
63
+ "test": "node --import tsx --test \"src/**/*.test.ts\"",
64
+ "test:prettier-latest": "npm install --no-save --save-dev prettier@latest && npm test",
65
+ "test:versions": "npm run build && tsx src/test/prettier-versions.mock.script.ts",
66
+ "typecheck": "tsc -p tsconfig.json --noEmit",
67
+ "update-deps": "npx ncu -i --install never && npm update --force && npm install --force"
68
+ },
69
+ "dependencies": {
70
+ "@augment-vir/assert": "^31.73.2",
71
+ "@augment-vir/common": "^31.73.2",
72
+ "proxy-vir": "^2.0.3"
73
+ },
74
+ "devDependencies": {
75
+ "@augment-vir/test": "^31.73.2",
76
+ "@eslint/js": "^10.0.1",
77
+ "@types/esprima": "^4.0.6",
78
+ "@types/estree": "^1.0.9",
79
+ "@types/node": "^26.0.0",
80
+ "@types/semver": "^7.7.1",
81
+ "cspell": "^10.0.1",
82
+ "eslint": "^10.5.0",
83
+ "eslint-config-nick2bad4u": "^3.0.3",
84
+ "git-cliff": "^2.13.1",
85
+ "npm-check-updates": "^22.2.7",
86
+ "object-shape-tester": "^6.14.0",
87
+ "prettier": "^3.9.4",
88
+ "prettier-config-nick2bad4u": "^1.0.19",
89
+ "prettier-plugin-interpolated-html-tags": "^2.0.1",
90
+ "prettier-plugin-jsdoc": "^1.8.1",
91
+ "prettier-plugin-organize-imports": "^4.3.0",
92
+ "prettier-plugin-packagejson": "^3.0.2",
93
+ "prettier-plugin-sort-json": "^4.2.0",
94
+ "prettier-plugin-toml": "^2.0.6",
95
+ "publint": "^0.3.21",
96
+ "semver": "^7.8.5",
97
+ "tsx": "^4.22.4",
98
+ "typescript": "^6.0.3"
99
+ },
100
+ "peerDependencies": {
101
+ "prettier": "^3.0.0"
102
+ },
103
+ "packageManager": "npm@11.18.0",
104
+ "engines": {
105
+ "node": ">=22.18.0"
106
+ },
107
+ "devEngines": {
108
+ "runtime": {
109
+ "name": "node",
110
+ "version": ">=22.18.0"
111
+ }
112
+ },
113
+ "publishConfig": {
114
+ "provenance": true,
115
+ "registry": "https://registry.npmjs.org/"
116
+ }
117
+ }