Skip to content

Meta: Fix replacedBy position #1783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rules/name-property-casing.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ module.exports = {
description:
'enforce specific casing for the name property in Vue components',
categories: ['vue3-strongly-recommended', 'strongly-recommended'],
url: 'https://eslint.vuejs.org/rules/name-property-casing.html',
replacedBy: ['component-definition-name-casing']
url: 'https://eslint.vuejs.org/rules/name-property-casing.html'
},
deprecated: true,
replacedBy: ['component-definition-name-casing'],
fixable: 'code', // or "code" or "whitespace"
schema: [
{
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-confusing-v-for-v-if.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ module.exports = {
docs: {
description: 'disallow confusing `v-for` and `v-if` on the same element',
categories: ['vue3-recommended', 'recommended'],
url: 'https://eslint.vuejs.org/rules/no-confusing-v-for-v-if.html',
replacedBy: ['no-use-v-if-with-v-for']
url: 'https://eslint.vuejs.org/rules/no-confusing-v-for-v-if.html'
},
deprecated: true,
replacedBy: ['no-use-v-if-with-v-for'],
fixable: null,
schema: []
},
Expand Down
4 changes: 2 additions & 2 deletions lib/rules/no-unregistered-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ module.exports = {
'disallow using components that are not registered inside templates',
categories: null,
recommended: false,
url: 'https://eslint.vuejs.org/rules/no-unregistered-components.html',
replacedBy: ['no-undef-components']
url: 'https://eslint.vuejs.org/rules/no-unregistered-components.html'
},
deprecated: true,
replacedBy: ['no-undef-components'],
fixable: null,
schema: [
{
Expand Down
2 changes: 1 addition & 1 deletion tools/update-docs-rules-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function toRuleRow(rule) {

function toDeprecatedRuleRow(rule) {
const link = `[${rule.ruleId}](./${rule.name}.md)`
const replacedRules = rule.meta.docs.replacedBy || []
const replacedRules = rule.meta.replacedBy || []
const replacedBy = replacedRules
.map((name) => `[vue/${name}](./${name}.md)`)
.join(', ')
Expand Down
4 changes: 2 additions & 2 deletions tools/update-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class DocFile {
const notes = []

if (meta.deprecated) {
if (meta.docs.replacedBy) {
const replacedRules = meta.docs.replacedBy.map(
if (meta.replacedBy) {
const replacedRules = meta.replacedBy.map(
(name) => `[vue/${name}](${name}.md) rule`
)
notes.push(
Expand Down