🔧 Expand oxfmt to format project config and docs files

This commit is contained in:
tmu committed 2026-09-03 20:58:33 +00:00
1 parent 7349d0dec2
commit 0598a9eb4a
6 files changed
+19 -13

No files matched your search

+1 -1
View File
@@ -40,4 +40,4 @@ jobs:
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+12 -2
View File
@@ -1,9 +1,19 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"printWidth": 80,
"tabWidth": 4,
"endOfLine": "lf",
"arrowParens": "always"
}
"arrowParens": "always",
"sortPackageJson": true,
"sortImports": true,
"ignorePatterns": [
"dist",
"coverage",
"node_modules",
"package-lock.json",
"*.tsbuildinfo"
]
}
+2 -7
View File
@@ -1,11 +1,6 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [
"typescript",
"unicorn",
"oxc",
"import"
],
"plugins": ["typescript", "unicorn", "oxc", "import"],
"categories": {
"correctness": "error",
"suspicious": "error",
@@ -37,4 +32,4 @@
}
],
"ignorePatterns": ["dist", "node_modules", "coverage"]
}
}
-1
View File
@@ -32,4 +32,3 @@
"editor.formatOnSave": true,
"js/ts.tsdk.path": "node_modules/typescript/lib"
}
+3 -1
View File
@@ -1,6 +1,8 @@
import { test } from "node:test";
import { strict as assert } from "node:assert";
import { test } from "node:test";
import { expectTypeOf } from "expect-type";
import { match, P, type Matcher } from "./index.ts";
test("match returns a builder", () => {
+1 -1
View File
@@ -7,4 +7,4 @@
"outDir": "dist"
},
"exclude": ["src/**/*.test.ts", "src/**/__tests__/**"]
}
}