Skip to content

Commit d201c21

Browse files
authored
Merge branch 'vuejs:master' into master
2 parents ff2ba97 + 305100d commit d201c21

File tree

237 files changed

+10921
-2347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+10921
-2347
lines changed

.changeset/five-roses-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-vue": patch
3+
---
4+
5+
Changed `vue/define-macros-order` to ignore enum declarations and `declare` statements

.changeset/great-ravens-happen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-vue": minor
3+
---
4+
5+
Added [`@stylistic/eslint-plugin`](https://eslint.style/) as optional peer dependency

.changeset/purple-lights-invite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-vue': minor
3+
---
4+
5+
Added `ignorePattern` option to [`vue/no-v-html`](https://eslint.vuejs.org/rules/no-v-html.html)

.github/workflows/CI.yml

Lines changed: 53 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ jobs:
3131
strategy:
3232
matrix:
3333
node: [18, 20, 21, 'lts/*']
34-
eslint: [9]
35-
include:
36-
# On old ESLint version
37-
- node: 18
38-
eslint: 8
39-
4034
runs-on: ubuntu-latest
4135
steps:
4236
- name: Checkout
@@ -46,9 +40,24 @@ jobs:
4640
with:
4741
node-version: ${{ matrix.node }}
4842
- name: Install Packages
49-
run: npm install -f
50-
- name: Install ESLint v${{ matrix.eslint }}
51-
run: npm install --save-dev eslint@${{ matrix.eslint }} -f
43+
run: npm install
44+
- name: Test
45+
run: npm test
46+
47+
test-with-eslint-v8:
48+
name: Test with ESLint v8
49+
runs-on: ubuntu-latest
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@v4
53+
- name: Install Node.js v18
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: 18
57+
- name: Install Packages
58+
run: npm install
59+
- name: Install ESLint v8
60+
run: npm install --save-dev eslint@8 --force
5261
- name: Test
5362
run: npm test
5463

@@ -61,8 +70,41 @@ jobs:
6170
- name: Install Node.js
6271
uses: actions/setup-node@v4
6372
- name: Install Packages
64-
run: npm install -f
73+
run: npm install
6574
- name: Uninstall @stylistic/eslint-plugin
66-
run: npm uninstall -D @stylistic/eslint-plugin
75+
run: npm uninstall @stylistic/eslint-plugin
76+
- name: Test
77+
run: npm test
78+
79+
test-with-old-eslint-stylistic:
80+
name: Test with old ESLint Stylistic
81+
strategy:
82+
matrix:
83+
stylistic: [2, 3, 4]
84+
runs-on: ubuntu-latest
85+
steps:
86+
- name: Checkout
87+
uses: actions/checkout@v4
88+
- name: Install Node.js
89+
uses: actions/setup-node@v4
90+
- name: Install Packages
91+
run: npm install
92+
- name: Install @stylistic/eslint-plugin v${{ matrix.stylistic }}
93+
run: npm install -D @stylistic/eslint-plugin@${{ matrix.stylistic }} --force
94+
- name: Test
95+
run: npm test
96+
97+
test-with-typescript-eslint-v7:
98+
name: Test with typescript-eslint v7
99+
runs-on: ubuntu-latest
100+
steps:
101+
- name: Checkout
102+
uses: actions/checkout@v4
103+
- name: Install Node.js
104+
uses: actions/setup-node@v4
105+
- name: Install Packages
106+
run: npm install
107+
- name: Install @typescript-eslint/parser v7
108+
run: npm install -D @typescript-eslint/parser@7 --force
67109
- name: Test
68110
run: npm test

.github/workflows/Release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup Node.js
2323
uses: actions/setup-node@v4
2424
- name: Install Dependencies
25-
run: npm install -f
25+
run: npm install
2626

2727
- name: Create Release Pull Request or Publish to npm
2828
id: changesets

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
yarn.lock
99
yarn-error.log
1010
/docs/.vitepress/dist
11-
/docs/.vitepress/build-system/shim/eslint.mjs
12-
/docs/.vitepress/build-system/shim/assert.mjs
11+
/docs/.vitepress/build-system/shim/vue-eslint-parser.mjs
12+
/docs/.vitepress/build-system/shim/@typescript-eslint/parser.mjs
1313
/docs/.vitepress/.temp
1414
/docs/.vitepress/cache
1515
typings/eslint/lib/rules
16+
eslint-typegen.d.ts

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
CHANGELOG.md

.vscode/launch.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@
55
"type": "node",
66
"request": "launch",
77
"name": "Start testing",
8-
"program": "${workspaceFolder}/node_modules/.bin/mocha",
9-
"args": ["${file}", "--watch"],
8+
"program": "${workspaceFolder}/node_modules/.bin/vitest",
9+
"args": ["run", "${file}", "--reporter=verbose"],
10+
"console": "integratedTerminal"
11+
},
12+
{
13+
"type": "node",
14+
"request": "launch",
15+
"name": "Start testing (watch)",
16+
"program": "${workspaceFolder}/node_modules/.bin/vitest",
17+
"args": ["${file}", "--reporter=verbose"],
1018
"console": "integratedTerminal"
1119
}
1220
]
13-
}
21+
}

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"editor.tabSize": 2,
3-
"eslint.experimental.useFlatConfig": true,
4-
"eslint.validate": ["javascript", "javascriptreact", "vue", "json", "jsonc"],
3+
"eslint.validate": ["javascript", "javascriptreact", "vue", "json", "jsonc", "markdown"],
54
"typescript.tsdk": "./node_modules/typescript/lib",
65
"vetur.validation.script": false,
76
"[typescript]": {

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# eslint-plugin-vue
22

3+
## 10.4.0
4+
5+
### Minor Changes
6+
7+
- Added `ignoreParents` option to [`vue/no-deprecated-slot-attribute`](https://eslint.vuejs.org/rules/no-deprecated-slot-attribute.html) ([#2784](https://github.com/vuejs/eslint-plugin-vue/pull/2784))
8+
9+
- Added new [`vue/no-negated-v-if-condition`](https://eslint.vuejs.org/rules/no-negated-v-if-condition.html) rule ([#2794](https://github.com/vuejs/eslint-plugin-vue/pull/2794))
10+
11+
- Added new [`vue/no-negated-condition`](https://eslint.vuejs.org/rules/no-negated-condition.html) rule ([#2795](https://github.com/vuejs/eslint-plugin-vue/pull/2795))
12+
13+
### Patch Changes
14+
15+
- Resolved TypeScript compatibility issues introduced by [eslint-typegen](https://github.com/antfu/eslint-typegen) ([#2790](https://github.com/vuejs/eslint-plugin-vue/pull/2790))
16+
17+
- Fixed inconsistent quotes in [`vue/block-lang`](https://eslint.vuejs.org/rules/block-lang.html) error messages ([#2805](https://github.com/vuejs/eslint-plugin-vue/pull/2805))
18+
19+
## 10.3.0
20+
21+
### Minor Changes
22+
23+
- Added [`@typescript-eslint/parser`](https://typescript-eslint.io/packages/parser) as an optional peer dependency ([#2775](https://github.com/vuejs/eslint-plugin-vue/pull/2775))
24+
25+
- Add TypeScript IntelliSense support via [eslint-typegen](https://github.com/antfu/eslint-typegen) ([#2770](https://github.com/vuejs/eslint-plugin-vue/pull/2770))
26+
27+
- [`vue/no-deprecated-slot-attribute`](https://eslint.vuejs.org/rules/no-deprecated-slot-attribute.html) `ignore` option now supports regex patterns ([#2773](https://github.com/vuejs/eslint-plugin-vue/pull/2773))
28+
29+
### Patch Changes
30+
31+
- Fixed false negatives when using typescript-eslint v8 in [`vue/script-indent`](https://eslint.vuejs.org/rules/script-indent.html) rule ([#2775](https://github.com/vuejs/eslint-plugin-vue/pull/2775))
32+
33+
- Update resources ([#2752](https://github.com/vuejs/eslint-plugin-vue/pull/2752))
34+
35+
- [`vue/no-restricted-html-elements`](https://eslint.vuejs.org/rules/no-restricted-html-elements.html) now also checks SVG and MathML elements ([#2755](https://github.com/vuejs/eslint-plugin-vue/pull/2755))
36+
337
## 10.2.0
438

539
### Minor Changes

0 commit comments

Comments
 (0)