diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65df494..33c8b81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,4 +40,4 @@ jobs: - run: npm run build - run: npm publish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.oxfmtrc.json b/.oxfmtrc.json index 89a9584..2583203 100644 --- a/.oxfmtrc.json +++ b/.oxfmtrc.json @@ -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" -} \ No newline at end of file + "arrowParens": "always", + "sortPackageJson": true, + "sortImports": true, + "ignorePatterns": [ + "dist", + "coverage", + "node_modules", + "package-lock.json", + "*.tsbuildinfo" + ] +} diff --git a/.oxlintrc.json b/.oxlintrc.json index 96c7792..daf442c 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -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"] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 679eab0..536a56f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,4 +32,3 @@ "editor.formatOnSave": true, "js/ts.tsdk.path": "node_modules/typescript/lib" } - diff --git a/src/index.test.ts b/src/index.test.ts index 3f47feb..8f6ada1 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -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", () => { diff --git a/tsconfig.build.json b/tsconfig.build.json index 2342359..3282b25 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -7,4 +7,4 @@ "outDir": "dist" }, "exclude": ["src/**/*.test.ts", "src/**/__tests__/**"] -} \ No newline at end of file +}