🔧 Expand oxfmt to format project config and docs files
This commit is contained in:
1 parent
7349d0dec2
commit
0598a9eb4a
4 files changed
+15
-9
No files matched your search
+11
-1
@@ -1,9 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||||
"semi": true,
|
"semi": true,
|
||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"trailingComma": "all",
|
"trailingComma": "all",
|
||||||
"printWidth": 80,
|
"printWidth": 80,
|
||||||
"tabWidth": 4,
|
"tabWidth": 4,
|
||||||
"endOfLine": "lf",
|
"endOfLine": "lf",
|
||||||
"arrowParens": "always"
|
"arrowParens": "always",
|
||||||
|
"sortPackageJson": true,
|
||||||
|
"sortImports": true,
|
||||||
|
"ignorePatterns": [
|
||||||
|
"dist",
|
||||||
|
"coverage",
|
||||||
|
"node_modules",
|
||||||
|
"package-lock.json",
|
||||||
|
"*.tsbuildinfo"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
+1
-6
@@ -1,11 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
||||||
"plugins": [
|
"plugins": ["typescript", "unicorn", "oxc", "import"],
|
||||||
"typescript",
|
|
||||||
"unicorn",
|
|
||||||
"oxc",
|
|
||||||
"import"
|
|
||||||
],
|
|
||||||
"categories": {
|
"categories": {
|
||||||
"correctness": "error",
|
"correctness": "error",
|
||||||
"suspicious": "error",
|
"suspicious": "error",
|
||||||
|
|||||||
Vendored
-1
@@ -32,4 +32,3 @@
|
|||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"js/ts.tsdk.path": "node_modules/typescript/lib"
|
"js/ts.tsdk.path": "node_modules/typescript/lib"
|
||||||
}
|
}
|
||||||
|
|
||||||
+3
-1
@@ -1,6 +1,8 @@
|
|||||||
import { test } from "node:test";
|
|
||||||
import { strict as assert } from "node:assert";
|
import { strict as assert } from "node:assert";
|
||||||
|
import { test } from "node:test";
|
||||||
|
|
||||||
import { expectTypeOf } from "expect-type";
|
import { expectTypeOf } from "expect-type";
|
||||||
|
|
||||||
import { match, P, type Matcher } from "./index.ts";
|
import { match, P, type Matcher } from "./index.ts";
|
||||||
|
|
||||||
test("match returns a builder", () => {
|
test("match returns a builder", () => {
|
||||||
|
|||||||
Reference in new issue
Block a user