@adamhl8/configs 0.15.23 → 0.16.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.
- package/dist/knip-preprocessor.js +7 -0
- package/dist/knip-preprocessor.js.map +1 -1
- package/dist/knip.d.ts +1155 -5
- package/dist/knip.d.ts.map +1 -1
- package/dist/knip.js.map +1 -1
- package/dist/prettier.d.ts +42 -5
- package/dist/prettier.d.ts.map +1 -1
- package/dist/prettier.js.map +1 -1
- package/dist/ts-import-fix +2783 -0
- package/dist/tsdown.d.ts +68 -10
- package/dist/tsdown.d.ts.map +1 -1
- package/dist/tsdown.js.map +1 -1
- package/dist/utils.d.ts +20 -6
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +4 -5
- package/dist/utils.js.map +1 -1
- package/package.json +9 -3
package/dist/knip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip.d.ts","names":[],"sources":["../src/knip.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"knip.d.ts","names":[],"sources":["../src/knip.ts"],"sourcesContent":[],"mappings":";;;cAca;;;IAAA,KAAA,CAAA,EAAA,MAA2E,GAAA,MAAA,EAAA,GAAA,SAAA;IAAA,OAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;;;;;;;;;;IAC6muP,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;;;MAAoP,SAAA;;IAA0rzB,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;IAA+G,KAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;IAA8D,OAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA,GAAA,SAAA;MAAyD,SAAA;OAA4D,CAAA,EAAA,MAAA,GAAA,OAAA,GAAA,MAAA,EAAA,GAAA;;;IAD93iR,OAAA,CAAA,EAAA,MAAA,G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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA0rzB;;+BAA+G;mCAA8D;8BAAyD;iCAA4D"}
|
package/dist/knip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip.js","names":[
|
|
1
|
+
{"version":3,"file":"knip.js","names":[],"sources":["../src/knip.ts"],"sourcesContent":["import type { KnipConfig } from \"knip\"\n\nimport { createMergeConfigFn } from \"./utils.ts\"\n\n// Normally, specifying the `./src/index.ts` entry would cause knip to complain about a redundant entry because it gets automatically included via the tsdown plugin.\n// However, in projects that _don't_ use tsdown, the `./src/index.ts` entry would be missing entirely.\n// To handle this, we specify it and disable the tsdown plugin. This makes knip work in both cases.\n\nconst baseConfig = {\n entry: [\"./src/index.ts\", \"**/*.test.ts\", \"./tsdown.config.ts\"],\n project: [\"**\"],\n tsdown: false,\n} as const satisfies KnipConfig\n\nexport const knipConfig = createMergeConfigFn<KnipConfig, typeof baseConfig>(baseConfig)\n"],"mappings":";AAcA,MAAa,aAAa,oBANP;CACjB,OAAO;EAAC;EAAkB;EAAgB;EAAqB;CAC/D,SAAS,CAAC,KAAK;CACf,QAAQ;CACT,CAEuF"}
|
package/dist/prettier.d.ts
CHANGED
|
@@ -1,8 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { OptionalMergeConfigFn } from "./utils.js";
|
|
2
|
+
import * as prettier0 from "prettier";
|
|
3
3
|
|
|
4
4
|
//#region src/prettier.d.ts
|
|
5
|
-
declare const
|
|
5
|
+
declare const prettierConfig: OptionalMergeConfigFn<{
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
overrides?: Array<{
|
|
8
|
+
files: string | string[];
|
|
9
|
+
excludeFiles?: string | string[];
|
|
10
|
+
options?: prettier0.Options;
|
|
11
|
+
}>;
|
|
12
|
+
semi?: boolean;
|
|
13
|
+
singleQuote?: boolean;
|
|
14
|
+
jsxSingleQuote?: boolean;
|
|
15
|
+
trailingComma?: "none" | "es5" | "all";
|
|
16
|
+
bracketSpacing?: boolean;
|
|
17
|
+
objectWrap?: "preserve" | "collapse";
|
|
18
|
+
bracketSameLine?: boolean;
|
|
19
|
+
rangeStart?: number;
|
|
20
|
+
rangeEnd?: number;
|
|
21
|
+
parser?: prettier0.LiteralUnion<prettier0.BuiltInParserName>;
|
|
22
|
+
filepath?: string;
|
|
23
|
+
requirePragma?: boolean;
|
|
24
|
+
insertPragma?: boolean;
|
|
25
|
+
checkIgnorePragma?: boolean;
|
|
26
|
+
proseWrap?: "always" | "never" | "preserve";
|
|
27
|
+
arrowParens?: "avoid" | "always";
|
|
28
|
+
plugins?: Array<string | URL | prettier0.Plugin>;
|
|
29
|
+
htmlWhitespaceSensitivity?: "css" | "strict" | "ignore";
|
|
30
|
+
endOfLine?: "auto" | "lf" | "crlf" | "cr";
|
|
31
|
+
quoteProps?: "as-needed" | "consistent" | "preserve";
|
|
32
|
+
vueIndentScriptAndStyle?: boolean;
|
|
33
|
+
embeddedLanguageFormatting?: "auto" | "off";
|
|
34
|
+
singleAttributePerLine?: boolean;
|
|
35
|
+
experimentalOperatorPosition?: "start" | "end";
|
|
36
|
+
experimentalTernaries?: boolean;
|
|
37
|
+
jsxBracketSameLine?: boolean;
|
|
38
|
+
printWidth?: number;
|
|
39
|
+
tabWidth?: number;
|
|
40
|
+
useTabs?: boolean;
|
|
41
|
+
parentParser?: string | undefined | undefined;
|
|
42
|
+
__embeddedInHtml?: boolean | undefined | undefined;
|
|
43
|
+
}, {
|
|
6
44
|
readonly printWidth: 120;
|
|
7
45
|
readonly semi: false;
|
|
8
46
|
readonly plugins: ["@prettier/plugin-xml", "prettier-plugin-sh", "prettier-plugin-toml", "prettier-plugin-astro", "prettier-plugin-tailwindcss"];
|
|
@@ -18,8 +56,7 @@ declare const baseConfig: {
|
|
|
18
56
|
readonly parser: "astro";
|
|
19
57
|
};
|
|
20
58
|
}];
|
|
21
|
-
}
|
|
22
|
-
declare const prettierConfig: MergeConfigFn<Config, typeof baseConfig>;
|
|
59
|
+
}>;
|
|
23
60
|
//#endregion
|
|
24
61
|
export { prettierConfig };
|
|
25
62
|
//# sourceMappingURL=prettier.d.ts.map
|
package/dist/prettier.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","names":[],"sources":["../src/prettier.ts"],"sourcesContent":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","names":[],"sources":["../src/prettier.ts"],"sourcesContent":[],"mappings":";;;;cAoCa;;;;IAAA,YAAA,CAAmF,EAAA,MAAA,GAAA,MAAA,EAAA;IAAA,OAAA,CAAA,EAAA,SAAA,CACwpP,OADxpP;;;;;;;;;EAArE,UAAA,CAAA,EAAA,MAAA"}
|
package/dist/prettier.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.js","names":[
|
|
1
|
+
{"version":3,"file":"prettier.js","names":[],"sources":["../src/prettier.ts"],"sourcesContent":["import type { Config } from \"prettier\"\nimport type { Simplify } from \"type-fest\"\n\nimport { createMergeConfigFn } from \"./utils.ts\"\n\n// for some reason the Config type from prettier doesn't satisfy AnyObj unless we simplify it\ntype PrettierConfig = Simplify<Config>\n\nconst baseConfig = {\n printWidth: 120,\n semi: false,\n plugins: [\n \"@prettier/plugin-xml\",\n \"prettier-plugin-sh\",\n \"prettier-plugin-toml\",\n \"prettier-plugin-astro\",\n \"prettier-plugin-tailwindcss\",\n ],\n tailwindStylesheet: \"./src/global.css\",\n overrides: [\n {\n // https://github.com/prettier/prettier/issues/15956\n files: \"*.jsonc\",\n options: {\n trailingComma: \"none\",\n },\n },\n {\n files: \"*.astro\",\n options: {\n parser: \"astro\",\n },\n },\n ],\n} as const satisfies PrettierConfig\n\nexport const prettierConfig = createMergeConfigFn<PrettierConfig, typeof baseConfig>(baseConfig)\n"],"mappings":";AAoCA,MAAa,iBAAiB,oBA5BX;CACjB,YAAY;CACZ,MAAM;CACN,SAAS;EACP;EACA;EACA;EACA;EACA;EACD;CACD,oBAAoB;CACpB,WAAW,CACT;EAEE,OAAO;EACP,SAAS,EACP,eAAe,QAChB;EACF,EACD;EACE,OAAO;EACP,SAAS,EACP,QAAQ,SACT;EACF,CACF;CACF,CAE+F"}
|