From 3698652066e6c45d40077200b90ed48dfc09203b Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Wed, 24 Jan 2024 09:24:50 +0100 Subject: [PATCH] Update docs --- docs/rules/index.md | 1 + docs/rules/no-restricted-static-attribute.md | 1 - docs/rules/no-restricted-v-bind.md | 1 - docs/rules/require-explicit-slots.md | 8 ++++++-- lib/index.js | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/rules/index.md b/docs/rules/index.md index 1367f797e..8d1b7f366 100644 --- a/docs/rules/index.md +++ b/docs/rules/index.md @@ -269,6 +269,7 @@ For example: | [vue/prefer-true-attribute-shorthand](./prefer-true-attribute-shorthand.md) | require shorthand form attribute when `v-bind` value is `true` | :bulb: | :hammer: | | [vue/require-direct-export](./require-direct-export.md) | require the component to be directly exported | | :hammer: | | [vue/require-emit-validator](./require-emit-validator.md) | require type definitions in emits | :bulb: | :hammer: | +| [vue/require-explicit-slots](./require-explicit-slots.md) | require slots to be explicitly defined | | :warning: | | [vue/require-expose](./require-expose.md) | require declare public properties using `expose` | :bulb: | :hammer: | | [vue/require-macro-variable-name](./require-macro-variable-name.md) | require a certain macro variable name | :bulb: | :hammer: | | [vue/require-name-property](./require-name-property.md) | require a name property in Vue components | :bulb: | :hammer: | diff --git a/docs/rules/no-restricted-static-attribute.md b/docs/rules/no-restricted-static-attribute.md index a0534f563..ee4f1d209 100644 --- a/docs/rules/no-restricted-static-attribute.md +++ b/docs/rules/no-restricted-static-attribute.md @@ -5,7 +5,6 @@ title: vue/no-restricted-static-attribute description: disallow specific attribute since: v7.0.0 --- - # vue/no-restricted-static-attribute > disallow specific attribute diff --git a/docs/rules/no-restricted-v-bind.md b/docs/rules/no-restricted-v-bind.md index 4c1495f4e..b603e690f 100644 --- a/docs/rules/no-restricted-v-bind.md +++ b/docs/rules/no-restricted-v-bind.md @@ -5,7 +5,6 @@ title: vue/no-restricted-v-bind description: disallow specific argument in `v-bind` since: v7.0.0 --- - # vue/no-restricted-v-bind > disallow specific argument in `v-bind` diff --git a/docs/rules/require-explicit-slots.md b/docs/rules/require-explicit-slots.md index ac3050896..c3b78ad8d 100644 --- a/docs/rules/require-explicit-slots.md +++ b/docs/rules/require-explicit-slots.md @@ -2,9 +2,8 @@ pageClass: rule-details sidebarDepth: 0 title: vue/require-explicit-slots -description: require slots to be explicitly defined with defineSlots +description: require slots to be explicitly defined --- - # vue/require-explicit-slots > require slots to be explicitly defined @@ -66,3 +65,8 @@ defineComponent({ ## :wrench: Options Nothing. + +## :mag: Implementation + +- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/require-explicit-slots.js) +- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/require-explicit-slots.js) diff --git a/lib/index.js b/lib/index.js index d9022cabf..99421f248 100644 --- a/lib/index.js +++ b/lib/index.js @@ -190,6 +190,7 @@ module.exports = { 'require-direct-export': require('./rules/require-direct-export'), 'require-emit-validator': require('./rules/require-emit-validator'), 'require-explicit-emits': require('./rules/require-explicit-emits'), + 'require-explicit-slots': require('./rules/require-explicit-slots'), 'require-expose': require('./rules/require-expose'), 'require-macro-variable-name': require('./rules/require-macro-variable-name'), 'require-name-property': require('./rules/require-name-property'),