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
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ web_modules/
# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

Expand Down
35 changes: 35 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "react", "oxc"],
"categories": {
"correctness": "error"
},
"ignorePatterns": ["**/.*", "docs/reference/**", "build/**", "node_modules/**"],
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"typescript/ban-ts-comment": "error",
"typescript/no-array-constructor": "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-unused-expressions": "error",
"typescript/no-unused-vars": "error",
"typescript/no-wrapper-object-types": "error",
"typescript/prefer-as-const": "error",
"typescript/prefer-namespace-keyword": "error",
"typescript/triple-slash-reference": "error"
}
}
]
}
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bun run clean-api-docs # Remove generated API documentation

### Code Quality
```bash
bun run lint # Run ESLint on TypeScript, MDX, and Markdown files
bun run lint # Run Oxlint on JavaScript and TypeScript files
bun run lint:fix # Auto-fix linting issues
```

Expand Down Expand Up @@ -173,7 +173,7 @@ When adding a new API version (e.g., `2025-11-08`):
## Important Notes

- The project uses bun (see `bun.lock`)
- ESLint is configured for TypeScript, MDX, and Markdown files
- Oxlint checks JavaScript and TypeScript files; Markdown/MDX is compiled by the Docusaurus build but has no separate lint checks
- No testing framework is configured - rely on linting for code quality
- The site is optimized for static hosting with SEO and performance features enabled
- Use `@docusaurus/faster` for improved development experience
625 changes: 249 additions & 376 deletions bun.lock

Large diffs are not rendered by default.

20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"sync-agent-skill": "node scripts/agent-docs.js sync",
"gen-agent-docs": "node scripts/agent-docs.js generate",
"check-agent-docs": "node scripts/agent-docs.js check",
"lint": "eslint . --ext .ts,.tsx,.md,.mdx",
"lint:fix": "eslint . --ext .ts,.tsx,.md,.mdx --fix"
"lint": "oxlint .",
"lint:fix": "oxlint . --fix"
},
"dependencies": {
"@docusaurus/core": "3.10.2",
Expand All @@ -35,19 +35,15 @@
"@easyops-cn/docusaurus-search-local": "0.55.2",
"@mdx-js/react": "3.1.1",
"clsx": "2.1.1",
"docusaurus-plugin-openapi-docs": "5.1.2",
"docusaurus-theme-openapi-docs": "5.1.2",
"docusaurus-plugin-openapi-docs": "5.2.0",
"docusaurus-theme-openapi-docs": "5.2.0",
"prism-react-renderer": "2.4.1",
"react": "19.2.8",
"react-dom": "19.2.8"
"react": "19.3.0",
"react-dom": "19.3.0"
},
"devDependencies": {
"@docusaurus/eslint-plugin": "3.10.2",
"@typescript-eslint/eslint-plugin": "8.65.0",
"@typescript-eslint/parser": "8.65.0",
"eslint": "8.57.1",
"eslint-plugin-mdx": "3.8.1",
"typescript": "6.0.2",
"oxlint": "1.86.0",
"typescript": "7.0.2",
"yaml": "2.9.0"
},
"browserslist": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-community-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function updateStars(projects) {
let repoHostname;
try {
repoHostname = new URL(project.repository).hostname;
} catch (err) {
} catch {
repoHostname = "";
}
if (repoHostname === "github.com") {
Expand Down
Loading