Skip to content

Commit e4483fc

Browse files
committed
deps: update various dependencies
1 parent 4a55f2a commit e4483fc

File tree

7 files changed

+1896
-1208
lines changed

7 files changed

+1896
-1208
lines changed

.eslintrc.cjs

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

.github/workflows/check.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
10-
- run: git submodule update --init test/wasi-testsuite
11-
- uses: actions/setup-node@v3
9+
- uses: actions/checkout@v5
1210
with:
13-
node-version: "16.x"
11+
submodules: true
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version: latest
1415
registry-url: "https://registry.npmjs.org"
1516
- run: npm ci
1617
- run: npm run check

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v5
1010
# Setup .npmrc file to publish to npm
11-
- uses: actions/setup-node@v3
11+
- uses: actions/setup-node@v6
1212
with:
13-
node-version: "16.x"
13+
node-version: latest
1414
registry-url: "https://registry.npmjs.org"
1515
- run: npm ci
1616
- run: npm run check

.swcrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dts": false
1010
},
1111
"transform": {},
12-
"target": "es2020",
12+
"target": "esnext",
1313
"loose": false,
1414
"externalHelpers": false,
1515
"keepClassNames": true

eslint.config.cjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const { FlatCompat } = require("@eslint/eslintrc");
2+
const js = require("@eslint/js");
3+
const tsPlugin = require("@typescript-eslint/eslint-plugin");
4+
const tsParser = require("@typescript-eslint/parser");
5+
6+
const compat = new FlatCompat({
7+
baseDirectory: __dirname,
8+
recommendedConfig: js.configs.recommended,
9+
allConfig: js.configs.all,
10+
});
11+
12+
module.exports = [
13+
{
14+
ignores: ["dist/**", "node_modules/**"],
15+
},
16+
...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
17+
{
18+
files: ["src/**/*.{js,jsx,ts,tsx,mjs,cjs}"],
19+
languageOptions: {
20+
parser: tsParser,
21+
ecmaVersion: "latest",
22+
sourceType: "module",
23+
},
24+
plugins: {
25+
"@typescript-eslint": tsPlugin,
26+
},
27+
rules: {
28+
"@typescript-eslint/no-this-alias": "off",
29+
"@typescript-eslint/ban-ts-comment": "off",
30+
"@typescript-eslint/no-unused-vars": [
31+
"error",
32+
{
33+
argsIgnorePattern: "^_",
34+
varsIgnorePattern: "^_",
35+
caughtErrorsIgnorePattern: "^_",
36+
},
37+
],
38+
},
39+
},
40+
];

0 commit comments

Comments
 (0)