mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
chore: Enable formatting of files other than src and test.
This commit is contained in:
@@ -1,5 +1,16 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||||
"indentWidth": 2,
|
"ignorePatterns": [
|
||||||
"printWidth": 100
|
"apps/",
|
||||||
|
"assets/",
|
||||||
|
"dist/",
|
||||||
|
"docs/_layouts/",
|
||||||
|
"node_modules/",
|
||||||
|
"patches/",
|
||||||
|
"pnpm-lock.yaml/",
|
||||||
|
"scripts/",
|
||||||
|
"skills/",
|
||||||
|
"Swabble/",
|
||||||
|
"vendor/",
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,10 +115,10 @@
|
|||||||
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
||||||
"lint:all": "pnpm lint && pnpm lint:swift",
|
"lint:all": "pnpm lint && pnpm lint:swift",
|
||||||
"lint:fix": "pnpm format:fix && oxlint --type-aware --fix src test",
|
"lint:fix": "pnpm format:fix && oxlint --type-aware --fix src test",
|
||||||
"format": "oxfmt --check src test",
|
"format": "oxfmt --check",
|
||||||
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",
|
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",
|
||||||
"format:all": "pnpm format && pnpm format:swift",
|
"format:all": "pnpm format && pnpm format:swift",
|
||||||
"format:fix": "oxfmt --write src test",
|
"format:fix": "oxfmt --write",
|
||||||
"test": "node scripts/test-parallel.mjs",
|
"test": "node scripts/test-parallel.mjs",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
"test:ui": "pnpm --dir ui test",
|
"test:ui": "pnpm --dir ui test",
|
||||||
|
|||||||
Reference in New Issue
Block a user