Skip to content

Commit 7919d9e

Browse files
committed
chore: update name
1 parent ecbd456 commit 7919d9e

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

docs/rules/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ For example:
237237
| [vue/no-empty-component-block] | disallow the `<template>` `<script>` `<style>` block to be empty | :wrench: | :hammer: |
238238
| [vue/no-import-compiler-macros] | disallow importing Vue compiler macros | :wrench: | :warning: |
239239
| [vue/no-multiple-objects-in-class] | disallow passing multiple objects in an array to class | | :hammer: |
240-
| [vue/no-negated-condition] | disallow negated conditions in v-if/v-else | | :hammer: |
240+
| [vue/no-negated-v-if-condition] | disallow negated conditions in v-if/v-else | | :hammer: |
241241
| [vue/no-potential-component-option-typo] | disallow a potential typo in your component property | :bulb: | :hammer: |
242242
| [vue/no-ref-object-reactivity-loss] | disallow usages of ref objects that can lead to loss of reactivity | | :warning: |
243243
| [vue/no-restricted-block] | disallow specific block | | :hammer: |
@@ -483,7 +483,7 @@ The following rules extend the rules provided by ESLint itself and apply them to
483483
[vue/no-multiple-slot-args]: ./no-multiple-slot-args.md
484484
[vue/no-multiple-template-root]: ./no-multiple-template-root.md
485485
[vue/no-mutating-props]: ./no-mutating-props.md
486-
[vue/no-negated-condition]: ./no-negated-condition.md
486+
[vue/no-negated-v-if-condition]: ./no-negated-v-if-condition.md
487487
[vue/no-parsing-error]: ./no-parsing-error.md
488488
[vue/no-potential-component-option-typo]: ./no-potential-component-option-typo.md
489489
[vue/no-ref-as-operand]: ./no-ref-as-operand.md

docs/rules/no-negated-condition.md renamed to docs/rules/no-negated-v-if-condition.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
pageClass: rule-details
33
sidebarDepth: 0
4-
title: vue/no-negated-condition
4+
title: vue/no-negated-v-if-condition
55
description: disallow negated conditions in v-if/v-else
66
---
77

8-
# vue/no-negated-condition
8+
# vue/no-negated-v-if-condition
99

1010
> disallow negated conditions in v-if/v-else
1111
@@ -17,7 +17,7 @@ This rule disallows negated conditions in `v-if` and `v-else-if` directives whic
1717

1818
Negated conditions make the code less readable. When there's an `else` clause, it's better to use a positive condition and switch the branches.
1919

20-
<eslint-code-block :rules="{'vue/no-negated-condition': ['error']}">
20+
<eslint-code-block :rules="{'vue/no-negated-v-if-condition': ['error']}">
2121

2222
```vue
2323
<template>
@@ -53,9 +53,9 @@ Nothing.
5353

5454
## :couple: Related Rules
5555

56-
- [no-negated-condition](https://eslint.org/docs/rules/no-negated-condition)
56+
- [no-negated-v-if-condition](https://eslint.org/docs/rules/no-negated-v-if-condition)
5757

5858
## :mag: Implementation
5959

60-
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-negated-condition.js)
61-
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-negated-condition.js)
60+
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-negated-v-if-condition.js)
61+
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-negated-v-if-condition.js)

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const plugin = {
141141
'no-multiple-slot-args': require('./rules/no-multiple-slot-args'),
142142
'no-multiple-template-root': require('./rules/no-multiple-template-root'),
143143
'no-mutating-props': require('./rules/no-mutating-props'),
144-
'no-negated-condition': require('./rules/no-negated-condition'),
144+
'no-negated-v-if-condition': require('./rules/no-negated-v-if-condition'),
145145
'no-parsing-error': require('./rules/no-parsing-error'),
146146
'no-potential-component-option-typo': require('./rules/no-potential-component-option-typo'),
147147
'no-ref-as-operand': require('./rules/no-ref-as-operand'),

lib/rules/no-negated-condition.js renamed to lib/rules/no-negated-v-if-condition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @author Wayne
2+
* @author Wayne Zhang
33
* See LICENSE file in root directory for full license.
44
*/
55
'use strict'
@@ -75,7 +75,7 @@ module.exports = {
7575
docs: {
7676
description: 'disallow negated conditions in v-if/v-else',
7777
categories: undefined,
78-
url: 'https://eslint.vuejs.org/rules/no-negated-condition.html'
78+
url: 'https://eslint.vuejs.org/rules/no-negated-v-if-condition.html'
7979
},
8080
fixable: null,
8181
schema: [],

tests/lib/rules/no-negated-condition.js renamed to tests/lib/rules/no-negated-v-if-condition.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
2-
* @author Wayne
2+
* @author Wayne Zhang
33
* See LICENSE file in root directory for full license.
44
*/
55
'use strict'
66

77
const RuleTester = require('../../eslint-compat').RuleTester
8-
const rule = require('../../../lib/rules/no-negated-condition')
8+
const rule = require('../../../lib/rules/no-negated-v-if-condition')
99

1010
const tester = new RuleTester({
1111
languageOptions: {
@@ -15,7 +15,7 @@ const tester = new RuleTester({
1515
}
1616
})
1717

18-
tester.run('no-negated-condition', rule, {
18+
tester.run('no-negated-v-if-condition', rule, {
1919
valid: [
2020
{
2121
filename: 'test.vue',

0 commit comments

Comments
 (0)