Skip to content

Commit dbfa16a

Browse files
chore(deps): update dependency eslint-plugin-vue to v10 (#137)
* chore(deps): update dependency eslint-plugin-vue to v10 * chore(lint): update eslint plugin vue to v10 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: StarHeartHunt <[email protected]>
1 parent 91b46b6 commit dbfa16a

File tree

3 files changed

+19
-37
lines changed

3 files changed

+19
-37
lines changed

eslint.config.js

+10-12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable unicorn/no-array-reduce */
12
import js from "@eslint/js";
23
import unocss from "@unocss/eslint-config/flat";
34
import pluginImport from "eslint-plugin-import-x";
@@ -167,12 +168,6 @@ export const typescript = tseslint.config({
167168

168169
const vueCustomRules = {
169170
"vue/block-order": ["error", { order: ["script", "template", "style"] }],
170-
"vue/component-tags-order": [
171-
"error",
172-
{
173-
order: ["script", "template", "style"],
174-
},
175-
],
176171
"vue/custom-event-name-casing": ["error", "camelCase"],
177172
"vue/dot-notation": "warn",
178173
"vue/eqeqeq": ["error", "smart"],
@@ -215,9 +210,15 @@ const vueCustomRules = {
215210

216211
const vue3Rules = {
217212
...pluginVue.configs.base.rules,
218-
...pluginVue.configs["vue3-essential"].rules,
219-
...pluginVue.configs["vue3-strongly-recommended"].rules,
220-
...pluginVue.configs["vue3-recommended"].rules,
213+
...pluginVue.configs["flat/essential"]
214+
.map((c) => c.rules)
215+
.reduce((acc, c) => ({ ...acc, ...c }), {}),
216+
...pluginVue.configs["flat/strongly-recommended"]
217+
.map((c) => c.rules)
218+
.reduce((acc, c) => ({ ...acc, ...c }), {}),
219+
...pluginVue.configs["flat/recommended"]
220+
.map((c) => c.rules)
221+
.reduce((acc, c) => ({ ...acc, ...c }), {}),
221222
};
222223

223224
export const vue = [
@@ -230,9 +231,6 @@ export const vue = [
230231
languageOptions: {
231232
parser: parserVue,
232233
parserOptions: {
233-
ecmaFeatures: {
234-
jsx: true,
235-
},
236234
extraFileExtensions: [".vue"],
237235
parser: tseslint.parser,
238236
sourceType: "module",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"eslint-plugin-import-x": "^4.6.1",
4545
"eslint-plugin-prettier": "^5.2.3",
4646
"eslint-plugin-unicorn": "^57.0.0",
47-
"eslint-plugin-vue": "^9.33.0",
47+
"eslint-plugin-vue": "^10.0.0",
4848
"globals": "^16.0.0",
4949
"husky": "^9.1.7",
5050
"lint-staged": "^15.4.3",

pnpm-lock.yaml

+8-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)