Skip to content

Commit 841f686

Browse files
committed
Rewrite to eslint.config.ts
Add scrollInfoView option (#54) Update dependencies.
1 parent bc38bad commit 841f686

File tree

5 files changed

+1871
-3737
lines changed

5 files changed

+1871
-3737
lines changed

eslint.config.js renamed to eslint.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
vueTsConfigs,
55
} from '@vue/eslint-config-typescript';
66

7+
// @ts-ignore
78
import pluginImport from 'eslint-plugin-import';
89
import pluginVue from 'eslint-plugin-vue';
910
import pluginVueA11y from 'eslint-plugin-vuejs-accessibility';
@@ -95,7 +96,19 @@ export default defineConfigWithVueTs(
9596
// Fix for pinia
9697
'@typescript-eslint/explicit-function-return-type': 'off',
9798
'@typescript-eslint/no-explicit-any': 'off',
98-
'@typescript-eslint/no-unused-vars': 'off',
99+
// Exclude variables with leading underscores
100+
'@typescript-eslint/no-unused-vars': [
101+
'error',
102+
{
103+
args: 'all',
104+
argsIgnorePattern: '^_',
105+
caughtErrors: 'all',
106+
caughtErrorsIgnorePattern: '^_',
107+
destructuredArrayIgnorePattern: '^_',
108+
varsIgnorePattern: '^_',
109+
ignoreRestSiblings: true,
110+
},
111+
],
99112
// Fix for vite import.meta.env
100113
'@typescript-eslint/strict-boolean-expressions': 'off',
101114
// Fix for vite env.d.ts.

package.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"engines": {
5757
"pnpm": ">=10.3.0"
5858
},
59-
"packageManager": "pnpm@10.5.2",
59+
"packageManager": "pnpm@10.7.0",
6060
"sideEffects": false,
6161
"scripts": {
6262
"dev": "vite",
@@ -74,10 +74,10 @@
7474
},
7575
"dependencies": {
7676
"@codemirror/commands": "^6.8.0",
77-
"@codemirror/language": "^6.10.8",
78-
"@codemirror/lint": "^6.8.4",
77+
"@codemirror/language": "^6.11.0",
78+
"@codemirror/lint": "^6.8.5",
7979
"@codemirror/state": "^6.5.2",
80-
"@codemirror/view": "^6.36.3",
80+
"@codemirror/view": "^6.36.5",
8181
"codemirror": "^6.0.1",
8282
"style-mod": "^4.1.2",
8383
"vue-demi": "latest"
@@ -93,40 +93,40 @@
9393
"@codemirror/lang-vue": "^0.1.3",
9494
"@codemirror/search": "^6.5.10",
9595
"@tsconfig/node-lts": "^22.0.1",
96-
"@types/node": "^22.13.8",
97-
"@vitejs/plugin-vue": "^5.2.1",
96+
"@types/node": "^22.13.14",
97+
"@vitejs/plugin-vue": "^5.2.3",
9898
"@vue/compiler-sfc": "^3.5.13",
9999
"@vue/eslint-config-prettier": "^10.2.0",
100-
"@vue/eslint-config-typescript": "^14.4.0",
100+
"@vue/eslint-config-typescript": "^14.5.0",
101101
"@vue/test-utils": "^2.4.6",
102102
"@vue/tsconfig": "^0.7.0",
103-
"@vueuse/core": "^12.7.0",
103+
"@vueuse/core": "^13.0.0",
104104
"bootstrap": "^5.3.3",
105-
"eslint": "^9.21.0",
105+
"eslint": "^9.23.0",
106106
"eslint-import-resolver-custom-alias": "^1.3.2",
107-
"eslint-import-resolver-typescript": "^3.8.3",
108-
"eslint-linter-browserify": "^9.21.0",
107+
"eslint-import-resolver-typescript": "^4.3.1",
108+
"eslint-linter-browserify": "^9.23.0",
109109
"eslint-plugin-import": "^2.31.0",
110110
"eslint-plugin-playwright": "^2.2.0",
111-
"eslint-plugin-vue": "^9.32.0",
111+
"eslint-plugin-vue": "^10.0.0",
112112
"eslint-plugin-vuejs-accessibility": "^2.4.1",
113113
"husky": "^9.1.7",
114114
"jiti": "^2.4.2",
115-
"lint-staged": "^15.4.3",
116-
"npm-run-all": "^4.1.5",
117-
"prettier": "^3.5.2",
115+
"lint-staged": "^15.5.0",
116+
"npm-run-all2": "^7.0.2",
117+
"prettier": "^3.5.3",
118118
"rimraf": "^6.0.1",
119119
"rollup-plugin-visualizer": "^5.14.0",
120-
"sass": "^1.85.1",
120+
"sass": "^1.86.0",
121121
"supports-color": "^10.0.0",
122122
"typescript": "^5.8.2",
123-
"typescript-eslint": "^8.25.0",
124-
"vite": "^6.2.0",
123+
"typescript-eslint": "^8.28.0",
124+
"vite": "^6.2.3",
125125
"vite-plugin-banner": "^0.8.0",
126-
"vite-plugin-checker": "^0.9.0",
127-
"vite-plugin-dts": "^4.5.1",
126+
"vite-plugin-checker": "^0.9.1",
127+
"vite-plugin-dts": "^4.5.3",
128128
"vue": "^3.5.13",
129-
"vue-eslint-parser": "^9.4.3",
129+
"vue-eslint-parser": "^10.1.1",
130130
"vue-markdown-wasm": "^0.5.1",
131131
"vue-tsc": "^2.2.8"
132132
},
@@ -143,4 +143,4 @@
143143
"json5": ">=2.2.3",
144144
"yaml": ">=2.6.0"
145145
}
146-
}
146+
}

0 commit comments

Comments
 (0)