Skip to content

Commit a7cabc9

Browse files
authored
chore: update devDependencies (#292)
1 parent 59d3a2e commit a7cabc9

19 files changed

+7309
-4642
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

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

.github/workflows/continuous-integration.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
branches:
66
- main
77
pull_request:
8-
# schedule:
9-
# - cron: "0 23 * * 6"
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
1015

1116
jobs:
1217
test:
@@ -18,49 +23,45 @@ jobs:
1823
- "macos-latest"
1924
- "windows-latest"
2025
node_version:
26+
- "22"
27+
- "20"
2128
- "18"
22-
- "16"
23-
- "14"
2429
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }}
2530
runs-on: ${{ matrix.os }}
26-
env:
27-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
2831
steps:
2932
- name: Checkout
30-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3134

3235
- name: Setup Node.js
33-
uses: actions/setup-node@v3
36+
uses: actions/setup-node@v4
3437
with:
3538
node-version: ${{ matrix.node_version }}
3639

3740
- name: Install Dependencies
38-
run: yarn
41+
run: yarn --immutable
3942

4043
- name: Run Test
4144
run: yarn test
4245

43-
- uses: codecov/codecov-action@v3
46+
- uses: codecov/codecov-action@v5
4447
with:
4548
fail_ci_if_error: true
49+
disable_search: true
50+
files: coverage/lcov.info
51+
token: ${{ secrets.CODECOV_TOKEN }}
4652

4753
lint:
4854
name: Lint
4955
runs-on: ubuntu-latest
50-
env:
51-
YARN_ENABLE_IMMUTABLE_INSTALLS: false
5256
steps:
5357
- name: Checkout
54-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5559

5660
- name: Setup Node.js
57-
uses: actions/setup-node@v3
61+
uses: actions/setup-node@v4
5862

5963
- name: Install Dependencies
60-
run: yarn
61-
62-
- name: Run ESLint
63-
run: yarn lint:eslint
64+
run: yarn --immutable
6465

65-
- name: Run Prettier
66-
run: yarn lint:prettier
66+
- name: Run Lint
67+
run: yarn lint

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
coverage/
22
lib/
33
node_modules/
4+
.vscode/settings.json
5+
**/.yarn/*
6+
!.yarn/releases
7+
!.yarn/plugins
8+
!.yarn/sdks
9+
!.yarn/versions
10+
**/.pnp.*

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
lib
1+
lib/
2+
.yarn/

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"editorconfig.editorconfig",
5+
"dbaeumer.vscode-eslint",
6+
"streetsidesoftware.code-spell-checker"
7+
]
8+
}

.vscode/settings.example.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"[javascript][typescript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.formatOnSave": true,
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": "explicit"
7+
}
8+
},
9+
"prettier.requireConfig": true
10+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
const fs = require("node:fs");
2+
const path = require("node:path");
3+
4+
module.exports = {
5+
name: "plugin-setup-editor",
6+
factory: () => ({
7+
hooks: {
8+
afterAllInstalled() {
9+
const settingsFile = path.join(
10+
__dirname,
11+
"../../.vscode/settings.json",
12+
);
13+
14+
const settingsExampleFile = path.join(
15+
__dirname,
16+
"../../.vscode/settings.example.json",
17+
);
18+
19+
if (
20+
fs.existsSync(settingsFile) ||
21+
!fs.existsSync(settingsExampleFile)
22+
) {
23+
return;
24+
}
25+
26+
fs.copyFileSync(settingsExampleFile, settingsFile);
27+
},
28+
},
29+
}),
30+
};

.yarn/releases/yarn-4.7.0.cjs

Lines changed: 935 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)