Skip to content

Commit db42c21

Browse files
committed
Upgrade eslint and friends
1 parent fc7b94c commit db42c21

File tree

5 files changed

+413
-502
lines changed

5 files changed

+413
-502
lines changed

.eslintrc.json

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

dist/package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,17 @@
5555
},
5656
"homepage": "https://github.com/reload/wsdl-tsclient#readme",
5757
"devDependencies": {
58+
"@eslint/eslintrc": "^3.3.1",
59+
"@eslint/js": "^9.34.0",
5860
"@types/node": "^24.3.0",
5961
"@types/supports-color": "^10.0.0",
6062
"@types/tape": "^5.8.1",
6163
"@types/yargs": "^17.0.33",
62-
"@typescript-eslint/eslint-plugin": "^5.62.0",
63-
"@typescript-eslint/parser": "^5.62.0",
64-
"eslint": "^8.13.0",
65-
"eslint-plugin-prettier": "^5.0.0",
64+
"@typescript-eslint/eslint-plugin": "^8.40.0",
65+
"@typescript-eslint/parser": "^8.40.0",
66+
"eslint": "^9.34.0",
67+
"eslint-plugin-prettier": "^5.5.4",
68+
"globals": "^16.3.0",
6669
"prettier": "^3.6.2",
6770
"tap-spec": "^5.0.0",
6871
"tape": "^5.9.0",

eslint.config.mjs

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { defineConfig } from "eslint/config";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import prettier from "eslint-plugin-prettier";
4+
import globals from "globals";
5+
import tsParser from "@typescript-eslint/parser";
6+
import path from "node:path";
7+
import { fileURLToPath } from "node:url";
8+
import js from "@eslint/js";
9+
import { FlatCompat } from "@eslint/eslintrc";
10+
11+
const __filename = fileURLToPath(import.meta.url);
12+
const __dirname = path.dirname(__filename);
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
export default defineConfig([{
20+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
21+
22+
plugins: {
23+
"@typescript-eslint": typescriptEslint,
24+
prettier,
25+
},
26+
27+
languageOptions: {
28+
globals: {
29+
...globals.browser,
30+
},
31+
32+
parser: tsParser,
33+
ecmaVersion: 12,
34+
sourceType: "module",
35+
},
36+
37+
rules: {
38+
"prettier/prettier": "warn",
39+
"@typescript-eslint/no-explicit-any": 0,
40+
"@typescript-eslint/no-unused-vars": 0,
41+
"@typescript-eslint/no-var-requires": 0,
42+
"@typescript-eslint/ban-types": 0,
43+
"@typescript-eslint/no-namespace": 0,
44+
"@typescript-eslint/explicit-module-boundary-types": 0,
45+
"@typescript-eslint/no-empty-interface": 0,
46+
},
47+
}]);

0 commit comments

Comments
 (0)