@sidebase/base-config 0.2.2 → 0.3.1

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.
@@ -1,43 +0,0 @@
1
- /** Options for the published ESLint factory (`@sidebase/base-config/eslint`). */
2
- interface CreateSidebaseEslintOptions {
3
- /** Zod `.extend()/.merge()/.passthrough()` bans and/or `import * as z` enforcement. Default `"none"` (opt-in). */
4
- zod?: "full" | "import-style" | "none";
5
- /** Allow-list of permitted console methods, or a hard error. Default `"error"`. */
6
- console?: string[] | "error";
7
- /** Ban `publicProcedure` in `server/trpc/routers/**`. Default `false`. */
8
- trpcGuard?: boolean;
9
- /** Restrict `~~/prisma/` client imports on the app side. Default `false`. */
10
- prismaImportGuard?: boolean;
11
- /** `ts/consistent-type-definitions`. Default `"interface"`. */
12
- typeDefStyle?: "interface" | "type";
13
- /** Paths banned from direct import (Nuxt auto-import). Default `["utils/", "composables/", "~~/shared/types/"]`. */
14
- autoImportPaths?: string[];
15
- /**
16
- * Subset of {@link autoImportPaths} where `import type { ... }` is still allowed
17
- * (value imports stay banned), for repos that import a path like `composables/`
18
- * only for its types. Default `[]` (opt-in).
19
- */
20
- autoImportTypeOnly?: string[];
21
- /**
22
- * Files excluded from antfu's type-aware program (only relevant when
23
- * type-aware). Default excludes `prisma.config.ts`, `eslint.config.ts`, the
24
- * root `streamctl.config.ts`, and the legacy `.streamctl` TS files (see
25
- * `resolveEslintOptions`).
26
- */
27
- ignoresTypeAware?: string[];
28
- /**
29
- * Globs for test / spec / story files where the `process.env` + auto-import
30
- * bans are relaxed. Defaults to the standard `.test.`/`.spec.`/
31
- * `.stories.` `ts`/`tsx` globs (see `resolveEslintOptions`).
32
- */
33
- testFilePattern?: string[];
34
- }
35
- /**
36
- * Runtime list of every {@link CreateSidebaseEslintOptions} key. The `satisfies` map
37
- * keeps it exhaustive: a new option fails to compile until it is listed here, so the
38
- * validator allow-list cannot drift.
39
- */
40
- declare const ESLINT_OPTION_KEYS: string[];
41
-
42
- export { ESLINT_OPTION_KEYS as E };
43
- export type { CreateSidebaseEslintOptions as C };
@@ -1,43 +0,0 @@
1
- /** Options for the published ESLint factory (`@sidebase/base-config/eslint`). */
2
- interface CreateSidebaseEslintOptions {
3
- /** Zod `.extend()/.merge()/.passthrough()` bans and/or `import * as z` enforcement. Default `"none"` (opt-in). */
4
- zod?: "full" | "import-style" | "none";
5
- /** Allow-list of permitted console methods, or a hard error. Default `"error"`. */
6
- console?: string[] | "error";
7
- /** Ban `publicProcedure` in `server/trpc/routers/**`. Default `false`. */
8
- trpcGuard?: boolean;
9
- /** Restrict `~~/prisma/` client imports on the app side. Default `false`. */
10
- prismaImportGuard?: boolean;
11
- /** `ts/consistent-type-definitions`. Default `"interface"`. */
12
- typeDefStyle?: "interface" | "type";
13
- /** Paths banned from direct import (Nuxt auto-import). Default `["utils/", "composables/", "~~/shared/types/"]`. */
14
- autoImportPaths?: string[];
15
- /**
16
- * Subset of {@link autoImportPaths} where `import type { ... }` is still allowed
17
- * (value imports stay banned), for repos that import a path like `composables/`
18
- * only for its types. Default `[]` (opt-in).
19
- */
20
- autoImportTypeOnly?: string[];
21
- /**
22
- * Files excluded from antfu's type-aware program (only relevant when
23
- * type-aware). Default excludes `prisma.config.ts`, `eslint.config.ts`, the
24
- * root `streamctl.config.ts`, and the legacy `.streamctl` TS files (see
25
- * `resolveEslintOptions`).
26
- */
27
- ignoresTypeAware?: string[];
28
- /**
29
- * Globs for test / spec / story files where the `process.env` + auto-import
30
- * bans are relaxed. Defaults to the standard `.test.`/`.spec.`/
31
- * `.stories.` `ts`/`tsx` globs (see `resolveEslintOptions`).
32
- */
33
- testFilePattern?: string[];
34
- }
35
- /**
36
- * Runtime list of every {@link CreateSidebaseEslintOptions} key. The `satisfies` map
37
- * keeps it exhaustive: a new option fails to compile until it is listed here, so the
38
- * validator allow-list cannot drift.
39
- */
40
- declare const ESLINT_OPTION_KEYS: string[];
41
-
42
- export { ESLINT_OPTION_KEYS as E };
43
- export type { CreateSidebaseEslintOptions as C };