@zayne-labs/prettier-config 0.9.12 → 0.9.14
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/dist/index.d.ts +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ declare const baseConfig: {
|
|
|
6
6
|
experimentalOperatorPosition: "start";
|
|
7
7
|
experimentalTernaries: true;
|
|
8
8
|
jsxSingleQuote: false;
|
|
9
|
-
printWidth:
|
|
9
|
+
printWidth: 107;
|
|
10
10
|
singleQuote: false;
|
|
11
|
-
tabWidth:
|
|
11
|
+
tabWidth: 3;
|
|
12
12
|
trailingComma: "es5";
|
|
13
13
|
useTabs: true;
|
|
14
14
|
} & {
|
|
@@ -44,23 +44,23 @@ type ConfigWithTailwind = Omit<Config, "plugins"> & {
|
|
|
44
44
|
* - [prettier-plugin-merge](https://github.com/ony3000/prettier-plugin-merge)
|
|
45
45
|
*/
|
|
46
46
|
declare const configWithTailwind: {
|
|
47
|
-
customAttributes:
|
|
48
|
-
customFunctions:
|
|
49
|
-
plugins:
|
|
50
|
-
tailwindAttributes:
|
|
51
|
-
tailwindFunctions:
|
|
47
|
+
customAttributes: ["classNames", "classes"];
|
|
48
|
+
customFunctions: ["cnMerge", "cnJoin", "cn", "tv", "tw"];
|
|
49
|
+
plugins: ["prettier-plugin-tailwindcss", "prettier-plugin-classnames", "prettier-plugin-merge"];
|
|
50
|
+
tailwindAttributes: ["classNames", "classes"];
|
|
51
|
+
tailwindFunctions: ["cnMerge", "cnJoin", "cn", "tv", "tw"];
|
|
52
52
|
tailwindStylesheet: "./tailwind.css";
|
|
53
53
|
experimentalOperatorPosition: "start";
|
|
54
54
|
experimentalTernaries: true;
|
|
55
55
|
jsxSingleQuote: false;
|
|
56
|
-
printWidth:
|
|
56
|
+
printWidth: 107;
|
|
57
57
|
singleQuote: false;
|
|
58
|
-
tabWidth:
|
|
58
|
+
tabWidth: 3;
|
|
59
59
|
trailingComma: "es5";
|
|
60
60
|
useTabs: true;
|
|
61
61
|
$inferUnion: "singleQuote" | "jsxSingleQuote" | "trailingComma" | "experimentalOperatorPosition" | "experimentalTernaries" | "printWidth" | "tabWidth" | "useTabs";
|
|
62
62
|
} & {
|
|
63
|
-
$inferUnion: "singleQuote" | "jsxSingleQuote" | "trailingComma" | "plugins" | "experimentalOperatorPosition" | "experimentalTernaries" | "printWidth" | "tabWidth" | "useTabs" | "customAttributes" | "customFunctions" | "tailwindAttributes" | "tailwindFunctions" | "tailwindStylesheet"
|
|
63
|
+
$inferUnion: "singleQuote" | "jsxSingleQuote" | "trailingComma" | "plugins" | "experimentalOperatorPosition" | "experimentalTernaries" | "printWidth" | "tabWidth" | "useTabs" | "$inferUnion" | "customAttributes" | "customFunctions" | "tailwindAttributes" | "tailwindFunctions" | "tailwindStylesheet";
|
|
64
64
|
};
|
|
65
65
|
type ConfigWithAstro = Omit<Config, "plugins"> & {
|
|
66
66
|
astroAllowShorthand?: boolean;
|
|
@@ -83,14 +83,14 @@ declare const configWithAstro: {
|
|
|
83
83
|
experimentalOperatorPosition: "start";
|
|
84
84
|
experimentalTernaries: true;
|
|
85
85
|
jsxSingleQuote: false;
|
|
86
|
-
printWidth:
|
|
86
|
+
printWidth: 107;
|
|
87
87
|
singleQuote: false;
|
|
88
|
-
tabWidth:
|
|
88
|
+
tabWidth: 3;
|
|
89
89
|
trailingComma: "es5";
|
|
90
90
|
useTabs: true;
|
|
91
91
|
$inferUnion: "singleQuote" | "jsxSingleQuote" | "trailingComma" | "experimentalOperatorPosition" | "experimentalTernaries" | "printWidth" | "tabWidth" | "useTabs";
|
|
92
92
|
} & {
|
|
93
|
-
$inferUnion: "singleQuote" | "jsxSingleQuote" | "trailingComma" | "plugins" | "experimentalOperatorPosition" | "experimentalTernaries" | "printWidth" | "tabWidth" | "useTabs" | "
|
|
93
|
+
$inferUnion: "singleQuote" | "jsxSingleQuote" | "trailingComma" | "plugins" | "experimentalOperatorPosition" | "experimentalTernaries" | "printWidth" | "tabWidth" | "useTabs" | "$inferUnion" | "overrides";
|
|
94
94
|
};
|
|
95
95
|
//#endregion
|
|
96
96
|
export { ConfigWithAstro, ConfigWithTailwind, baseConfig, configWithAstro, configWithTailwind };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/configs.ts"],"sourcesContent":["import { type AnyString, defineEnum, defineEnumDeep } from \"@zayne-labs/toolkit-type-helpers\";\nimport type { Config } from \"prettier\";\n\nexport const baseConfig = defineEnum({\n\texperimentalOperatorPosition: \"start\",\n\texperimentalTernaries: true,\n\tjsxSingleQuote: false,\n\tprintWidth: 107,\n\tsingleQuote: false,\n\ttabWidth: 3,\n\ttrailingComma: \"es5\",\n\tuseTabs: true,\n} satisfies Config
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/configs.ts"],"sourcesContent":["import { type AnyString, defineEnum, defineEnumDeep } from \"@zayne-labs/toolkit-type-helpers\";\nimport type { Config } from \"prettier\";\n\nexport const baseConfig = defineEnum({\n\texperimentalOperatorPosition: \"start\",\n\texperimentalTernaries: true,\n\tjsxSingleQuote: false,\n\tprintWidth: 107,\n\tsingleQuote: false,\n\ttabWidth: 3,\n\ttrailingComma: \"es5\",\n\tuseTabs: true,\n}) satisfies Config;\n\nexport type ConfigWithTailwind = Omit<Config, \"plugins\"> & {\n\t/**\n\t * @docs [prettier-plugin-classnames#custom-attributes](https://github.com/ony3000/prettier-plugin-classnames#custom-attributes)\n\t */\n\tcustomAttributes?: string[];\n\t/**\n\t * @docs [prettier-plugin-classnames#custom-functions](https://github.com/ony3000/prettier-plugin-classnames#custom-functions)\n\t */\n\tcustomFunctions?: string[];\n\t/**\n\t * @docs [prettier-plugin-classnames#ending-position](https://github.com/ony3000/prettier-plugin-classnames#ending-position)\n\t */\n\tendPosition?: \"absolute\" | \"relative\";\n\tplugins?: Array<\n\t\t// eslint-disable-next-line perfectionist/sort-union-types -- prettier-plugin-tailwindcss should come before prettier-plugin-classnames\n\t\t\"prettier-plugin-tailwindcss\" | \"prettier-plugin-classnames\" | \"prettier-plugin-merge\" | AnyString\n\t>;\n\ttailwindAttributes?: string[];\n\ttailwindConfig?: `./${string}`;\n\ttailwindFunctions?: string[];\n\ttailwindPreserveDuplicates?: boolean;\n\ttailwindPreserveWhitespace?: boolean;\n\ttailwindStylesheet?: `./${string}`;\n};\n\n/**\n * @description Prettier configuration with Tailwind CSS support.\n *\n * @docs\n * - [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss)\n * - [prettier-plugin-classnames](https://github.com/ony3000/prettier-plugin-classnames)\n * - [prettier-plugin-merge](https://github.com/ony3000/prettier-plugin-merge)\n */\nexport const configWithTailwind = defineEnumDeep({\n\t...baseConfig,\n\n\tcustomAttributes: [\"classNames\", \"classes\"],\n\tcustomFunctions: [\"cnMerge\", \"cnJoin\", \"cn\", \"tv\", \"tw\"],\n\tplugins: [\"prettier-plugin-tailwindcss\", \"prettier-plugin-classnames\", \"prettier-plugin-merge\"],\n\ttailwindAttributes: [\"classNames\", \"classes\"],\n\ttailwindFunctions: [\"cnMerge\", \"cnJoin\", \"cn\", \"tv\", \"tw\"],\n\ttailwindStylesheet: \"./tailwind.css\",\n}) satisfies ConfigWithTailwind;\n\nexport type ConfigWithAstro = Omit<Config, \"plugins\"> & {\n\tastroAllowShorthand?: boolean;\n\tastroSkipFrontmatter?: boolean;\n\tplugins?: Array<\"prettier-plugin-astro\" | AnyString>;\n};\n\n/**\n * @description Prettier configuration with Astro support.\n *\n * @docs [prettier-plugin-astro](https://github.com/withastro/prettier-plugin-astro#configuration)\n */\n\nexport const configWithAstro = defineEnumDeep({\n\t...baseConfig,\n\n\toverrides: [\n\t\t{\n\t\t\tfiles: \"*.astro\",\n\t\t\toptions: {\n\t\t\t\tparser: \"astro\",\n\t\t\t},\n\t\t},\n\t],\n\tplugins: [\"prettier-plugin-astro\"],\n}) satisfies ConfigWithAstro;\n"],"mappings":";;;AAGA,MAAa,aAAa,WAAW;CACpC,8BAA8B;CAC9B,uBAAuB;CACvB,gBAAgB;CAChB,YAAY;CACZ,aAAa;CACb,UAAU;CACV,eAAe;CACf,SAAS;;;;;;;;;;AAoCV,MAAa,qBAAqB,eAAe;CAChD,GAAG;CAEH,kBAAkB,CAAC,cAAc;CACjC,iBAAiB;EAAC;EAAW;EAAU;EAAM;EAAM;;CACnD,SAAS;EAAC;EAA+B;EAA8B;;CACvE,oBAAoB,CAAC,cAAc;CACnC,mBAAmB;EAAC;EAAW;EAAU;EAAM;EAAM;;CACrD,oBAAoB;;;;;;;AAerB,MAAa,kBAAkB,eAAe;CAC7C,GAAG;CAEH,WAAW,CACV;EACC,OAAO;EACP,SAAS,EACR,QAAQ;;CAIX,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/prettier-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.14",
|
|
5
5
|
"description": "Zayne Labs' Prettier config",
|
|
6
6
|
"author": "Ryan Zayne",
|
|
7
7
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publint": "^0.3.12",
|
|
42
42
|
"tsdown": "^0.14.2",
|
|
43
43
|
"typescript": "5.9.2",
|
|
44
|
-
"@zayne-labs/tsconfig": "0.9.
|
|
44
|
+
"@zayne-labs/tsconfig": "0.9.14"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public",
|