Skip to content
Open
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
9 changes: 7 additions & 2 deletions .github/workflows/pr-gated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,27 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v5
- name: setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: setup node
uses: actions/setup-node@v5
with:
node-version-file: "package.json"
- run: node -v
- run: bun -v
- run: npm ci
- run: npm audit
- run: npm run lint
- run: npm run build
- name: Run tests
run: npm run test
run: bun test --bail --reporter=junit --reporter-outfile test-results.xml
- name: Publish test results
uses: dorny/[email protected]
if: success() || failure()
with:
name: Mocha Tests
name: Bun Tests
path: test-results.xml
reporter: java-junit
fail-on-error: true
23 changes: 15 additions & 8 deletions eslint.config.js → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const js = require("@eslint/js");
const tseslint = require("@typescript-eslint/eslint-plugin");
const tsparser = require("@typescript-eslint/parser");
const prettier = require("eslint-plugin-prettier");
const promise = require("eslint-plugin-promise");
const security = require("eslint-plugin-security");
const prettierConfig = require("eslint-config-prettier");
import js from "@eslint/js";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsparser from "@typescript-eslint/parser";
import prettier from "eslint-plugin-prettier";
import promise from "eslint-plugin-promise";
import security from "eslint-plugin-security";
import prettierConfig from "eslint-config-prettier";

module.exports = [
export default [
js.configs.recommended,
{
files: ["src/**/*.ts"],
Expand Down Expand Up @@ -81,6 +81,13 @@ module.exports = [
},
],
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/consistent-type-imports": [
"warn",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],

// Standard ESLint rules
"no-unused-vars": "off", // Disabled in favor of @typescript-eslint/no-unused-vars
Expand Down
6 changes: 0 additions & 6 deletions mochaReporterConfig.json

This file was deleted.

Loading
Loading