Skip to content

Commit 3e870ee

Browse files
⬆️🔧♻️ Bump the development-dependencies and update ESLint configuration (#317)
2 parents 062857c + 275fe5a commit 3e870ee

File tree

12 files changed

+481
-2495
lines changed

12 files changed

+481
-2495
lines changed

.eslintignore

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

.eslintrc.json

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

.github/linters/.eslintrc.yml

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

.github/linters/eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// @ts-check
2+
3+
import eslint from "@eslint/js"
4+
import tseslint from "typescript-eslint"
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
...tseslint.configs.stylisticTypeChecked,
9+
...tseslint.configs.strictTypeChecked,
10+
{
11+
languageOptions: {
12+
parserOptions: {
13+
project: ["./.github/linters/tsconfig.json", "./tsconfig.json"]
14+
}
15+
}
16+
},
17+
{
18+
ignores: ["**/dist", "**/node_modules", "**/coverage", "**/eslint.config.mjs"]
19+
}
20+
)

__tests__/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe("Z3 Setup Tests", () => {
4040
]
4141

4242
for (const { name, version, platform, architecture, addToLibraryPath } of testCases) {
43-
test(`${name}`, async () => {
43+
test(name, async () => {
4444
const ret = await executeTest(version, platform, architecture, addToLibraryPath)
4545
expect(ret).toEqual(0)
4646
})

dist/index.js

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

dist/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// @ts-check
2+
3+
import eslint from "@eslint/js"
4+
import tseslint from "typescript-eslint"
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
...tseslint.configs.stylisticTypeChecked,
9+
...tseslint.configs.strictTypeChecked,
10+
{
11+
languageOptions: {
12+
parserOptions: {
13+
projectService: true,
14+
tsconfigRootDir: import.meta.dirname
15+
}
16+
}
17+
},
18+
{
19+
ignores: ["**/dist", "**/node_modules", "**/coverage", "**/eslint.config.mjs"]
20+
}
21+
)

0 commit comments

Comments
 (0)