Skip to content

Commit 70f7324

Browse files
committed
Modernize
- ESLint, Prettier, TypeScript, everything. - Split code into many files.
1 parent 5eb6c8f commit 70f7324

File tree

16 files changed

+6879
-9672
lines changed

16 files changed

+6879
-9672
lines changed

.eslintrc.js

Lines changed: 0 additions & 240 deletions
This file was deleted.

.github/workflows/awaitqueue.yaml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: awaitqueue
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
concurrency:
66
# Cancel a currently running workflow from the same PR, branch or tag when a
@@ -13,23 +13,29 @@ jobs:
1313
strategy:
1414
matrix:
1515
ci:
16-
- os: ubuntu-20.04
17-
node: 16
18-
- os: ubuntu-20.04
19-
node: 18
2016
- os: ubuntu-22.04
17+
node: 18
18+
- os: ubuntu-24.04
2119
node: 20
22-
- os: windows-2022
20+
- os: ubuntu-24.04
21+
node: 22
22+
- os: macos-13
23+
node: 18
24+
- os: macos-14
2325
node: 20
26+
- os: macos-15
27+
node: 22
28+
- os: windows-2022
29+
node: 22
2430

2531
runs-on: ${{ matrix.ci.os }}
2632

2733
steps:
2834
- name: Checkout
29-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3036

3137
- name: Node.js
32-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v4
3339
with:
3440
node-version: ${{ matrix.ci.node }}
3541

@@ -42,6 +48,11 @@ jobs:
4248
restore-keys: |
4349
${{ matrix.ci.os }}-node-
4450
45-
- run: npm ci
46-
- run: npm run lint
47-
- run: npm run test
51+
- name: npm ci
52+
run: npm ci --foreground-scripts
53+
54+
- name: npm run lint
55+
run: npm run lint
56+
57+
- name: npm run test
58+
run: npm run test

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# Generate package-lock.json.
12
package-lock=true
3+
# For bad node/npm version to throw actual error.
4+
engine-strict=true

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"useTabs": true,
3+
"tabWidth": 2,
4+
"arrowParens": "avoid",
5+
"bracketSpacing": true,
6+
"semi": true,
7+
"singleQuote": true,
8+
"trailingComma": "es5",
9+
"endOfLine": "auto"
10+
}

0 commit comments

Comments
 (0)