Skip to content

Commit 455c00a

Browse files
authored
chore: use eslint v9 (#333)
* chore: use eslint v9 * fix
1 parent 0ccacb1 commit 455c00a

File tree

21 files changed

+427
-357
lines changed

21 files changed

+427
-357
lines changed

.devcontainer/devcontainer.json

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
4-
"name": "Node.js & TypeScript",
5-
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye",
77

8-
// Features to add to the dev container. More info: https://containers.dev/features.
9-
// "features": {},
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
1010

11-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12-
// "forwardPorts": [],
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
// "forwardPorts": [],
1313

14-
// Use 'postCreateCommand' to run commands after the container is created.
15-
"postCreateCommand": "yarn install",
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "yarn install",
1616

17-
// Configure tool-specific properties.
18-
"customizations": {
19-
// Configure properties specific to VS Code.
20-
"vscode": {
21-
// Set *default* container specific settings.json values on container create.
22-
"settings": {},
23-
"extensions": [
24-
"dbaeumer.vscode-eslint"
25-
]
26-
}
27-
}
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
// Configure properties specific to VS Code.
20+
"vscode": {
21+
"extensions": ["dbaeumer.vscode-eslint"]
22+
}
23+
}
2824

29-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
30-
// "remoteUser": "root"
25+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
26+
// "remoteUser": "root"
3127
}

.eslintignore

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

.eslintrc.js

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

.github/workflows/NodeCI.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,12 @@ jobs:
2121
test:
2222
strategy:
2323
matrix:
24-
node-version: [14.x, 16.x, 18.x, 19.x]
24+
node-version: [18.x, 20.x]
2525
os: [ubuntu-latest]
2626
include:
27-
- node: 18.x
27+
- node: 22.x
2828
os: windows-latest
29-
- node: 18.x
30-
os: macos-latest
31-
- node: 14.x
32-
os: windows-latest
33-
- node: 14.x
29+
- node: 22.x
3430
os: macos-latest
3531
runs-on: ${{ matrix.os }}
3632
steps:
@@ -43,14 +39,20 @@ jobs:
4339
run: yarn install --ignore-engines
4440
- name: Test
4541
run: yarn test
46-
test-with-eslint9:
42+
test-with-eslint8:
4743
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
node-version: [14.x, 16.x]
4847
steps:
4948
- uses: actions/checkout@v4
50-
- uses: actions/setup-node@v4
49+
- name: Use Node.js ${{ matrix.node-version }}
50+
uses: actions/setup-node@v4
51+
with:
52+
node-version: ${{ matrix.node-version }}
5153
- name: Install Target Packages
5254
run: |+
53-
yarn add -D eslint@^9.0.0-0 --ignore-engines
55+
yarn add -D eslint@8 --ignore-engines
5456
yarn --ignore-engines
5557
- name: Test
5658
run: yarn test

.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{}

0 commit comments

Comments
 (0)