prettier-config-nick2bad4u 1.0.11 → 1.0.12

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 (2) hide show
  1. package/README.md +53 -1
  2. package/package.json +1 -1
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.12",
5
5
  "private": false,
6
6
  "description": "Shared Prettier config for Nick2bad4u projects.",
7
7
  "keywords": [