···22import { profilesTable } from "@cookware/database/schema";
33import { is } from '@atcute/lexicons';
44import { BlueRecipesActorProfile } from "@cookware/lexicons";
55-import { CommitOperation } from "@atcute/jetstream";
66-import { Logger } from "pino";
77-import { AtprotoDid } from "@atcute/lexicons/syntax";
55+import type { CommitOperation } from "@atcute/jetstream";
66+import type { Logger } from "pino";
77+import type { AtprotoDid } from "@atcute/lexicons/syntax";
88import { RedisClient } from "bun";
99import { CompositeDidDocumentResolver, PlcDidDocumentResolver, WebDidDocumentResolver } from "@atcute/identity-resolver";
1010import env from "../config.js";
+3-3
apps/ingester/src/ingesters/recipe.ts
···22import { recipeTable } from "@cookware/database/schema";
33import { is } from '@atcute/lexicons';
44import { BlueRecipesFeedRecipe } from "@cookware/lexicons";
55-import { CommitOperation } from "@atcute/jetstream";
66-import { Logger } from "pino";
77-import { AtprotoDid } from "@atcute/lexicons/syntax";
55+import type { CommitOperation } from "@atcute/jetstream";
66+import type { Logger } from "pino";
77+import type { AtprotoDid } from "@atcute/lexicons/syntax";
8899export const ingestRecipe = async (did: AtprotoDid, commit: CommitOperation, logger: Logger) => {
1010 if (commit.operation == 'create' || commit.operation == 'update') {
+52-29
apps/web/README.md
···4455Currently, two official plugins are available:
6677-- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
88-- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
77+- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
88+- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
99+1010+## React Compiler
1111+1212+The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
9131014## Expanding the ESLint configuration
11151212-If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
1616+If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
1717+1818+```js
1919+export default defineConfig([
2020+ globalIgnores(['dist']),
2121+ {
2222+ files: ['**/*.{ts,tsx}'],
2323+ extends: [
2424+ // Other configs...
13251414-- Configure the top-level `parserOptions` property like this:
2626+ // Remove tseslint.configs.recommended and replace with this
2727+ tseslint.configs.recommendedTypeChecked,
2828+ // Alternatively, use this for stricter rules
2929+ tseslint.configs.strictTypeChecked,
3030+ // Optionally, add this for stylistic rules
3131+ tseslint.configs.stylisticTypeChecked,
15321616-```js
1717-export default tseslint.config({
1818- languageOptions: {
1919- // other options...
2020- parserOptions: {
2121- project: ['./tsconfig.node.json', './tsconfig.app.json'],
2222- tsconfigRootDir: import.meta.dirname,
3333+ // Other configs...
3434+ ],
3535+ languageOptions: {
3636+ parserOptions: {
3737+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
3838+ tsconfigRootDir: import.meta.dirname,
3939+ },
4040+ // other options...
2341 },
2442 },
2525-})
4343+])
2644```
27452828-- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
2929-- Optionally add `...tseslint.configs.stylisticTypeChecked`
3030-- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
4646+You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
31473248```js
3349// eslint.config.js
3434-import react from 'eslint-plugin-react'
5050+import reactX from 'eslint-plugin-react-x'
5151+import reactDom from 'eslint-plugin-react-dom'
35523636-export default tseslint.config({
3737- // Set the react version
3838- settings: { react: { version: '18.3' } },
3939- plugins: {
4040- // Add the react plugin
4141- react,
4242- },
4343- rules: {
4444- // other rules...
4545- // Enable its recommended rules
4646- ...react.configs.recommended.rules,
4747- ...react.configs['jsx-runtime'].rules,
5353+export default defineConfig([
5454+ globalIgnores(['dist']),
5555+ {
5656+ files: ['**/*.{ts,tsx}'],
5757+ extends: [
5858+ // Other configs...
5959+ // Enable lint rules for React
6060+ reactX.configs['recommended-typescript'],
6161+ // Enable lint rules for React DOM
6262+ reactDom.configs.recommended,
6363+ ],
6464+ languageOptions: {
6565+ parserOptions: {
6666+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
6767+ tsconfigRootDir: import.meta.dirname,
6868+ },
6969+ // other options...
7070+ },
4871 },
4949-})
7272+])
5073```