Skip to content

Commit ba60e0e

Browse files
committed
cleanup
1 parent 0638fca commit ba60e0e

File tree

5 files changed

+30
-90
lines changed

5 files changed

+30
-90
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
- name: Setup Node
15-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: 'current'
1818
- name: Install dependencies

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515
- name: Setup Node
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: 'current'
1919
registry-url: https://registry.npmjs.org

eslint.config.mjs

+13-81
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,13 @@
1-
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
2-
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3-
import globals from "globals";
4-
import tsParser from "@typescript-eslint/parser";
5-
import path from "node:path";
6-
import { fileURLToPath } from "node:url";
7-
import js from "@eslint/js";
8-
import { FlatCompat } from "@eslint/eslintrc";
9-
10-
const __filename = fileURLToPath(import.meta.url);
11-
const __dirname = path.dirname(__filename);
12-
const compat = new FlatCompat({
13-
baseDirectory: __dirname,
14-
recommendedConfig: js.configs.recommended,
15-
allConfig: js.configs.all,
16-
});
17-
18-
export default [
19-
...fixupConfigRules(
20-
compat.extends(
21-
"plugin:@typescript-eslint/eslint-recommended",
22-
"plugin:@typescript-eslint/recommended",
23-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
24-
"plugin:import/recommended",
25-
"plugin:import/typescript",
26-
"prettier",
27-
"plugin:prettier/recommended",
28-
),
29-
),
30-
{
31-
plugins: {
32-
"@typescript-eslint": fixupPluginRules(typescriptEslint),
33-
},
34-
35-
languageOptions: {
36-
globals: {
37-
...globals.browser,
38-
...globals.commonjs,
39-
...globals.jest,
40-
...globals.node,
41-
},
42-
43-
parser: tsParser,
44-
ecmaVersion: 7,
45-
sourceType: "module",
46-
47-
parserOptions: {
48-
project: ["./tsconfig.eslint.json"],
49-
},
50-
},
51-
52-
settings: {
53-
"import/resolver": {
54-
typescript: true,
55-
node: true,
56-
},
57-
},
58-
59-
rules: {
60-
"prettier/prettier": "error",
61-
"@typescript-eslint/consistent-type-imports": "error",
62-
63-
"@typescript-eslint/no-empty-interface": [
64-
"error",
65-
{
66-
allowSingleExtends: true,
67-
},
68-
],
69-
70-
"@typescript-eslint/no-use-before-define": [
71-
"error",
72-
{
73-
functions: false,
74-
},
75-
],
76-
77-
"@typescript-eslint/no-explicit-any": [0],
78-
"import/no-named-as-default-member": [0],
79-
},
80-
},
81-
];
1+
// @ts-check
2+
3+
import eslint from '@eslint/js';
4+
import tseslint from 'typescript-eslint';
5+
import eslintConfigPrettier from "eslint-config-prettier";
6+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
7+
8+
export default tseslint.config(
9+
eslint.configs.recommended,
10+
tseslint.configs.recommended,
11+
eslintConfigPrettier,
12+
eslintPluginPrettierRecommended
13+
);

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
"@types/jsonld": "^1.5.0",
2525
"@types/lodash.get": "^4.4.0",
2626
"@types/node": "^22.0.0",
27-
"@typescript-eslint/eslint-plugin": "^8.0.0",
28-
"@typescript-eslint/parser": "^8.0.0",
2927
"eslint": "^9.0.0",
3028
"eslint-config-prettier": "^10.0.0",
3129
"eslint-import-resolver-typescript": "^3.5.1",
@@ -39,7 +37,8 @@
3937
"prettier": "^3.0.0",
4038
"ts-jest": "^29.0.0",
4139
"ts-node": "^10.9.0",
42-
"typescript": "^5.7.0"
40+
"typescript": "^5.7.0",
41+
"typescript-eslint": "^8.22.0"
4342
},
4443
"dependencies": {
4544
"graphql": "^16.0.0",

yarn.lock

+11-2
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@
839839
dependencies:
840840
"@types/yargs-parser" "*"
841841

842-
"@typescript-eslint/eslint-plugin@^8.0.0":
842+
"@typescript-eslint/eslint-plugin@8.22.0":
843843
version "8.22.0"
844844
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.22.0.tgz#63a1b0d24d85a971949f8d71d693019f58d2e861"
845845
integrity sha512-4Uta6REnz/xEJMvwf72wdUnC3rr4jAQf5jnTkeRQ9b6soxLxhDEbS/pfMPoJLDfFPNVRdryqWUIV/2GZzDJFZw==
@@ -854,7 +854,7 @@
854854
natural-compare "^1.4.0"
855855
ts-api-utils "^2.0.0"
856856

857-
"@typescript-eslint/parser@^8.0.0":
857+
"@typescript-eslint/parser@8.22.0":
858858
version "8.22.0"
859859
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.22.0.tgz#f21c5db24271f182ebbb4ba8c7ad3eb76e5f5f3a"
860860
integrity sha512-MqtmbdNEdoNxTPzpWiWnqNac54h8JDAmkWtJExBVVnSrSmi9z+sZUt0LfKqk9rjqmKOIeRhO4fHHJ1nQIjduIQ==
@@ -3960,6 +3960,15 @@ typed-array-length@^1.0.7:
39603960
possible-typed-array-names "^1.0.0"
39613961
reflect.getprototypeof "^1.0.6"
39623962

3963+
typescript-eslint@^8.22.0:
3964+
version "8.22.0"
3965+
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-8.22.0.tgz#1d4becf1d65385e57e9271fbd557ccc22f6c0f53"
3966+
integrity sha512-Y2rj210FW1Wb6TWXzQc5+P+EWI9/zdS57hLEc0gnyuvdzWo8+Y8brKlbj0muejonhMI/xAZCnZZwjbIfv1CkOw==
3967+
dependencies:
3968+
"@typescript-eslint/eslint-plugin" "8.22.0"
3969+
"@typescript-eslint/parser" "8.22.0"
3970+
"@typescript-eslint/utils" "8.22.0"
3971+
39633972
typescript@^5.7.0:
39643973
version "5.7.3"
39653974
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e"

0 commit comments

Comments
 (0)