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
10 changes: 6 additions & 4 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"command": "pnpm run lint:fix",
"type": "command"
"type": "command",
"command": "jq -r '.tool_input.file_path // .tool_response.filePath' | { read -r f; ./node_modules/.bin/eslint --no-warn-ignored --max-warnings=0 --fix \"$f\"; } 2>/dev/null || true",
"timeout": 30,
"statusMessage": "Running eslint --fix"
}
],
"matcher": "Write|Edit"
]
}
]
}
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:
linter:
eslint:
patterns:
- oxfmt
- oxlint
- ultracite
- eslint
- '@antfu/eslint-config'
- 'eslint-plugin-*'
dev-dependencies-minor-patch:
dependency-type: development
exclude-patterns:
- oxfmt
- oxlint
- ultracite
- eslint
- '@antfu/eslint-config'
- 'eslint-plugin-*'
update-types:
- minor
- patch
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- run: pnpm i

- run: pnpm run lint:check
- run: pnpm run lint

- run: pnpm run type:check

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sponsors-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sponsors Sync

on:
schedule:
- cron: "0 1 * * *"
- cron: '0 1 * * *'
workflow_dispatch:

jobs:
Expand All @@ -23,6 +23,6 @@ jobs:
with:
author_name: GitHub Actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: "chore: sync sponsors"
message: 'chore: sync sponsors'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106 changes: 48 additions & 58 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
{
"format_on_save": "on",
"formatter": "language_server",
// 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"]
}
// Add other languages as needed
},
"lsp": {
"typescript-language-server": {
"settings": {
Expand All @@ -11,63 +41,23 @@
}
}
},
"oxfmt": {
"initialization_options": {
"settings": {
"configPath": null,
"flags": {},
"fmt.configPath": null,
"fmt.experimental": true,
"run": "onSave",
"typeAware": false,
"unusedDisableDirectives": false
}
}
},
"oxlint": {
"initialization_options": {
"settings": {
"disableNestedConfig": false,
"fixKind": "safe_fix",
"run": "onType",
"typeAware": true,
"unusedDisableDirectives": "deny"
}
}
}
},
"languages": {
"JavaScript": {
"code_actions_on_format": {
"source.fixAll.oxc": true,
"source.organizeImports.oxc": true
},
"formatter": {
"language_server": {
"name": "oxfmt"
}
}
},
"TSX": {
"code_actions_on_format": {
"source.fixAll.oxc": true,
"source.organizeImports.oxc": true
},
"formatter": {
"language_server": {
"name": "oxfmt"
}
}
},
"TypeScript": {
"code_actions_on_format": {
"source.fixAll.oxc": true,
"source.organizeImports.oxc": true
},
"formatter": {
"language_server": {
"name": "oxfmt"
}
"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 }
]
}
}
}
Expand Down
17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import antfu from '@antfu/eslint-config'

export default antfu({
formatters: true,
rules: {
'yaml/sort-keys': 'off',
'pnpm/json-enforce-catalog': 'off',
'pnpm/yaml-enforce-settings': 'off',
'ts/method-signature-style': 'off',
},
}, {
files: ['**/*.test.ts', '**/*.test-d.ts'],
rules: {
'unused-imports/no-unused-vars': 'off',
'antfu/no-top-level-await': 'off',
},
})
6 changes: 0 additions & 6 deletions oxfmt.config.ts

This file was deleted.

8 changes: 0 additions & 8 deletions oxlint.config.ts

This file was deleted.

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
{
"name": "@openapi-spec/repo",
"type": "module",
"version": "0.0.0",
"license": "MIT",
"type": "module",
"scripts": {
"prepare": "simple-git-hooks",
"type:check": "pnpm run -r type:check && tsc",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"lint:check": "ultracite check",
"lint:fix": "ultracite fix",
"lint": "eslint --max-warnings=0 .",
"lint:fix": "eslint --max-warnings=0 --fix .",
"repo:fix": "sherif --fix",
"sync:sponsors": "node scripts/sync-sponsors.ts && git ls-files --modified --others --exclude-standard | xargs -r pnpm run lint:fix --no-error-on-unmatched-pattern"
"sync:sponsors": "node scripts/sync-sponsors.ts && eslint --max-warnings=0 --fix '**/README.md'"
},
"devDependencies": {
"@antfu/eslint-config": "^9.5.1",
"@seriousme/openapi-schema-validator": "^2.9.1",
"@types/node": "^26.4.0",
"@vitest/coverage-v8": "^4.1.11",
"eslint": "^10.10.0",
"eslint-plugin-format": "^2.0.1",
"lint-staged": "^17.4.1",
"oxfmt": "^0.65.0",
"oxlint": "^1.80.0",
"sherif": "^1.13.0",
"simple-git-hooks": "^2.13.1",
"typescript": "^6.0.3",
"ultracite": "7.10.7",
"unbuild": "^3.6.1",
"vitest": "^4.1.11"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,json,jsonc,css,scss,md,mdx}": [
"pnpm run lint:fix"
]
"*": "eslint --no-warn-ignored --max-warnings=0 --fix"
},
"devEngines": {
"packageManager": {
Expand Down
Loading