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
22 changes: 17 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
- &checkout
uses: actions/checkout@v6
- &setup-pnpm
uses: pnpm/action-setup@v4
uses: pnpm/action-setup@v6
with:
version: 10
version: 11
- &setup-node
uses: actions/setup-node@v6
with:
cache: 'pnpm'
cache: "pnpm"
node-version: ${{ matrix.node }}
- run: pnpm install --frozen-lockfile
- run: pnpm ci
- run: pnpm run typecheck
test:
runs-on: ubuntu-latest
Expand All @@ -36,5 +36,17 @@ jobs:
- *checkout
- *setup-pnpm
- *setup-node
- run: pnpm install --frozen-lockfile
- run: pnpm ci
- run: pnpm test
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node: [24]
name: Lint (node${{ matrix.node }})
steps:
- *checkout
- *setup-pnpm
- *setup-node
- run: pnpm ci
- run: pnpm run lint
16 changes: 8 additions & 8 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"endOfLine": "lf",
"printWidth": 100,
"singleQuote": true,
"useTabs": true,
"sortImports": true,
"sortPackageJson": false,
"ignorePatterns": []
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"endOfLine": "lf",
"printWidth": 100,
"singleQuote": true,
"useTabs": true,
"sortImports": true,
"sortPackageJson": false,
"ignorePatterns": []
}
25 changes: 25 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "node", "promise"],
"categories": {
"correctness": "error",
"suspicious": "warn",
"restriction": "warn"
},
"rules": {
"eslint/class-methods-use-this": "off",
"eslint/no-param-reassign": "off",
"eslint/no-undefined": "off",
"eslint/no-use-before-define": "off",
"import/no-relative-parent-imports": "off",
"typescript/consistent-type-imports": "error"
},
"overrides": [
{
"files": ["./scripts/**"],
"rules": {
"eslint/no-console": "off"
}
}
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"prepack": "npm run build && npm test",
"build": "node scripts/prebuild.js && tsc -p tsconfig.json --listEmittedFiles && oxfmt --write lib",
"format": "oxfmt --write '**/*.{css,js,ts}' '**/*config*.json'",
"lint": "oxlint",
"test": "vitest --run test/*.test.ts",
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p test/tsconfig.json --noEmit"
},
Expand All @@ -40,6 +41,7 @@
"fs-fixture": "^2.12.0",
"linkedom": "^0.18.12",
"oxfmt": "^0.47.0",
"oxlint": "^1.62.0",
"typescript": "~6.0.3",
"vitest": "^4.1.5"
}
Expand Down
214 changes: 214 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading