@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.
- package/README.md +165 -586
- package/dist/config.d.mts +10 -12
- package/dist/config.d.ts +10 -12
- package/dist/config.mjs +3 -4
- package/dist/eslint/index.d.mts +43 -4
- package/dist/eslint/index.d.ts +43 -4
- package/package.json +12 -11
- package/presets/base/AGENTS.md +0 -5
- package/presets/base/github/workflows/streamctl-upgrade.yml +22 -8
- package/presets/base/pnpm-workspace.yaml +1 -0
- package/presets/base/preset.json +6 -2
- package/presets/config.template.ts +2 -3
- package/presets/nuxt-app/Dockerfile +2 -1
- package/presets/nuxt-app/github/workflows/ci.yml +6 -6
- package/presets/nuxt-app/preset.json +18 -20
- package/presets/nuxt-app/templates/ci/e2e-job.yml +3 -3
- package/presets/nuxt-app/templates/ci/test-job.yml +3 -3
- package/dist/shared/base-config.BoberVUk.d.mts +0 -43
- package/dist/shared/base-config.BoberVUk.d.ts +0 -43
|
@@ -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 };
|