prettier-config-nick2bad4u 1.0.13 → 1.0.15

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.
@@ -0,0 +1,508 @@
1
+ /**
2
+ * Prettier configuration for Nick2Bad4U's projects
3
+ *
4
+ * @see https://prettier.io/docs/en/configuration.html
5
+ * @see https://www.schemastore.org/prettierrc/
6
+ */
7
+ const normalizeOverrideFiles = (files) => typeof files === "string" ? files : [...files];
8
+ /** Default extensionless JSON-like globs used by this shared configuration. */
9
+ export const defaultExtensionlessJsonFiles = Object.freeze([
10
+ "**/.all-contributorsrc",
11
+ "**/.djlintrc",
12
+ "**/.hintrc",
13
+ "**/.htmlhintrc",
14
+ "**/.madgerc",
15
+ ]);
16
+ /** Default extensionless INI-like globs used by this shared configuration. */
17
+ export const defaultExtensionlessIniFiles = Object.freeze([
18
+ "**/.editorconfig",
19
+ "**/.gitconfig",
20
+ ]);
21
+ /** Shared option preset used for extensionless JSON-like override blocks. */
22
+ export const extensionlessJsonOptions = Object.freeze({
23
+ endOfLine: "lf",
24
+ jsonRecursiveSort: false,
25
+ jsonSortOrder: '{"*": "numeric"}',
26
+ multilineArraysWrapThreshold: 2,
27
+ parser: "json",
28
+ plugins: [
29
+ "prettier-plugin-sort-json",
30
+ "prettier-plugin-multiline-arrays",
31
+ ],
32
+ useTabs: false,
33
+ });
34
+ /** Shared option preset used for extensionless INI-like override blocks. */
35
+ export const extensionlessIniOptions = Object.freeze({
36
+ endOfLine: "lf",
37
+ iniSpaceAroundEquals: true,
38
+ parser: "ini",
39
+ plugins: ["prettier-plugin-ini"],
40
+ useTabs: false,
41
+ });
42
+ /** Shared option preset used by the primary JS/TS override block. */
43
+ export const typescriptOverrideOptions = Object.freeze({
44
+ endOfLine: "lf",
45
+ jsdocBracketSpacing: false,
46
+ jsdocCapitalizeDescription: true,
47
+ jsdocCommentLineStrategy: "keep",
48
+ jsdocDescriptionTag: false,
49
+ jsdocDescriptionWithDot: false,
50
+ jsdocEmptyCommentStrategy: "keep",
51
+ jsdocKeepUnParseAbleExampleIndent: false,
52
+ jsdocLineWrappingStyle: "greedy",
53
+ jsdocPreferCodeFences: true,
54
+ jsdocPrintWidth: 80,
55
+ jsdocSeparateReturnsFromParam: true,
56
+ jsdocSeparateTagGroups: true,
57
+ jsdocSpaces: 1,
58
+ jsdocVerticalAlignment: false,
59
+ multilineArraysWrapThreshold: 2,
60
+ plugins: [
61
+ "@softonus/prettier-plugin-duplicate-remover",
62
+ "prettier-plugin-multiline-arrays",
63
+ "prettier-plugin-jsdoc",
64
+ "prettier-plugin-interpolated-html-tags",
65
+ "prettier-plugin-merge",
66
+ ],
67
+ tsdoc: true,
68
+ useTabs: false,
69
+ });
70
+ /** Shared option preset used by the generic JSON override block. */
71
+ export const jsonOverrideOptions = Object.freeze({
72
+ endOfLine: "lf",
73
+ jsonRecursiveSort: false,
74
+ jsonSortOrder: '{"*": "numeric"}',
75
+ multilineArraysWrapThreshold: 2,
76
+ plugins: [
77
+ "prettier-plugin-sort-json",
78
+ "prettier-plugin-multiline-arrays",
79
+ ],
80
+ useTabs: false,
81
+ });
82
+ /** Shared option preset used by the package.json/package-lock override block. */
83
+ export const packageJsonOverrideOptions = Object.freeze({
84
+ endOfLine: "lf",
85
+ multilineArraysWrapThreshold: 2,
86
+ plugins: [
87
+ "prettier-plugin-packagejson",
88
+ "prettier-plugin-multiline-arrays",
89
+ ],
90
+ tabWidth: 4,
91
+ useTabs: false,
92
+ });
93
+ /** Shared option preset used by HTML override blocks. */
94
+ export const htmlOverrideOptions = Object.freeze({
95
+ htmlWhitespaceSensitivity: "strict",
96
+ plugins: ["@softonus/prettier-plugin-duplicate-remover"],
97
+ printWidth: 80,
98
+ singleAttributePerLine: true,
99
+ useTabs: false,
100
+ });
101
+ /** Shared option preset used by *.user.js override blocks. */
102
+ export const userJavaScriptOverrideOptions = Object.freeze({
103
+ endOfLine: "lf",
104
+ printWidth: 80,
105
+ useTabs: false,
106
+ });
107
+ /** Shared option preset used by Markdown override blocks. */
108
+ export const markdownOverrideOptions = Object.freeze({
109
+ endOfLine: "lf",
110
+ jsdocBracketSpacing: false,
111
+ jsdocCapitalizeDescription: true,
112
+ jsdocCommentLineStrategy: "keep",
113
+ jsdocDescriptionTag: false,
114
+ jsdocDescriptionWithDot: false,
115
+ jsdocEmptyCommentStrategy: "keep",
116
+ jsdocKeepUnParseAbleExampleIndent: false,
117
+ jsdocLineWrappingStyle: "greedy",
118
+ jsdocPreferCodeFences: true,
119
+ jsdocPrintWidth: 80,
120
+ jsdocSeparateReturnsFromParam: true,
121
+ jsdocSeparateTagGroups: true,
122
+ jsdocSpaces: 1,
123
+ jsdocVerticalAlignment: false,
124
+ plugins: ["prettier-plugin-jsdoc"],
125
+ tabWidth: 1,
126
+ useTabs: false,
127
+ });
128
+ /** Shared option preset used by MDX override blocks. */
129
+ export const mdxOverrideOptions = Object.freeze({
130
+ endOfLine: "lf",
131
+ jsdocBracketSpacing: false,
132
+ jsdocCapitalizeDescription: true,
133
+ jsdocCommentLineStrategy: "keep",
134
+ jsdocDescriptionTag: false,
135
+ jsdocDescriptionWithDot: false,
136
+ jsdocEmptyCommentStrategy: "keep",
137
+ jsdocKeepUnParseAbleExampleIndent: false,
138
+ jsdocLineWrappingStyle: "greedy",
139
+ jsdocPreferCodeFences: true,
140
+ jsdocPrintWidth: 80,
141
+ jsdocSeparateReturnsFromParam: true,
142
+ jsdocSeparateTagGroups: true,
143
+ jsdocSpaces: 1,
144
+ jsdocVerticalAlignment: false,
145
+ plugins: ["prettier-plugin-jsdoc"],
146
+ printWidth: 100,
147
+ tabWidth: 2,
148
+ useTabs: false,
149
+ });
150
+ /** Shared option preset used by Astro override blocks. */
151
+ export const astroOverrideOptions = Object.freeze({
152
+ endOfLine: "lf",
153
+ parser: "astro",
154
+ plugins: ["prettier-plugin-astro"],
155
+ printWidth: 100,
156
+ tabWidth: 4,
157
+ useTabs: false,
158
+ });
159
+ /** Shared option preset used by YAML override blocks. */
160
+ export const yamlOverrideOptions = Object.freeze({
161
+ endOfLine: "lf",
162
+ parser: "yaml",
163
+ plugins: ["prettier-plugin-yaml"],
164
+ tabWidth: 4,
165
+ useTabs: false,
166
+ yamlQuoteKeys: false,
167
+ yamlQuoteValues: true,
168
+ yamlQuoteValuesMatching: "^(?:yes|no|on|off)$",
169
+ });
170
+ /** Shared option preset used by TOML override blocks. */
171
+ export const tomlOverrideOptions = Object.freeze({
172
+ alignComments: true,
173
+ alignEntries: true,
174
+ allowedBlankLines: 1,
175
+ arrayAutoCollapse: true,
176
+ arrayAutoExpand: true,
177
+ compactArrays: false,
178
+ compactEntries: false,
179
+ compactInlineTables: false,
180
+ endOfLine: "lf",
181
+ indentEntries: true,
182
+ indentTables: true,
183
+ plugins: ["prettier-plugin-toml"],
184
+ printWidth: 120,
185
+ reorderKeys: false,
186
+ tabWidth: 4,
187
+ trailingComma: "none",
188
+ useTabs: false,
189
+ });
190
+ /** Shared option preset used by XML-family override blocks. */
191
+ export const xmlOverrideOptions = Object.freeze({
192
+ bracketSameLine: false,
193
+ endOfLine: "lf",
194
+ plugins: ["@prettier/plugin-xml"],
195
+ printWidth: 80,
196
+ singleAttributePerLine: false,
197
+ tabWidth: 2,
198
+ useTabs: false,
199
+ xmlQuoteAttributes: "preserve",
200
+ xmlSelfClosingSpace: true,
201
+ xmlSortAttributesByKey: false,
202
+ xmlWhitespaceSensitivity: "strict",
203
+ });
204
+ /** Shared option preset used by PHP override blocks. */
205
+ export const phpOverrideOptions = Object.freeze({
206
+ braceStyle: "per-cs",
207
+ endOfLine: "lf",
208
+ phpVersion: "auto",
209
+ plugins: ["@prettier/plugin-php"],
210
+ printWidth: 80,
211
+ singleQuote: false,
212
+ tabWidth: 4,
213
+ trailingCommaPHP: true,
214
+ useTabs: false,
215
+ });
216
+ /** Shared option preset used by SQL override blocks. */
217
+ export const sqlOverrideOptions = Object.freeze({
218
+ dataTypeCase: "preserve",
219
+ denseOperators: false,
220
+ endOfLine: "lf",
221
+ expressionWidth: 50,
222
+ formatter: "sql-formatter",
223
+ functionCase: "preserve",
224
+ identifierCase: "preserve",
225
+ indentStyle: "standard",
226
+ keywordCase: "preserve",
227
+ language: "sqlite",
228
+ linesBetweenQueries: 1,
229
+ logicalOperatorNewline: "before",
230
+ newlineBeforeSemicolon: false,
231
+ plugins: ["prettier-plugin-sql"],
232
+ useTabs: false,
233
+ });
234
+ /** Shared option preset used by PowerShell override blocks. */
235
+ export const powershellOverrideOptions = Object.freeze({
236
+ endOfLine: "lf",
237
+ plugins: ["prettier-plugin-powershell"],
238
+ powershellBlankLineAfterParam: true,
239
+ powershellBlankLinesBetweenFunctions: 1,
240
+ powershellBraceStyle: "1tbs",
241
+ powershellIndentSize: 4,
242
+ powershellIndentStyle: "spaces",
243
+ powershellKeywordCase: "lower",
244
+ powershellLineWidth: 120,
245
+ powershellPreferSingleQuote: false,
246
+ powershellPreset: "invoke-formatter",
247
+ powershellRewriteAliases: false,
248
+ powershellRewriteWriteHost: false,
249
+ powershellSortHashtableKeys: false,
250
+ powershellTrailingComma: "none",
251
+ useTabs: false,
252
+ });
253
+ /** Shared option preset used by CODEOWNERS override blocks. */
254
+ export const codeownersOverrideOptions = Object.freeze({
255
+ endOfLine: "lf",
256
+ plugins: ["prettier-plugin-codeowners"],
257
+ useTabs: false,
258
+ });
259
+ /** Shared option preset used by shell script override blocks. */
260
+ export const shellOverrideOptions = Object.freeze({
261
+ binaryNextLine: true,
262
+ endOfLine: "lf",
263
+ functionNextLine: false,
264
+ indent: 4,
265
+ keepComments: true,
266
+ minify: false,
267
+ plugins: ["prettier-plugin-sh"],
268
+ singleLine: false,
269
+ spaceRedirects: true,
270
+ switchCaseIndent: true,
271
+ useTabs: false,
272
+ });
273
+ /** Shared option preset used by .properties override blocks. */
274
+ export const propertiesOverrideOptions = Object.freeze({
275
+ endOfLine: "lf",
276
+ escapeNonLatin1: false,
277
+ plugins: ["prettier-plugin-properties"],
278
+ useTabs: false,
279
+ });
280
+ /** Shared option preset used by .ini override blocks. */
281
+ export const iniOverrideOptions = Object.freeze({
282
+ endOfLine: "lf",
283
+ iniSpaceAroundEquals: true,
284
+ plugins: ["prettier-plugin-ini"],
285
+ useTabs: false,
286
+ });
287
+ /**
288
+ * Build a Prettier config with optional extensionless JSON and INI file
289
+ * overrides.
290
+ */
291
+ export const createConfig = (options = {}) => {
292
+ const { extensionlessIniFiles = [], extensionlessJsonFiles = [], inheritedOverrides = [], replaceDefaultExtensionlessIniFiles = false, replaceDefaultExtensionlessJsonFiles = false, } = options;
293
+ const mergedExtensionlessIniFiles = [
294
+ ...new Set(replaceDefaultExtensionlessIniFiles
295
+ ? extensionlessIniFiles
296
+ : [...defaultExtensionlessIniFiles, ...extensionlessIniFiles]),
297
+ ];
298
+ const mergedExtensionlessJsonFiles = [
299
+ ...new Set(replaceDefaultExtensionlessJsonFiles
300
+ ? extensionlessJsonFiles
301
+ : [...defaultExtensionlessJsonFiles, ...extensionlessJsonFiles]),
302
+ ];
303
+ const baseOverrides = [
304
+ {
305
+ files: [
306
+ "*.js",
307
+ "*.jsx",
308
+ "*.ts",
309
+ "*.tsx",
310
+ "*.mjs",
311
+ "*.cjs",
312
+ "*.mts",
313
+ "*.cts",
314
+ ],
315
+ options: typescriptOverrideOptions,
316
+ },
317
+ {
318
+ files: "tsconfig.*",
319
+ options: jsonOverrideOptions,
320
+ },
321
+ {
322
+ files: "*.html",
323
+ options: htmlOverrideOptions,
324
+ },
325
+ {
326
+ files: "*.user.js",
327
+ options: userJavaScriptOverrideOptions,
328
+ },
329
+ {
330
+ files: "*.md",
331
+ options: markdownOverrideOptions,
332
+ },
333
+ {
334
+ files: "*.mdx",
335
+ options: mdxOverrideOptions,
336
+ },
337
+ {
338
+ files: "*.astro",
339
+ options: astroOverrideOptions,
340
+ },
341
+ {
342
+ files: [
343
+ "*.yaml",
344
+ "*.yml",
345
+ "**/.clang-format",
346
+ "**/.clang-tidy",
347
+ "**/.clangd",
348
+ "**/.yamlfmt",
349
+ "**/.yamllint",
350
+ ".yamllint",
351
+ ".yamllint.yaml",
352
+ ".yamllint.yml",
353
+ ],
354
+ options: yamlOverrideOptions,
355
+ },
356
+ {
357
+ files: "*.toml",
358
+ options: tomlOverrideOptions,
359
+ },
360
+ {
361
+ files: [
362
+ "*.xml",
363
+ "*.xsd",
364
+ "*.xsl",
365
+ "*.xaml",
366
+ ],
367
+ options: xmlOverrideOptions,
368
+ },
369
+ {
370
+ files: "*.php",
371
+ options: phpOverrideOptions,
372
+ },
373
+ {
374
+ files: mergedExtensionlessJsonFiles,
375
+ options: extensionlessJsonOptions,
376
+ },
377
+ {
378
+ excludeFiles: ["**/package.json", "**/package-lock.json"],
379
+ files: "*.json",
380
+ options: jsonOverrideOptions,
381
+ },
382
+ {
383
+ files: "*.sql",
384
+ options: sqlOverrideOptions,
385
+ },
386
+ {
387
+ files: [
388
+ "*.ps1",
389
+ "*.psm1",
390
+ "*.psd1",
391
+ ],
392
+ options: powershellOverrideOptions,
393
+ },
394
+ {
395
+ files: ["CODEOWNERS", "**/CODEOWNERS"],
396
+ options: codeownersOverrideOptions,
397
+ },
398
+ {
399
+ files: [
400
+ "*.sh",
401
+ "*.bash",
402
+ "*.zsh",
403
+ "*.sh.in",
404
+ "*.zsh-theme",
405
+ "**/.bashrc",
406
+ "**/.bash_profile",
407
+ "**/.bash_logout",
408
+ "**/.zshrc",
409
+ "**/.zshenv",
410
+ ],
411
+ options: shellOverrideOptions,
412
+ },
413
+ {
414
+ files: "*.properties",
415
+ options: propertiesOverrideOptions,
416
+ },
417
+ {
418
+ files: mergedExtensionlessIniFiles,
419
+ options: extensionlessIniOptions,
420
+ },
421
+ {
422
+ files: "*.ini",
423
+ options: iniOverrideOptions,
424
+ },
425
+ {
426
+ files: ["**/package.json", "**/package-lock.json"],
427
+ options: packageJsonOverrideOptions,
428
+ },
429
+ ];
430
+ /* eslint-disable typefest/prefer-ts-extras-object-has-own, typefest/prefer-ts-extras-set-has -- Avoid adding ts-extras as a runtime dependency for simple built-ins in the published config. */
431
+ const inheritedOverridesExpanded = inheritedOverrides.map((override) => {
432
+ const inheritFromValues = Array.isArray(override.inheritFrom)
433
+ ? override.inheritFrom
434
+ : [override.inheritFrom];
435
+ const inheritedSourceOverride = baseOverrides.find((baseOverride) => {
436
+ const baseFiles = Array.isArray(baseOverride.files)
437
+ ? baseOverride.files
438
+ : [baseOverride.files];
439
+ const baseFileSet = new Set(baseFiles);
440
+ return inheritFromValues.every((inheritFromValue) => baseFileSet.has(inheritFromValue));
441
+ }) ?? null;
442
+ if (inheritedSourceOverride === null) {
443
+ throw new Error(`Unable to inherit override options: no base override found for ${JSON.stringify(override.inheritFrom)}.`);
444
+ }
445
+ const inheritedOverride = {
446
+ files: normalizeOverrideFiles(override.files),
447
+ };
448
+ if (Object.hasOwn(override, "excludeFiles")) {
449
+ const excludeFiles = override.excludeFiles;
450
+ if (typeof excludeFiles === "string" ||
451
+ Array.isArray(excludeFiles)) {
452
+ inheritedOverride.excludeFiles =
453
+ normalizeOverrideFiles(excludeFiles);
454
+ }
455
+ }
456
+ if (Object.hasOwn(override, "options")) {
457
+ const inheritedOptions = inheritedSourceOverride.options;
458
+ const overrideOptions = override.options;
459
+ inheritedOverride.options = {
460
+ ...(typeof inheritedOptions === "object"
461
+ ? inheritedOptions
462
+ : {}),
463
+ ...(typeof overrideOptions === "object"
464
+ ? overrideOptions
465
+ : {}),
466
+ };
467
+ }
468
+ else if (Object.hasOwn(inheritedSourceOverride, "options")) {
469
+ const inheritedOptions = inheritedSourceOverride.options;
470
+ if (typeof inheritedOptions === "object") {
471
+ inheritedOverride.options = inheritedOptions;
472
+ }
473
+ }
474
+ return inheritedOverride;
475
+ });
476
+ /* eslint-enable typefest/prefer-ts-extras-object-has-own, typefest/prefer-ts-extras-set-has -- Re-enable runtime-dependency preference rules after inherited override expansion. */
477
+ return {
478
+ $schema: "https://www.schemastore.org/prettierrc.json",
479
+ arrowParens: "always",
480
+ bracketSameLine: false,
481
+ bracketSpacing: true,
482
+ checkIgnorePragma: false,
483
+ cursorOffset: -1,
484
+ embeddedLanguageFormatting: "auto",
485
+ endOfLine: "auto",
486
+ experimentalOperatorPosition: "end",
487
+ experimentalTernaries: false,
488
+ htmlWhitespaceSensitivity: "css",
489
+ insertPragma: false,
490
+ jsxSingleQuote: false,
491
+ objectWrap: "preserve",
492
+ overrides: [...baseOverrides, ...inheritedOverridesExpanded],
493
+ printWidth: 80,
494
+ proseWrap: "preserve",
495
+ quoteProps: "as-needed",
496
+ requirePragma: false,
497
+ semi: true,
498
+ singleAttributePerLine: false,
499
+ singleQuote: false,
500
+ tabWidth: 4,
501
+ trailingComma: "es5",
502
+ useTabs: false,
503
+ vueIndentScriptAndStyle: false,
504
+ };
505
+ };
506
+ /** Shared Prettier configuration exported by default for package consumers. */
507
+ const sharedPrettierConfig = createConfig();
508
+ export default sharedPrettierConfig;
package/index.d.ts CHANGED
@@ -1,99 +1,2 @@
1
- import type { Config } from "prettier";
2
-
3
- /** Options for building a customized shared Prettier configuration. */
4
- export interface CreateConfigOptions {
5
- /** Additional extensionless INI-like file globs to include. */
6
- extensionlessIniFiles?: readonly string[];
7
- /** Additional extensionless JSON-like file globs to include. */
8
- extensionlessJsonFiles?: readonly string[];
9
- /**
10
- * Additional file-targeted overrides that inherit options from existing
11
- * base overrides.
12
- */
13
- inheritedOverrides?: readonly InheritedOverrideConfig[];
14
- /** Replace default INI-like globs instead of merging with them. */
15
- replaceDefaultExtensionlessIniFiles?: boolean;
16
- /** Replace default JSON-like globs instead of merging with them. */
17
- replaceDefaultExtensionlessJsonFiles?: boolean;
18
- }
19
-
20
- /**
21
- * Configuration for appending an override that inherits from an existing base
22
- * override.
23
- */
24
- export interface InheritedOverrideConfig {
25
- /** Optional file pattern(s) to exclude from the inherited override. */
26
- excludeFiles?: string | string[];
27
- /** File pattern(s) for the new inherited override to target. */
28
- files: string | string[];
29
- /**
30
- * Existing base override file pattern(s) to inherit options from (for
31
- * example "*.ts").
32
- */
33
- inheritFrom: string | string[];
34
- /**
35
- * Additional override options merged on top of the inherited source
36
- * options.
37
- */
38
- options?: Readonly<Partial<Config>>;
39
- }
40
-
41
- /** Named export — use when you want to spread or inspect individual options. */
42
- export declare const config: Readonly<Config>;
43
-
44
- /** Default extensionless INI-like globs used by this shared configuration. */
45
- export declare const defaultExtensionlessIniFiles: readonly string[];
46
- /** Default extensionless JSON-like globs used by this shared configuration. */
47
- export declare const defaultExtensionlessJsonFiles: readonly string[];
48
- /** Shared option preset used for extensionless INI-like override blocks. */
49
- export declare const extensionlessIniOptions: Readonly<Partial<Config>>;
50
- /** Shared option preset used for extensionless JSON-like override blocks. */
51
- export declare const extensionlessJsonOptions: Readonly<Partial<Config>>;
52
- /** Shared option preset used by the primary JS/TS override block. */
53
- export declare const typescriptOverrideOptions: Readonly<Partial<Config>>;
54
- /** Shared option preset used by the generic JSON override block. */
55
- export declare const jsonOverrideOptions: Readonly<Partial<Config>>;
56
- /** Shared option preset used by the package.json/package-lock override block. */
57
- export declare const packageJsonOverrideOptions: Readonly<Partial<Config>>;
58
- /** Shared option preset used by HTML override blocks. */
59
- export declare const htmlOverrideOptions: Readonly<Partial<Config>>;
60
- /** Shared option preset used by *.user.js override blocks. */
61
- export declare const userJavaScriptOverrideOptions: Readonly<Partial<Config>>;
62
- /** Shared option preset used by Markdown override blocks. */
63
- export declare const markdownOverrideOptions: Readonly<Partial<Config>>;
64
- /** Shared option preset used by MDX override blocks. */
65
- export declare const mdxOverrideOptions: Readonly<Partial<Config>>;
66
- /** Shared option preset used by TOML override blocks. */
67
- export declare const tomlOverrideOptions: Readonly<Partial<Config>>;
68
- /** Shared option preset used by XML-family override blocks. */
69
- export declare const xmlOverrideOptions: Readonly<Partial<Config>>;
70
- /** Shared option preset used by PHP override blocks. */
71
- export declare const phpOverrideOptions: Readonly<Partial<Config>>;
72
- /** Shared option preset used by SQL override blocks. */
73
- export declare const sqlOverrideOptions: Readonly<Partial<Config>>;
74
- /** Shared option preset used by PowerShell override blocks. */
75
- export declare const powershellOverrideOptions: Readonly<Partial<Config>>;
76
- /** Shared option preset used by CODEOWNERS override blocks. */
77
- export declare const codeownersOverrideOptions: Readonly<Partial<Config>>;
78
- /** Shared option preset used by shell script override blocks. */
79
- export declare const shellOverrideOptions: Readonly<Partial<Config>>;
80
- /** Shared option preset used by .properties override blocks. */
81
- export declare const propertiesOverrideOptions: Readonly<Partial<Config>>;
82
- /** Shared option preset used by .ini override blocks. */
83
- export declare const iniOverrideOptions: Readonly<Partial<Config>>;
84
-
85
- /** Build a shared config with merged or replaced extensionless override globs. */
86
- export declare function createConfig(
87
- options?: Readonly<CreateConfigOptions>
88
- ): Config;
89
-
90
- /**
91
- * Default export (bound as `prettierConfig`) — use this form to avoid
92
- * triggering `import-x/no-named-as-default` in consuming projects:
93
- *
94
- * ```js
95
- * import prettierConfig from "prettier-config-nick2bad4u";
96
- * ```
97
- */
98
- declare const prettierConfig: Readonly<Config>;
99
- export default prettierConfig;
1
+ export * from "./dist/preset.mjs";
2
+ export { default } from "./dist/preset.mjs";