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
8 changes: 3 additions & 5 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"hooks": {
"PostToolUse": [
"Stop": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path // .tool_response.filePath' | { read -r f; ./node_modules/.bin/eslint --no-warn-ignored --fix \"$f\"; } 2>/dev/null || true",
"timeout": 30,
"statusMessage": "Running eslint --fix"
"command": "pnpm exec uncheck hooks run --fix",
"timeout": 600
}
]
}
Expand Down
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ updates:
default-days: 1
versioning-strategy: increase
groups:
eslint:
uncheck:
patterns:
- eslint
- '@antfu/eslint-config'
- 'eslint-plugin-*'
- uncheck
- oxlint
- oxfmt
dev-dependencies-minor-patch:
dependency-type: development
exclude-patterns:
- eslint
- '@antfu/eslint-config'
- 'eslint-plugin-*'
- uncheck
- oxlint
- oxfmt
update-types:
- minor
- patch
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
contents: read

jobs:
lint_and_typecheck:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
Expand All @@ -19,9 +19,7 @@ jobs:

- run: pnpm i

- run: pnpm run lint

- run: pnpm run type:check
- run: pnpm run check

test_matrix:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pullfrog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GOOGLE_GENERATIVE_AI_API_KEY:
${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
GOOGLE_GENERATIVE_AI_API_KEY: ${{ secrets.GOOGLE_GENERATIVE_AI_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
XAI_API_KEY: ${{ secrets.XAI_API_KEY }}
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
Expand Down
56 changes: 8 additions & 48 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,14 @@
{
"format_on_save": "on",
// Use ESLint's --fix:
"code_actions_on_format": {
"source.fixAll.eslint": true
},
"formatter": [],
// Enable eslint for all supported languages
// Defaults only include https://github.com/search?q=repo%3Azed-industries%2Fzed%20eslint_languages&type=code
"languages": {
"HTML": {
"language_servers": ["...", "eslint"]
},
"Markdown": {
"language_servers": ["...", "eslint"]
},
"Markdown-Inline": {
"language_servers": ["...", "eslint"]
},
"JSON": {
"language_servers": ["...", "eslint"]
},
"JSONC": {
"language_servers": ["...", "eslint"]
},
"YAML": {
"language_servers": ["...", "eslint"]
},
"CSS": {
"language_servers": ["...", "eslint"]
"formatter": {
"external": {
"command": "./node_modules/.bin/oxfmt",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
// Add other languages as needed
},
// Apply oxlint's auto fixes on save:
"code_actions_on_format": {
"source.fixAll.oxc": true
},
"lsp": {
"typescript-language-server": {
Expand All @@ -40,25 +19,6 @@
}
}
}
},
"eslint": {
"settings": {
"workingDirectories": ["./"],

// Silent the stylistic rules in your IDE, but still auto fix them
"rulesCustomizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
]
}
}
}
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ TypeScript tooling for the [OpenAPI Specification](https://spec.openapis.org/),
```bash
pnpm install
pnpm test
pnpm lint
pnpm type:check
pnpm check
pnpm bench
```

Expand Down
18 changes: 0 additions & 18 deletions eslint.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'oxfmt'
import { middleapi } from 'uncheck/oxfmt'

export default defineConfig({
...middleapi,
})
17 changes: 17 additions & 0 deletions oxlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'oxlint'
import { middleapi } from 'uncheck/oxlint'

export default defineConfig({
extends: [middleapi],
rules: {
'unicorn/no-thenable': 'off',
},
overrides: [
{
files: ['**/*.test.ts', '**/*.test-d.ts'],
rules: {
'no-unused-vars': 'off',
},
},
],
})
27 changes: 9 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,33 @@
{
"name": "@openapi-spec/repo",
"type": "module",
"version": "0.3.0",
"private": true,
"license": "MIT",
"type": "module",
"scripts": {
"prepare": "simple-git-hooks",
"type:check": "pnpm run -r type:check && tsc",
"prepare": "uncheck prepare --pre-commit",
"check": "uncheck",
"fix": "uncheck --fix",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"bench": "vitest bench --run",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"repo:fix": "sherif --fix",
"sync:sponsors": "node scripts/sync-sponsors.ts && eslint --fix '**/README.md'"
"sync:sponsors": "node scripts/sync-sponsors.ts && pnpm run fix '**/README.md'"
},
"devDependencies": {
"@antfu/eslint-config": "^9.5.1",
"@codspeed/vitest-plugin": "^5.7.1",
"@seriousme/openapi-schema-validator": "^2.9.1",
"@types/node": "^26.4.0",
"@vitest/coverage-v8": "^4.1.11",
"bumpp": "^12.3.0",
"changelogithub": "^15.0.5",
"eslint": "^10.10.0",
"eslint-plugin-format": "^2.0.1",
"lint-staged": "^17.4.1",
"oxfmt": "^0.71.0",
"oxlint": "^1.86.0",
"sherif": "^1.13.0",
"simple-git-hooks": "^2.13.1",
"typescript": "^6.0.3",
"unbuild": "^3.6.1",
"uncheck": "^0.1.0",
"vitest": "^4.1.11"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --no-warn-ignored --fix"
},
"devEngines": {
"packageManager": {
"name": "pnpm",
Expand Down
Loading
Loading