Skip to content

Commit 8449ab0

Browse files
committed
fix: bump dependency versions, migrate eslint config
1 parent 1056a81 commit 8449ab0

9 files changed

+2073
-2217
lines changed

Diff for: .eslintrc.js

-47
This file was deleted.

Diff for: .yarn/install-state.gz

-12.1 KB
Binary file not shown.

Diff for: .yarn/releases/yarn-4.0.1.cjs

-893
This file was deleted.

Diff for: .yarn/releases/yarn-4.2.2.cjs

+894
Large diffs are not rendered by default.

Diff for: .yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.0.1.cjs
3+
yarnPath: .yarn/releases/yarn-4.2.2.cjs

Diff for: eslint.config.mjs

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import eslint from '@eslint/js';
2+
import prettierPlugin from 'eslint-plugin-prettier';
3+
import unusedImportsPlugin from 'eslint-plugin-unused-imports';
4+
5+
import prettierExtends from 'eslint-config-prettier';
6+
import { fixupPluginRules } from '@eslint/compat';
7+
import globals from 'globals';
8+
import tseslint from 'typescript-eslint';
9+
10+
const globalToUse = {
11+
...globals.browser,
12+
...globals.serviceworker,
13+
...globals.es2021,
14+
...globals.worker,
15+
...globals.node,
16+
};
17+
18+
export default tseslint.config({
19+
extends: [
20+
{
21+
ignores: ['dist/**', 'bin/**'],
22+
},
23+
prettierExtends,
24+
eslint.configs.recommended,
25+
...tseslint.configs.recommended,
26+
],
27+
settings: {
28+
react: { version: 'detect' },
29+
},
30+
plugins: {
31+
prettierPlugin,
32+
'unused-imports': fixupPluginRules(unusedImportsPlugin),
33+
},
34+
rules: {
35+
indent: [
36+
'error',
37+
'tab',
38+
{
39+
SwitchCase: 1,
40+
},
41+
],
42+
'linebreak-style': [
43+
'error',
44+
process.platform === 'win32' ? 'windows' : 'unix',
45+
],
46+
quotes: ['error', 'single'],
47+
semi: ['error', 'always'],
48+
'@typescript-eslint/ban-ts-comment': 'off',
49+
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
50+
'@typescript-eslint/consistent-type-imports': [
51+
'error',
52+
{
53+
prefer: 'type-imports',
54+
},
55+
],
56+
'@typescript-eslint/no-explicit-any': 'off',
57+
},
58+
languageOptions: {
59+
globals: globalToUse,
60+
parserOptions: {
61+
ecmaFeatures: {
62+
jsx: true,
63+
},
64+
},
65+
},
66+
});

Diff for: package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@
3131
"yargs": "^17.7.2"
3232
},
3333
"devDependencies": {
34+
"@eslint/compat": "^1.0.3",
3435
"@types/json-schema": "^7.0.15",
35-
"@typescript-eslint/eslint-plugin": "^6.10.0",
36-
"@typescript-eslint/parser": "^6.10.0",
37-
"c8": "^8.0.1",
38-
"eslint": "^8.53.0",
39-
"eslint-config-prettier": "^9.0.0",
40-
"eslint-plugin-prettier": "^5.0.1",
41-
"eslint-plugin-unused-imports": "^3.0.0",
42-
"nock": "^13.3.8",
43-
"prettier": "^3.0.3",
44-
"rimraf": "^5.0.5",
45-
"typescript": "^5.2.2",
46-
"vitest": "^0.34.6"
36+
"c8": "^9.1.0",
37+
"eslint": "^9.4.0",
38+
"eslint-config-prettier": "^9.1.0",
39+
"eslint-plugin-prettier": "^5.1.3",
40+
"eslint-plugin-unused-imports": "^4.0.0",
41+
"nock": "^13.5.4",
42+
"prettier": "^3.3.0",
43+
"rimraf": "^5.0.7",
44+
"typescript": "^5.4.5",
45+
"typescript-eslint": "^7.11.0",
46+
"vitest": "^1.6.0"
4747
},
4848
"prettier": {
4949
"singleQuote": true,
5050
"useTabs": true
5151
},
52-
"packageManager": "yarn@4.0.1"
52+
"packageManager": "yarn@4.2.2"
5353
}

Diff for: vite.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ export default defineConfig({
44
test: {
55
globals: true,
66
watch: false,
7-
threads: false,
87
isolate: false,
98
reporters: 'verbose',
109
},
1110
esbuild: {
12-
target: 'node21',
11+
target: 'node22',
1312
},
1413
});

0 commit comments

Comments
 (0)