Skip to content

Commit

Permalink
Meta: Fix replacedBy position (#1783)
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Jan 27, 2022
1 parent 56bcdb4 commit d6f0337
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/rules/name-property-casing.js
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
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
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
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
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

0 comments on commit d6f0337

Please sign in to comment.