@ciridae/configs
Shared frontend configuration for Ciridae projects.
ESLint
import { strictReactAppConfig } from "@ciridae/configs/eslint"
export default strictReactAppConfig()
Prettier
export { default } from "@ciridae/configs/prettier" with { type: "json" }
TypeScript
{
"extends": "@ciridae/configs/tsconfig/frontend-app.json"
}
Vite
import { sentrySourceMaps, versionManifest } from "@ciridae/configs/vite"
export default defineConfig(({ mode }) => ({
plugins: [
versionManifest({ buildSha: process.env.VITE_BUILD_SHA ?? "development" }),
sentrySourceMaps({ mode }),
],
}))
versionManifest writes version.json beside the bundle so an open tab can
tell a newer build is deployed. sentrySourceMaps uploads production source
maps when SENTRY_ORG, SENTRY_PROJECT, and SENTRY_AUTH_TOKEN are set.