prettier-config-nick2bad4u 1.0.11 → 1.0.13

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 CHANGED
@@ -189,7 +189,59 @@ Available named override option presets:
189
189
  - `extensionlessJsonOptions`
190
190
  - `extensionlessIniOptions`
191
191
 
192
- ### Option 7: legacy/manual override inheritance (kept for compatibility)
192
+ ### Option 7: full manual options block (most explicit, zero magic)
193
+
194
+ The simplest and most robust approach when `inheritedOverrides` doesn't behave
195
+ as expected: just paste the full options block directly. Every plugin and option
196
+ is explicitly present, so there is nothing implicit to break.
197
+
198
+ ```js
199
+ import prettierConfig from "prettier-config-nick2bad4u";
200
+
201
+ export default {
202
+ ...prettierConfig,
203
+ overrides: [
204
+ ...(prettierConfig.overrides ?? []),
205
+ {
206
+ files: "src/shared-config.ts",
207
+ options: {
208
+ endOfLine: "lf",
209
+ jsdocBracketSpacing: false,
210
+ jsdocCapitalizeDescription: true,
211
+ jsdocCommentLineStrategy: "keep",
212
+ jsdocDescriptionTag: false,
213
+ jsdocDescriptionWithDot: false,
214
+ jsdocEmptyCommentStrategy: "keep",
215
+ jsdocKeepUnParseAbleExampleIndent: false,
216
+ jsdocLineWrappingStyle: "greedy",
217
+ jsdocPreferCodeFences: true,
218
+ jsdocPrintWidth: 80,
219
+ jsdocSeparateReturnsFromParam: true,
220
+ jsdocSeparateTagGroups: true,
221
+ jsdocSpaces: 1,
222
+ jsdocVerticalAlignment: false,
223
+ multilineArraysWrapThreshold: 2,
224
+ plugins: [
225
+ "@softonus/prettier-plugin-duplicate-remover",
226
+ "prettier-plugin-multiline-arrays",
227
+ "prettier-plugin-jsdoc",
228
+ "prettier-plugin-interpolated-html-tags",
229
+ "prettier-plugin-merge",
230
+ ],
231
+ printWidth: 140, // your override
232
+ tsdoc: true,
233
+ useTabs: false,
234
+ },
235
+ },
236
+ ],
237
+ };
238
+ ```
239
+
240
+ This is the recommended fallback if you ever find plugin behavior not applying
241
+ correctly: copy the relevant options block from the named presets above and
242
+ paste it in verbatim.
243
+
244
+ ### Option 8: legacy/manual override inheritance (kept for compatibility)
193
245
 
194
246
  If you prefer the original manual discovery approach, this still works:
195
247
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package.json",
3
3
  "name": "prettier-config-nick2bad4u",
4
- "version": "1.0.11",
4
+ "version": "1.0.13",
5
5
  "private": false,
6
6
  "description": "Shared Prettier config for Nick2bad4u projects.",
7
7
  "keywords": [
@@ -92,7 +92,7 @@
92
92
  "prettier-plugin-merge": "^0.10.1",
93
93
  "prettier-plugin-multiline-arrays": "^4.1.8",
94
94
  "prettier-plugin-packagejson": "^3.0.2",
95
- "prettier-plugin-powershell": "^2.1.3",
95
+ "prettier-plugin-powershell": "^2.1.4",
96
96
  "prettier-plugin-properties": "^0.3.1",
97
97
  "prettier-plugin-sh": "^0.18.1",
98
98
  "prettier-plugin-sort-json": "^4.2.0",
@@ -102,23 +102,23 @@
102
102
  "devDependencies": {
103
103
  "@arethetypeswrong/cli": "^0.18.2",
104
104
  "@codecov/bundle-analyzer": "^2.0.1",
105
- "@types/node": "^25.6.2",
106
- "@vitest/coverage-v8": "^4.1.5",
105
+ "@types/node": "^25.8.0",
106
+ "@vitest/coverage-v8": "^4.1.6",
107
107
  "cross-env": "^10.1.0",
108
108
  "eslint": "^10.3.0",
109
- "eslint-config-nick2bad4u": "^1.0.12",
109
+ "eslint-config-nick2bad4u": "^1.0.16",
110
110
  "git-cliff": "^2.13.1",
111
- "npm-check-updates": "^22.1.1",
111
+ "npm-check-updates": "^22.2.0",
112
112
  "npm-package-json-lint": "^10.4.0",
113
113
  "picocolors": "^1.1.1",
114
114
  "prettier": "^3.8.3",
115
- "publint": "^0.3.20",
115
+ "publint": "^0.3.21",
116
116
  "secretlint": "^13.0.0",
117
117
  "secretlint-config-nick2bad4u": "^1.0.4",
118
118
  "sort-package-json": "^3.6.1",
119
119
  "typescript": "^6.0.3",
120
- "vite": "^8.0.11",
121
- "vitest": "^4.1.5"
120
+ "vite": "^8.0.13",
121
+ "vitest": "^4.1.6"
122
122
  },
123
123
  "peerDependencies": {
124
124
  "prettier": "^3.0.0 || ^3.8.3"
package/preset.mjs CHANGED
@@ -43,7 +43,7 @@ export const config = Object.freeze(sharedPrettierConfig);
43
43
  * }>
44
44
  * ) => import("prettier").Config}
45
45
  */
46
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/explicit-module-boundary-types -- JS file uses explicit JSDoc function typing.
46
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- JSDoc return typing is used for this JS module API.
47
47
  export const createConfig = (options = {}) => createConfigInternal(options);
48
48
 
49
49
  /** Default extensionless INI-like globs used by this shared configuration. */
@@ -249,7 +249,7 @@ export const iniOverrideOptions = Object.freeze({
249
249
  * options?: Readonly<CreateConfigOptions>
250
250
  * ) => import("prettier").Config}
251
251
  */
252
- // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/explicit-module-boundary-types -- JS file uses JSDoc function typing instead of TS annotations.
252
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types -- JSDoc return typing is used for this JS module API.
253
253
  export const createConfig = (options = {}) => {
254
254
  const {
255
255
  extensionlessIniFiles = [],