README.md46 lines · main
1# @briven/config
2
3Shared TypeScript, ESLint, Prettier, and Tailwind v4 config for the briven monorepo.
4
5## Usage
6
7**tsconfig** — extend one of the presets from each app / package:
8
9```json
10{
11 "extends": "@briven/config/tsconfig/next.json"
12}
13```
14
15Presets:
16
17| Preset | Use for |
18| -------------------- | ------------------------------------------- |
19| `base.json` | library-level base; other presets extend it |
20| `next.json` | Next.js apps (App Router) |
21| `node.json` | Node 20 LTS services and scripts |
22| `bun.json` | `apps/api` and anything running on Bun |
23| `react-library.json` | `packages/client-react`, `packages/ui` |
24
25**eslint** — in each app's `eslint.config.js`:
26
27```js
28import next from '@briven/config/eslint/next';
29export default next;
30```
31
32Presets:
33
34| Preset | Use for |
35| ------- | ------------------- |
36| `base` | any TypeScript code |
37| `react` | React + hooks |
38| `next` | Next.js apps |
39
40**tailwind** — in each app's global stylesheet:
41
42```css
43@import '@briven/config/tailwind/theme.css';
44```
45
46This imports `tailwindcss` and declares all brand tokens from `BRAND.md §3.2`. Do not redeclare these tokens locally.
Preview

@briven/config

Shared TypeScript, ESLint, Prettier, and Tailwind v4 config for the briven monorepo.

Usage

tsconfig — extend one of the presets from each app / package:

{
  "extends": "@briven/config/tsconfig/next.json"
}

Presets:

PresetUse for
base.jsonlibrary-level base; other presets extend it
next.jsonNext.js apps (App Router)
node.jsonNode 20 LTS services and scripts
bun.jsonapps/api and anything running on Bun
react-library.jsonpackages/client-react, packages/ui

eslint — in each app's eslint.config.js:

import next from '@briven/config/eslint/next';
export default next;

Presets:

PresetUse for
baseany TypeScript code
reactReact + hooks
nextNext.js apps

tailwind — in each app's global stylesheet:

@import '@briven/config/tailwind/theme.css';

This imports tailwindcss and declares all brand tokens from BRAND.md §3.2. Do not redeclare these tokens locally.