Skip to content
Merged
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: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
script: ["fmt", "lint:check", "ts:check", "test"]
script: ["fmt", "lint", "ts:check", "test"]
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
uses: actions/setup-node@v4
with:
cache: pnpm # cache pnpm store
node-version: 20.x
node-version: 22.x

- name: Install packages
run: pnpm install
Expand Down
51 changes: 51 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "import", "react"],
"env": {
"node": true,
"es2022": true
},
"ignorePatterns": [".open-next", "dist", ".wrangler", "node_modules", ".sst"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-redeclare": "error",
"no-unused-vars": "off",
"no-delete-var": "off",
"no-param-reassign": "warn",
"no-sequences": "warn",
"unicorn/prefer-node-protocol": "error",
"import/first": "error",
"import/no-duplicates": "error",
"triple-slash-reference": "off"
},
"overrides": [
{
"files": ["packages/cloudflare/src/**/*.ts"],
"rules": {
"import/extensions": ["error", "always", { "ignorePackages": true }]
}
},
{
"files": ["packages/open-next/**/*"],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
},
{
"files": ["packages/tests-*/**", "examples/**", "examples-cloudflare/**"],
"rules": {
"@typescript-eslint/no-redeclare": "off",
"@typescript-eslint/no-explicit-any": "off"
}
},
{
"files": ["examples/**", "examples-cloudflare/**"],
"rules": {
"react/jsx-key": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["biomejs.biome"]
"recommendations": ["oxc.oxc-vscode"]
}
21 changes: 3 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,7 @@
"**/.turbo": true
},
"tailwindCSS.classAttributes": ["class", "className", "tw"],
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[css]": {
"editor.defaultFormatter": "biomejs.biome"
}
"oxc.fmt.configPath": ".oxfmtrc.json",
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true
}
91 changes: 91 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend to add this?

Copy link
Collaborator Author

@james-elicx james-elicx Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, we have vscode settings in the repo, so i added the zed ones for oxc since i use zed

"lsp": {
"oxlint": {
"initialization_options": {
"settings": {
"configPath": ".oxlintrc.json",
"run": "onType",
"disableNestedConfig": false,
"fixKind": "safe_fix",
"typeAware": true,
"unusedDisableDirectives": "deny"
}
}
},
"oxfmt": {
"initialization_options": {
"settings": {
"configPath": ".oxfmtrc.json",
"run": "onSave"
}
}
}
},
"languages": {
"CSS": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"GraphQL": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"HTML": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"JavaScript": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"JSX": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"JSON": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"JSONC": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"Markdown": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"MDX": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"SCSS": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"TypeScript": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"TSX": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
},
"YAML": {
"format_on_save": "on",
"prettier": { "allowed": false },
"formatter": [{ "language_server": { "name": "oxfmt" } }]
}
}
}
78 changes: 0 additions & 78 deletions biome.jsonc

This file was deleted.

11 changes: 11 additions & 0 deletions create-cloudflare/next/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "import", "react", "nextjs"],
"categories": {},
"rules": {},
"env": {
"builtin": true
},
"globals": {},
"ignorePatterns": [".next", "node_modules", ".open-next", "dist", ".wrangler"]
}
4 changes: 2 additions & 2 deletions create-cloudflare/next/cloudflare-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6576,7 +6576,7 @@ type AIGatewayHeaders = {
[key: string]: string | number | boolean | object;
};
type AIGatewayUniversalRequest = {
provider: AIGatewayProviders | string; // eslint-disable-line
provider: AIGatewayProviders | string;
endpoint: string;
headers: Partial<AIGatewayHeaders>;
query: unknown;
Expand All @@ -6593,7 +6593,7 @@ declare abstract class AiGateway {
extraHeaders?: object;
}
): Promise<Response>;
getUrl(provider?: AIGatewayProviders | string): Promise<string>; // eslint-disable-line
getUrl(provider?: AIGatewayProviders | string): Promise<string>;
}
interface AutoRAGInternalError extends Error {}
interface AutoRAGNotFoundError extends Error {}
Expand Down
15 changes: 0 additions & 15 deletions create-cloudflare/next/eslint.config.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion create-cloudflare/next/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
Expand All @@ -8,5 +9,4 @@ export default nextConfig;

// Enable calling `getCloudflareContext()` in `next dev`.
// See https://opennext.js.org/cloudflare/bindings#local-access-to-bindings.
import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare";
initOpenNextCloudflareForDev();
8 changes: 3 additions & 5 deletions create-cloudflare/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint": "oxlint",
"deploy": "opennextjs-cloudflare build && opennextjs-cloudflare deploy",
"upload": "opennextjs-cloudflare build && opennextjs-cloudflare upload",
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
Expand All @@ -19,13 +19,11 @@
"react-dom": "19.1.4"
},
"devDependencies": {
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.4.6",
"oxlint": "^1.42.0",
"tailwindcss": "^4",
"typescript": "^5.7.4",
"wrangler": "^4.59.3"
Expand Down
3 changes: 0 additions & 3 deletions examples-cloudflare/bugs/gh-119/.eslintrc.json

This file was deleted.

4 changes: 1 addition & 3 deletions examples-cloudflare/bugs/gh-119/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@
"devDependencies": {
"@opennextjs/cloudflare": "workspace:*",
"@playwright/test": "catalog:",
"@types/node": "^20",
"@types/node": "^22",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "15.0.4",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5",
Expand Down
15 changes: 0 additions & 15 deletions examples-cloudflare/bugs/gh-219/eslint.config.mjs

This file was deleted.

Loading
Loading