Skip to content

Commit 2c64a89

Browse files
authored
Remove trailing period in rule descriptions (#2504)
1 parent 79e13d1 commit 2c64a89

6 files changed

+12
-8
lines changed

docs/rules/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Rules in this category are enabled for all presets provided by eslint-plugin-vue
4545
| [vue/no-arrow-functions-in-watch](./no-arrow-functions-in-watch.md) | disallow using arrow functions to define watcher | | :three::two::warning: |
4646
| [vue/no-async-in-computed-properties](./no-async-in-computed-properties.md) | disallow asynchronous actions in computed properties | | :three::two::warning: |
4747
| [vue/no-child-content](./no-child-content.md) | disallow element's child contents which would be overwritten by a directive like `v-html` or `v-text` | :bulb: | :three::two::warning: |
48-
| [vue/no-computed-properties-in-data](./no-computed-properties-in-data.md) | disallow accessing computed properties in `data`. | | :three::two::warning: |
48+
| [vue/no-computed-properties-in-data](./no-computed-properties-in-data.md) | disallow accessing computed properties in `data` | | :three::two::warning: |
4949
| [vue/no-custom-modifiers-on-v-model](./no-custom-modifiers-on-v-model.md) | disallow custom modifiers on v-model used on the component | | :two::warning: |
5050
| [vue/no-deprecated-data-object-declaration](./no-deprecated-data-object-declaration.md) | disallow using deprecated object declaration on data (in Vue.js 3.0.0+) | :wrench: | :three::warning: |
5151
| [vue/no-deprecated-destroyed-lifecycle](./no-deprecated-destroyed-lifecycle.md) | disallow using deprecated `destroyed` and `beforeDestroy` lifecycle hooks (in Vue.js 3.0.0+) | :wrench: | :three::warning: |
@@ -264,7 +264,7 @@ For example:
264264
| [vue/padding-line-between-blocks](./padding-line-between-blocks.md) | require or disallow padding lines between blocks | :wrench: | :lipstick: |
265265
| [vue/padding-line-between-tags](./padding-line-between-tags.md) | require or disallow newlines between sibling tags in template | :wrench: | :lipstick: |
266266
| [vue/padding-lines-in-component-definition](./padding-lines-in-component-definition.md) | require or disallow padding lines in component definition | :wrench: | :lipstick: |
267-
| [vue/prefer-define-options](./prefer-define-options.md) | enforce use of `defineOptions` instead of default export. | :wrench: | :hammer: |
267+
| [vue/prefer-define-options](./prefer-define-options.md) | enforce use of `defineOptions` instead of default export | :wrench: | :hammer: |
268268
| [vue/prefer-prop-type-boolean-first](./prefer-prop-type-boolean-first.md) | enforce `Boolean` comes first in component prop types | :bulb: | :warning: |
269269
| [vue/prefer-separate-static-class](./prefer-separate-static-class.md) | require static class names in template to be in a separate `class` attribute | :wrench: | :hammer: |
270270
| [vue/prefer-true-attribute-shorthand](./prefer-true-attribute-shorthand.md) | require shorthand form attribute when `v-bind` value is `true` | :bulb: | :hammer: |

docs/rules/no-computed-properties-in-data.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/no-computed-properties-in-data
5-
description: disallow accessing computed properties in `data`.
5+
description: disallow accessing computed properties in `data`
66
since: v7.20.0
77
---
88

99
# vue/no-computed-properties-in-data
1010

11-
> disallow accessing computed properties in `data`.
11+
> disallow accessing computed properties in `data`
1212
1313
- :gear: This rule is included in all of `"plugin:vue/vue3-essential"`, `*.configs["flat/essential"]`, `"plugin:vue/essential"`, `*.configs["flat/vue2-essential"]`, `"plugin:vue/vue3-strongly-recommended"`, `*.configs["flat/strongly-recommended"]`, `"plugin:vue/strongly-recommended"`, `*.configs["flat/vue2-strongly-recommended"]`, `"plugin:vue/vue3-recommended"`, `*.configs["flat/recommended"]`, `"plugin:vue/recommended"` and `*.configs["flat/vue2-recommended"]`.
1414

docs/rules/prefer-define-options.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/prefer-define-options
5-
description: enforce use of `defineOptions` instead of default export.
5+
description: enforce use of `defineOptions` instead of default export
66
since: v9.13.0
77
---
88

99
# vue/prefer-define-options
1010

11-
> enforce use of `defineOptions` instead of default export.
11+
> enforce use of `defineOptions` instead of default export
1212
1313
- :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.
1414

eslint.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ module.exports = [
139139
'prefer-const': 2,
140140

141141
'prettier/prettier': 'error',
142+
'eslint-plugin/require-meta-docs-description': [
143+
'error',
144+
{ pattern: '^(enforce|require|disallow).*[^.]$' }
145+
],
142146
'eslint-plugin/require-meta-docs-recommended': 'off', // use `categories` instead
143147
'eslint-plugin/require-meta-fixable': [
144148
'error',

lib/rules/no-computed-properties-in-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
meta: {
1515
type: 'problem',
1616
docs: {
17-
description: 'disallow accessing computed properties in `data`.',
17+
description: 'disallow accessing computed properties in `data`',
1818
categories: ['vue3-essential', 'vue2-essential'],
1919
url: 'https://eslint.vuejs.org/rules/no-computed-properties-in-data.html'
2020
},

lib/rules/prefer-define-options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
meta: {
1111
type: 'suggestion',
1212
docs: {
13-
description: 'enforce use of `defineOptions` instead of default export.',
13+
description: 'enforce use of `defineOptions` instead of default export',
1414
categories: undefined,
1515
url: 'https://eslint.vuejs.org/rules/prefer-define-options.html'
1616
},

0 commit comments

Comments
 (0)