Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ opensrc/
examples/stripe-app/*/stripe-app.json
examples/stripe-app/*/.build
examples/stripe-app/*/yarn.lock

.types
255 changes: 255 additions & 0 deletions apps/web/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["nextjs", "react", "typescript"],
"categories": {
"correctness": "off"
},
"env": {
"serviceworker": true
},
"ignorePatterns": [
".source/**",
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
"dist/**"
],
"rules": {
"for-direction": "error",
"nextjs/google-font-display": "warn",
"nextjs/google-font-preconnect": "warn",
"nextjs/inline-script-id": "error",
"nextjs/next-script-for-ga": "warn",
"nextjs/no-assign-module-variable": "error",
"nextjs/no-async-client-component": "warn",
"nextjs/no-before-interactive-script-outside-document": "warn",
"nextjs/no-css-tags": "warn",
"nextjs/no-document-import-in-page": "error",
"nextjs/no-duplicate-head": "error",
"nextjs/no-head-element": "warn",
"nextjs/no-head-import-in-document": "error",
"nextjs/no-html-link-for-pages": "error",
"nextjs/no-img-element": "warn",
"nextjs/no-page-custom-font": "warn",
"nextjs/no-script-component-in-head": "error",
"nextjs/no-styled-jsx-in-document": "warn",
"nextjs/no-sync-scripts": "error",
"nextjs/no-title-in-document-head": "warn",
"nextjs/no-typos": "warn",
"nextjs/no-unwanted-polyfillio": "warn",
"no-array-constructor": "error",
"no-async-promise-executor": "error",
"no-case-declarations": "error",
"no-compare-neg-zero": "error",
"no-cond-assign": ["error", "except-parens"],
"no-constant-binary-expression": "error",
"no-constant-condition": [
"error",
{
"checkLoops": "allExceptWhileTrue"
}
],
"no-control-regex": "error",
"no-debugger": "error",
"no-delete-var": "error",
"no-dupe-else-if": "error",
"no-duplicate-case": "error",
"no-empty": [
"error",
{
"allowEmptyCatch": false
}
],
"no-empty-character-class": "error",
"no-empty-pattern": [
"error",
{
"allowObjectPatternsAsParameters": false
}
],
"no-empty-static-block": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": ["error", {}],
"no-fallthrough": [
"error",
{
"allowEmptyCase": false,
"reportUnusedFallthroughComment": false
}
],
"no-global-assign": [
"error",
{
"exceptions": []
}
],
"no-invalid-regexp": ["error", {}],
"no-irregular-whitespace": [
"error",
{
"skipComments": false,
"skipJSXText": false,
"skipRegExps": false,
"skipStrings": true,
"skipTemplates": false
}
],
"no-loss-of-precision": "error",
"no-misleading-character-class": [
"error",
{
"allowEscape": false
}
],
"no-nonoctal-decimal-escape": "error",
"no-prototype-builtins": "error",
"no-regex-spaces": "error",
"no-self-assign": [
"error",
{
"props": true
}
],
"no-shadow-restricted-names": [
"error",
{
"reportGlobalThis": false
}
],
"no-sparse-arrays": "error",
"no-unsafe-finally": "error",
"no-unsafe-optional-chaining": [
"error",
{
"disallowArithmeticOperators": false
}
],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": false,
"allowTaggedTemplates": false,
"allowTernary": false
}
],
"no-unused-labels": "error",
"no-unused-private-class-members": "error",
"no-unused-vars": "error",
"no-useless-backreference": "error",
"no-useless-catch": "error",
"no-useless-escape": [
"error",
{
"allowRegexCharacters": []
}
],
"no-var": "error",
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"prefer-rest-params": "error",
"prefer-spread": "error",
"react/display-name": "error",
"react/exhaustive-deps": "warn",
"react/jsx-key": "error",
"react/jsx-no-comment-textnodes": "error",
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-target-blank": "error",
"react/jsx-no-undef": "error",
"react/no-children-prop": "error",
"react/no-danger-with-children": "error",
"react/no-direct-mutation-state": "error",
"react/no-find-dom-node": "error",
"react/no-is-mounted": "error",
"react/no-render-return-value": "error",
"react/no-string-refs": "error",
"react/no-unescaped-entities": "error",
"react/no-unknown-property": "error",
"react/require-render-return": "error",
"react/rules-of-hooks": "error",
"require-yield": "error",
"typescript/ban-ts-comment": "error",
"typescript/no-duplicate-enum-values": "error",
"typescript/no-empty-object-type": "error",
"typescript/no-explicit-any": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-misused-new": "error",
"typescript/no-namespace": "error",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/no-require-imports": "error",
"typescript/no-this-alias": "error",
"typescript/no-unnecessary-type-constraint": "error",
"typescript/no-unsafe-declaration-merging": "error",
"typescript/no-unsafe-function-type": "error",
"typescript/no-wrapper-object-types": "error",
"typescript/prefer-as-const": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/triple-slash-reference": "error",
"use-isnan": [
"error",
{
"enforceForIndexOf": false,
"enforceForSwitchCase": true
}
],
"valid-typeof": [
"error",
{
"requireStringLiterals": false
}
]
},
"overrides": [
{
"files": ["**/*.js", "**/*.mjs", "**/*.cjs"],
"rules": {
"constructor-super": "error",
"getter-return": [
"error",
{
"allowImplicit": false
}
],
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-func-assign": "error",
"no-import-assign": "error",
"no-new-native-nonconstructor": "error",
"no-obj-calls": "error",
"no-redeclare": [
"error",
{
"builtinGlobals": true
}
],
"no-setter-return": "error",
"no-this-before-super": "error",
"no-undef": [
"error",
{
"typeof": false
}
],
"no-unreachable": "error",
"no-unsafe-negation": [
"error",
{
"enforceForOrderingRelations": false
}
],
"no-var": "off",
"no-with": "error",
"prefer-const": "off",
"prefer-rest-params": "off",
"prefer-spread": "off"
}
}
]
}
13 changes: 0 additions & 13 deletions apps/web/eslint.config.js

This file was deleted.

7 changes: 3 additions & 4 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "next build",
"start": "next start",
"test:routes": "node scripts/test-routes.mjs",
"lint": "eslint --max-warnings 0",
"lint": "oxlint --deny-warnings",
"check-types": "fumadocs-mdx && next typegen && tsc --noEmit"
},
"dependencies": {
Expand Down Expand Up @@ -61,17 +61,16 @@
"zod": "^4.3.6"
},
"devDependencies": {
"@internal/eslint-config": "workspace:*",
"@internal/typescript-config": "workspace:*",
"@tailwindcss/postcss": "^4.1.18",
"@types/mdx": "^2.0.13",
"@types/node": "^22.15.3",
"@types/react": "19.2.3",
"@types/react-dom": "19.2.3",
"eslint": "^9.39.1",
"oxlint": "^1.91.0",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.18",
"tw-animate-css": "^1.4.0",
"typescript": "5.9.2"
"typescript": "7.0.2"
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@
"prettier": "^3.7.4",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"rolldown": "1.2.16",
"rolldown-plugin-dts": "0.29.0",
"satori": "0.25.0",
"solid-js": "^1.9.11",
"svelte": "^5.0.0",
"turbo": "^2.9.7",
"typescript": "5.9.2",
"typescript": "7.0.2",
"vite-plugin-solid": "^2.11.10",
"vitest": "^4.0.17"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"dev": "tsup --watch src",
"check-types": "tsc --noEmit",
"typecheck": "tsc --noEmit"
},
Expand All @@ -59,7 +59,7 @@
"@internal/typescript-config": "workspace:*",
"chat": "^4.43.0",
"tsup": "^8.0.2",
"typescript": "^5.4.5",
"typescript": "^7.0.2",
"zod": "^4.0.0"
}
}
12 changes: 12 additions & 0 deletions packages/chat/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"noEmit": false,
"emitDeclarationOnly": true,
"declarationMap": false
},
"include": ["src"],
"exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/*.test.tsx"]
}
11 changes: 8 additions & 3 deletions packages/chat/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { defineConfig } from "tsup";
import { emitTypes } from "../../scripts/emit-types.mjs";

export default defineConfig({
export default defineConfig((options) => ({
entry: ["src/index.ts"],
format: ["cjs", "esm"],
dts: true,
sourcemap: true,
clean: true,
external: ["@json-render/core", "chat", "zod"],
});
onSuccess: async () => {
await emitTypes(__dirname, {
watch: Boolean(options.watch),
});
},
}));
4 changes: 2 additions & 2 deletions packages/codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"dev": "tsup --watch src",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -46,6 +46,6 @@
"devDependencies": {
"@internal/typescript-config": "workspace:*",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
"typescript": "^7.0.2"
}
}
12 changes: 12 additions & 0 deletions packages/codegen/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"noEmit": false,
"emitDeclarationOnly": true,
"declarationMap": false
},
"include": ["src"],
"exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/*.test.tsx"]
}
Loading
Loading