Skip to content

Commit 89ba589

Browse files
authored
Migrate to ESLint 9 (#42)
* chore: bump libs * chore: migrate
1 parent 189de7b commit 89ba589

7 files changed

Lines changed: 1099 additions & 739 deletions

File tree

.eslintrc

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

eslint.config.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// @ts-check
2+
3+
import { configs } from "@js-soft/eslint-config-ts";
4+
import { globalIgnores } from "eslint/config";
5+
import tseslint from "typescript-eslint";
6+
7+
export default tseslint.config(globalIgnores(["**/dist", "**/dist-test", "**/lib-web", "**/node_modules"]), {
8+
extends: [configs.base, configs.mocha],
9+
languageOptions: {
10+
parserOptions: {
11+
project: ["./tsconfig.eslint.json", "./tsconfig.json", "./test/tsconfig.json"]
12+
}
13+
},
14+
files: ["**/*.ts"],
15+
rules: {
16+
"jest/expect-expect": [
17+
"error",
18+
{
19+
assertFunctionNames: ["expect", "verify", "expectValid*", "expectThrows*"]
20+
}
21+
]
22+
}
23+
});

package-lock.json

Lines changed: 1058 additions & 714 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@
3535
"uuid": "^11.1.0"
3636
},
3737
"devDependencies": {
38-
"@js-soft/eslint-config-ts": "^1.6.14",
38+
"@js-soft/eslint-config-ts": "^2.0.1",
3939
"@js-soft/license-check": "^1.0.9",
4040
"@js-soft/ts-serval": "^2.0.12",
4141
"@types/chai": "^5.2.2",
4242
"@types/libsodium-wrappers-sumo": "^0.7.8",
4343
"@types/mocha": "^10.0.10",
44-
"@types/node": "^22.15.21",
44+
"@types/node": "^24.0.14",
4545
"@types/uuid": "^10.0.0",
46-
"bt-runner": "^4.0.6",
47-
"chai": "^5.2.0",
48-
"eslint": "^8.57.1",
46+
"bt-runner": "^4.0.7",
47+
"chai": "^5.2.1",
48+
"eslint": "^9.31.0",
4949
"madge": "^8.0.0",
50-
"mocha": "^11.4.0",
51-
"prettier": "^3.5.3",
50+
"mocha": "^11.7.1",
51+
"prettier": "^3.6.2",
5252
"ts-node": "^10.9.2",
5353
"tsconfig-paths": "^4.2.0",
5454
"typescript": "^5.8.3",
55-
"webpack": "^5.99.9",
55+
"webpack": "^5.100.2",
5656
"webpack-cli": "^6.0.1"
5757
},
5858
"publishConfig": {

test/crypto/CryptoStreamTest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable jest/expect-expect */
1+
/* eslint-disable jest/expect-expect, no-console */
22
import {
33
CoreBuffer,
44
CryptoExchange,

test/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ SodiumWrapper.ready()
3333
CryptoStateTest.run();
3434
BufferTest.run();
3535
})
36-
.catch((e) => console.log(e));
36+
// eslint-disable-next-line no-console
37+
.catch((e) => console.error(e));

tsconfig.eslint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true
5+
},
6+
"include": ["src", "test"]
7+
}

0 commit comments

Comments
 (0)