Skip to content

Commit cd41035

Browse files
committed
try using tsx
1 parent 9351d85 commit cd41035

File tree

3 files changed

+11
-22
lines changed

3 files changed

+11
-22
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
name: CI
2-
on:
3-
push:
4-
branches:
5-
# default semantic-release branches
6-
- +([0-9])?(.{+([0-9]),x}).x
7-
- main
8-
- next
9-
- next-major
10-
- beta
11-
- alpha
12-
pull_request:
13-
schedule:
14-
- cron: 0 0 * * 0
2+
on: [push, pull_request, workflow_dispatch]
153

164
concurrency:
175
group: ${{ github.workflow }}-${{ github.ref }}

lib/configs/recommended.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { Linter } from "eslint"
22

33
export const plugins = [
4-
"@eslint-community/eslint-comments",
4+
"@eslint-community/eslint-comments",
55
] as const satisfies Linter.LegacyConfig["plugins"]
66

77
export const rulesRecommended = {
8-
"@eslint-community/eslint-comments/disable-enable-pair": "error",
9-
"@eslint-community/eslint-comments/no-aggregating-enable": "error",
10-
"@eslint-community/eslint-comments/no-duplicate-disable": "error",
11-
"@eslint-community/eslint-comments/no-unlimited-disable": "error",
12-
"@eslint-community/eslint-comments/no-unused-enable": "error",
8+
"@eslint-community/eslint-comments/disable-enable-pair": "error",
9+
"@eslint-community/eslint-comments/no-aggregating-enable": "error",
10+
"@eslint-community/eslint-comments/no-duplicate-disable": "error",
11+
"@eslint-community/eslint-comments/no-unlimited-disable": "error",
12+
"@eslint-community/eslint-comments/no-unused-enable": "error",
1313
} as const satisfies Linter.Config["rules"]

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@
6969
"eslint-v9": "npm:eslint@^9.39.1",
7070
"expect-type": "^1.2.2",
7171
"fs-extra": "^10.1.0",
72-
"mocha": "^10.4.0",
72+
"mocha": "^11.7.5",
7373
"monaco-editor": "^0.47.0",
7474
"nyc": "^15.1.0",
7575
"opener": "^1.5.2",
7676
"rimraf": "^6.1.2",
7777
"rolldown": "^1.0.0-beta.52",
7878
"semver": "^7.7.3",
7979
"tsdown": "^0.17.0-beta.5",
80+
"tsx": "^4.21.0",
8081
"typescript": "^5.9.3",
8182
"vite-plugin-eslint4b": "^0.6.0",
8283
"vitepress": "^1.0.0-rc.15"
@@ -91,8 +92,8 @@
9192
"docs:build": "vitepress build docs",
9293
"docs:watch": "vitepress dev docs",
9394
"lint": "eslint lib scripts tests",
94-
"test": "set NODE_OPTIONS=--experimental-transform-types && npm run debug",
95-
"debug": "mocha \"tests/lib/**/*.test.ts\" --reporter dot --timeout 8000",
95+
"test": "npm run debug",
96+
"debug": "mocha --node-options=\"--import=tsx\" \"tests/lib/**/*.test.ts\" --reporter dot --timeout 8000",
9697
"typecheck": "tsc -p tsconfig.json",
9798
"check-exports": "attw --pack",
9899
"coverage": "nyc report --reporter lcov && opener coverage/lcov-report/index.html",

0 commit comments

Comments
 (0)