Skip to content

Commit ac3a4c9

Browse files
committed
Remove deprecated vue/v-on-function-call rule
1 parent 526b4ad commit ac3a4c9

File tree

6 files changed

+10
-574
lines changed

6 files changed

+10
-574
lines changed

docs/rules/index.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -341,15 +341,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
341341

342342
</rules-table>
343343

344-
## Deprecated
345-
346-
- :no_entry_sign: We're going to remove deprecated rules in the next major release. Please migrate to successor/new rules.
347-
- :innocent: We don't fix bugs which are in deprecated rules since we don't have enough resources.
348-
349-
| Rule ID | Replaced by |
350-
|:--------|:------------|
351-
| [vue/v-on-function-call] | [vue/v-on-handler-style] |
352-
353344
## Removed
354345

355346
- :no_entry: These rules have been removed in a previous major release, after they have been deprecated for a while.
@@ -365,6 +356,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
365356
| [vue/no-setup-props-destructure] | [vue/no-setup-props-reactivity-loss] | [v9.17.0] | [v10.0.0] |
366357
| [vue/no-unregistered-components] | [vue/no-undef-components] | [v8.4.0] | [v9.0.0] |
367358
| [vue/script-setup-uses-vars] | (no replacement) | [v9.0.0] | [v10.0.0] |
359+
| [vue/v-on-function-call] | [vue/v-on-handler-style] | [v9.7.0] | [v10.0.0] |
368360

369361
<!-- link definitions for rules -->
370362

@@ -583,7 +575,6 @@ The following rules extend the rules provided by ESLint itself and apply them to
583575
[vue/v-for-delimiter-style]: ./v-for-delimiter-style.md
584576
[vue/v-if-else-key]: ./v-if-else-key.md
585577
[vue/v-on-event-hyphenation]: ./v-on-event-hyphenation.md
586-
[vue/v-on-function-call]: ./v-on-function-call.md
587578
[vue/v-on-handler-style]: ./v-on-handler-style.md
588579
[vue/v-on-style]: ./v-on-style.md
589580
[vue/v-slot-style]: ./v-slot-style.md
@@ -623,6 +614,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
623614
[vue/no-setup-props-destructure]: ./no-setup-props-destructure.md
624615
[vue/no-unregistered-components]: ./no-unregistered-components.md
625616
[vue/script-setup-uses-vars]: ./script-setup-uses-vars.md
617+
[vue/v-on-function-call]: ./v-on-function-call.md
626618

627619
<!-- link definitions for releases -->
628620

@@ -634,3 +626,4 @@ The following rules extend the rules provided by ESLint itself and apply them to
634626
[v9.0.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.0.0
635627
[v9.16.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.16.0
636628
[v9.17.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.17.0
629+
[v9.7.0]: https://github.com/vuejs/eslint-plugin-vue/releases/tag/v9.7.0

docs/rules/v-on-function-call.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ since: v5.2.0
1010

1111
> enforce or forbid parentheses after method calls without arguments in `v-on` directives
1212
13-
- :no_entry_sign: This rule was **deprecated** and replaced by [vue/v-on-handler-style](v-on-handler-style.md) rule.
14-
- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule.
13+
- :no_entry: This rule was **removed** in eslint-plugin-vue v10.0.0 and replaced by [vue/v-on-handler-style](v-on-handler-style.md) rule.
1514

1615
## :book: Rule Details
1716

lib/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ const plugin = {
245245
'v-for-delimiter-style': require('./rules/v-for-delimiter-style'),
246246
'v-if-else-key': require('./rules/v-if-else-key'),
247247
'v-on-event-hyphenation': require('./rules/v-on-event-hyphenation'),
248-
'v-on-function-call': require('./rules/v-on-function-call'),
249248
'v-on-handler-style': require('./rules/v-on-handler-style'),
250249
'v-on-style': require('./rules/v-on-style'),
251250
'v-slot-style': require('./rules/v-slot-style'),

lib/removed-rules.js

+6
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,11 @@ module.exports = [
6363
replacedBy: [],
6464
deprecatedInVersion: 'v9.0.0',
6565
removedInVersion: 'v10.0.0'
66+
},
67+
{
68+
ruleName: 'v-on-function-call',
69+
replacedBy: ['v-on-handler-style'],
70+
deprecatedInVersion: 'v9.7.0',
71+
removedInVersion: 'v10.0.0'
6672
}
6773
]

lib/rules/v-on-function-call.js

-205
This file was deleted.

0 commit comments

Comments
 (0)